Page Collections and Sequence Boxes

By JSVJSV

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

Rate this solution

If you think this solution is useful — rate it up! Or dump it otherwise.

rating: +13+x
Add a new comment
page_revision: 5, last_edited: 1217320894|%e %b %Y, %H:%M %Z (%O ago)
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License