Page Collections and Sequence Boxes

By JSV JSV

Description

This provides code for a 'sequence box', which shows that a page is part of a sequence or collection, allows navigation to any page in the sequence, and provides Previous and Next links. You would use this, for example, if you had a collection of pages that described different elements in the collection, e.g. 'Animals' is the sequence, and 'dog', 'cat', 'mouse', 'chicken' are the pages in the sequence (Animals would also have a page to describe the sequence).

Unfortunately, you'll have to provide the sequence yourself on all pages. Suggestion: perhaps someone could write a module to do this automatically from a pre-ordered sequence, designed in a sequence editor?

Code

Standard Wikidot table using || separators

||||||~ This page is part of the [[[X]]] Sequence ||
||= [[[Three]]] _
(Previous) ||= [[[One]]] [[[Two]]] [[[Three]]] Four [[[Five]]] [[[Six]]] [[[Seven]]] ||= [[[Five]]] _
(Next) ||

In action

Standard Wikidot table using || separators

This page is part of the Numbers Sequence
Three
(Previous)
One Two Three Four Five Six Seven Five
(Next)

Using CSS with [[table]], [[row]] and [[cell]]

Code and examples


Thanks to tsangk for this great snippet: conditional-blocks


text above inserted with:

[[include :snippets:if START |unique=1|type=equal|var1=%%name%%|var2=conditional-blocks]]
**##red|Thanks to tsangk for this great snippet:##** [[[code:conditional-blocks]]]
[[include :snippets:if END]]



Other snippets posted by JSV

Referencing to a Common Reference Page - 16 Feb 2012 01:38
Easy Table Title Footers - 15 Feb 2012 00:49


Rate this solution

If you think this solution is useful — rate it up!

rating: +20
Hermitic crow Hermitic crow 21 Dec 2024 06:29

?

by Hermitic crow Hermitic crow , 21 Dec 2024 06:29
page revision: 6, last edited: 16 Feb 2012 01:28
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License
Click here to edit contents of this page.
Click here to toggle editing of individual sections of the page (if possible). Watch headings for an "edit" link when available.
Append content without editing the whole page source.
Check out how this page has evolved in the past.
If you want to discuss contents of this page - this is the easiest way to do it.
View and manage file attachments for this page.
A few useful tools to manage this Site.
Change the name (also URL address, possibly the category) of the page.
View wiki source for this page without editing.
View/set parent page (used for creating breadcrumbs and structured layout).

AltStyle によって変換されたページ (->オリジナル) /