Page Collections and Sequence Boxes



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?


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
One Two Three Four Five Six Seven Five

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: +18+x
Add a New Comment
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License