EWTE/nav: Difference between revisions
From OER in Education
< EWTE
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
This is an example for how the [[Template:BasePageGroup]] is used to create navigation. See [[Template:BasePageGroup]] for further information. | This is an example for how the [[Template:BasePageGroup]] is used to create navigation. See [[Template:BasePageGroup]] for further information. | ||
{{BasePageGroupPrev}}{{BasePageGroupNext}} | Navigation: {{BasePageGroupPrev}}{{BasePageGroupNext}} | ||
{{: EWTE/nav/plusminus}} | |||
= Pages = | = Pages = | ||
{{BasePageGroupShow}} | {{BasePageGroupShow}} |
Revision as of 12:21, 5 January 2015
This is an example for how the Template:BasePageGroup is used to create navigation. See Template:BasePageGroup for further information.
Navigation: [[|<<<]] [[|>>>]]
The advantages of this approach are:
- Flexible creation of navigation, as simple as adding a generic template (Template:BasePageGroupNav) to each in a set of pages (and sub-pages) to create navigation.
- The page itself 'knows' that it's part of the book (and where it is in the book), and can 'behave' accordingly, e.g. allowing for 'previous' and 'next' links.
The disadvantages of this approach are:
- It does require a number of extensions to be installed (semantic mediawiki, as well as functions for arrays).
- It does not integrate with the book extension, when in principle the functionality is similar.