Template:Prevnext2: Difference between revisions
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 edit summary |
||
Line 12: | Line 12: | ||
== Arguments == | == Arguments == | ||
<tt><nowiki>{{ | <tt><nowiki>{{PrevNext2</nowiki><br><nowiki> | ||
| prevpage = The path of the previous article.</nowiki><br><nowiki> | | prevpage = The path of the previous article.</nowiki><br><nowiki> | ||
| prevtext = The link name for prevpage.*</nowiki><br><nowiki> | | prevtext = The link name for prevpage.*</nowiki><br><nowiki> | ||
Line 27: | Line 27: | ||
Writing this: | Writing this: | ||
<br><tt><nowiki>{{ | <br><tt><nowiki>{{PrevNext2</nowiki><br><nowiki> | ||
| prevpage=path/to/article | nextpage=path/to/article</nowiki><br><nowiki> | | prevpage=path/to/article | nextpage=path/to/article</nowiki><br><nowiki> | ||
| prevtext=previous section| nexttext=The next section</nowiki><br><nowiki> | | prevtext=previous section| nexttext=The next section</nowiki><br><nowiki> | ||
Line 34: | Line 34: | ||
Gets you this: | Gets you this: | ||
---- | ---- | ||
{{ | {{PrevNext2 | ||
| prevpage=path/to/article | nextpage=path/to/article | | prevpage=path/to/article | nextpage=path/to/article | ||
| prevtext=previous section| nexttext=The next section | | prevtext=previous section| nexttext=The next section | ||
Line 44: | Line 44: | ||
Writing this: | Writing this: | ||
<tt><nowiki>{{ | <tt><nowiki>{{PrevNext2</nowiki><br><nowiki> | ||
| nextpage=path/to/article</nowiki><br><nowiki> | | nextpage=path/to/article</nowiki><br><nowiki> | ||
| nexttext=The next section</nowiki><br><nowiki> | | nexttext=The next section</nowiki><br><nowiki> | ||
Line 51: | Line 51: | ||
Gets you this: | Gets you this: | ||
---- | ---- | ||
{{ | {{PrevNext2 | ||
| nextpage=path/to/article | | nextpage=path/to/article | ||
| nexttext=The next section | | nexttext=The next section | ||
Line 59: | Line 59: | ||
Writing this: | Writing this: | ||
<tt><nowiki>{{ | <tt><nowiki>{{PrevNext2</nowiki><br><nowiki> | ||
| prevpage=path/to/article</nowiki><br><nowiki> | | prevpage=path/to/article</nowiki><br><nowiki> | ||
| prevtext=previous section</nowiki><br><nowiki> | | prevtext=previous section</nowiki><br><nowiki> | ||
Line 66: | Line 66: | ||
Gets you this: | Gets you this: | ||
---- | ---- | ||
{{ | {{PrevNext2 | ||
| prevpage=path/to/article | | prevpage=path/to/article | ||
| prevtext=previous section | | prevtext=previous section | ||
Line 75: | Line 75: | ||
Writing this: | Writing this: | ||
<tt><nowiki>{{ | <tt><nowiki>{{PrevNext2</nowiki><br><nowiki> | ||
| nextpage=path/to/article</nowiki><br><nowiki> | | nextpage=path/to/article</nowiki><br><nowiki> | ||
| prevpage=path/to/lastsection</nowiki><br><nowiki> | | prevpage=path/to/lastsection</nowiki><br><nowiki> | ||
Line 82: | Line 82: | ||
Gets you this: | Gets you this: | ||
---- | ---- | ||
{{ | {{PrevNext2 | ||
| nextpage=path/to/article | | nextpage=path/to/article | ||
| prevpage=path/to/lastsection | | prevpage=path/to/lastsection | ||
Line 92: | Line 92: | ||
Writing this: | Writing this: | ||
<tt><nowiki>{{ | <tt><nowiki>{{PrevNext2</nowiki><br><nowiki> | ||
| prevpage=path/to/article | nextpage=path/to/article</nowiki><br><nowiki> | | prevpage=path/to/article | nextpage=path/to/article</nowiki><br><nowiki> | ||
| prevtext=previous section | nexttext=The next section</nowiki><br><nowiki> | | prevtext=previous section | nexttext=The next section</nowiki><br><nowiki> | ||
Line 100: | Line 100: | ||
Gets you this: | Gets you this: | ||
---- | ---- | ||
{{ | {{PrevNext2 | ||
| prevpage=path/to/article | nextpage=path/to/article | | prevpage=path/to/article | nextpage=path/to/article | ||
| prevtext=previous section | nexttext=The next section | | prevtext=previous section | nexttext=The next section | ||
Line 109: | Line 109: | ||
Writing this: | Writing this: | ||
<tt><nowiki>{{ | <tt><nowiki>{{PrevNext2</nowiki><br><nowiki> | ||
| nextpage=path/to/article</nowiki><br><nowiki> | | nextpage=path/to/article</nowiki><br><nowiki> | ||
| nexttext=The next section</nowiki><br><nowiki> | | nexttext=The next section</nowiki><br><nowiki> | ||
Line 117: | Line 117: | ||
Gets you this: | Gets you this: | ||
---- | ---- | ||
{{ | {{PrevNext2 | ||
| nextpage=path/to/article | | nextpage=path/to/article | ||
| nexttext=The next section | | nexttext=The next section |
Revision as of 16:59, 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: