Template:Prevnext2: Difference between revisions
Line 66: | Line 66: | ||
---- | ---- | ||
== | == Example usage: the least amount of typing == | ||
Writing this: | |||
<code>{{Prevnext2 | <code>{{Prevnext2 | ||
| nextpage=path/to/article | | nextpage=path/to/article | ||
| prevpage=path/to/lastsection | | prevpage=path/to/lastsection | ||
}}</code> | }}</code> | ||
Gets you this: | |||
---- | ---- | ||
{{Prevnext2 | {{Prevnext2 | ||
Line 82: | Line 79: | ||
}} | }} | ||
---- | ---- | ||
== Extra options == | == Extra options == |
Revision as of 14:50, 3 June 2010
Template:I18n/Language Navigation Bar
Use this template when you want to provide links to the previous and the next sections of the article so the user isn't forced to go back to the index to navigate.
Arguments
(* - Optional arguments.)
Example usage
Writing this:
Gets you this:
Example usage: omitting arguments
Writing this:
Gets you this:
Writing this:
Gets you this:
Example usage: the least amount of typing
Writing this:
Gets you this:
Extra options
There are two more completely optional arguments for this template. These replace the text in the middle of the template with a link to wherever you like (most usually the index of the article). To use them, write this:
which will be rendered as:
You don't need to use both of them. If you just want to specify the text in the middle without making it a link, simply omit the index argument completely:
Which will be rendered as:
Template source code