Template:Prevnext2: Difference between revisions
*>AnneW (Created page with "<includeonly><table align=center id=toc style="width: 95%" class="noprint"><tr> <td style="text-align: left; width: 33%">{{#if: {{{prevpage|}}} | [[{{{prevpage}}}|← {{{prevt...") |
(Created page with "<includeonly><table align=center id=toc style="width: 95%" class="noprint"><tr> <td style="text-align: left; width: 33%">{{#if: {{{prevpage|}}} | [[{{{prevpage}}}|← {{{prevt...") |
(No difference)
|
Revision as of 16:55, 23 July 2012
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
{{Prevnext2
| prevpage = The path of the previous article.
| prevtext = The link name for prevpage.*
| nextpage = The path to the next article.*
| nexttext = The link name for nextpage.*
| index = The path to the manual index.*
| indextext = The link name for index.*
}}
(* - Optional arguments.)
Example usage
Writing this:
{{Prevnext2
| prevpage=path/to/article | nextpage=path/to/article
| prevtext=previous section| nexttext=The next section
}}
Gets you this:
Example usage: omitting arguments
Writing this:
{{Prevnext2
| nextpage=path/to/article
| nexttext=The next section
}}
Gets you this:
Writing this:
{{Prevnext2
| prevpage=path/to/article
| prevtext=previous section
}}
Gets you this:
Example usage: the least amount of typing
Writing this:
{{Prevnext2
| nextpage=path/to/article
| prevpage=path/to/lastsection
}}
Gets you this:
Example usage: including every argument
Writing this:
{{Prevnext2
| prevpage=path/to/article | nextpage=path/to/article
| prevtext=previous section | nexttext=The next section
| index= {{PAGENAME}}/Manual | indextext=Contents page
}}
Gets you this:
Writing this:
{{Prevnext2
| nextpage=path/to/article
| nexttext=The next section
| indextext=Contents section
}}
Gets you this: