Template:Prevnext2: Difference between revisions
Line 38: | Line 38: | ||
---- | ---- | ||
== | == Example usage: omitting arguments == | ||
Writing this: | |||
<code>{{Prevnext2 | <code>{{Prevnext2 | ||
| nextpage=path/to/article | | nextpage=path/to/article | ||
| nexttext=The next section | | nexttext=The next section | ||
}}</code> | }}</code> | ||
Gets you this: | |||
---- | ---- | ||
{{Prevnext2 | {{Prevnext2 | ||
Line 56: | Line 53: | ||
---- | ---- | ||
Writing this: | |||
<code>{{Prevnext2 | <code>{{Prevnext2 | ||
| prevpage=path/to/article | | prevpage=path/to/article | ||
| prevtext=previous section | | prevtext=previous section | ||
}}</code> | }}</code> | ||
Gets you this: | |||
---- | ---- | ||
{{Prevnext2 | {{Prevnext2 |
Revision as of 14:49, 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:
Omitting link descriptions
Finally, the link description text doesn't have to be specified, either. The text will default to the name of the article you are linking to. So, the following syntax,
will render as:
This might be useful in some situations. But often it looks ugly, so try to specify link text whenever you can!
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