Template:Prevnext2: Difference between revisions
No edit summary |
(no code tags yet, so bummer. revert this change after geshi extension installed) |
||
Line 12: | Line 12: | ||
== Arguments == | == Arguments == | ||
< | <tt><nowiki>{{Prevnext2</nowiki><br><nowiki> | ||
| prevpage = The path of the previous article. | | prevpage = The path of the previous article.</nowiki><br><nowiki> | ||
| prevtext = The link name for prevpage.* | | prevtext = The link name for prevpage.*</nowiki><br><nowiki> | ||
| nextpage = The path to the next article.* | | nextpage = The path to the next article.*</nowiki><br><nowiki> | ||
| nexttext = The link name for nextpage.* | | nexttext = The link name for nextpage.*</nowiki><br><nowiki> | ||
| index = The path to the manual index.* | | index = The path to the manual index.*</nowiki><br><nowiki> | ||
| indextext = The link name for index.* | | indextext = The link name for index.*</nowiki><br><nowiki> | ||
}} | }}</nowiki></tt> | ||
</ | |||
(* - Optional arguments.) | (* - Optional arguments.) | ||
Line 26: | Line 26: | ||
== Example usage == | == Example usage == | ||
Writing this: | Writing this: | ||
< | |||
| prevpage=path/to/article | nextpage=path/to/article | <br><tt><nowiki>{{Prevnext2</nowiki><br><nowiki> | ||
| prevtext=previous section| nexttext=The next section | | prevpage=path/to/article | nextpage=path/to/article</nowiki><br><nowiki> | ||
}}</ | | prevtext=previous section| nexttext=The next section</nowiki><br><nowiki> | ||
}}</nowiki></tt><br> | |||
Gets you this: | Gets you this: | ||
---- | ---- | ||
Line 41: | Line 43: | ||
Writing this: | Writing this: | ||
< | |||
| nextpage=path/to/article | <tt><nowiki>{{Prevnext2</nowiki><br><nowiki> | ||
| nexttext=The next section | | nextpage=path/to/article</nowiki><br><nowiki> | ||
}}</ | | nexttext=The next section</nowiki><br><nowiki> | ||
}}</nowiki></tt> | |||
Gets you this: | Gets you this: | ||
---- | ---- | ||
Line 54: | Line 58: | ||
Writing this: | Writing this: | ||
< | |||
| prevpage=path/to/article | <tt><nowiki>{{Prevnext2</nowiki><br><nowiki> | ||
| prevtext=previous section | | prevpage=path/to/article</nowiki><br><nowiki> | ||
}}</ | | prevtext=previous section</nowiki><br><nowiki> | ||
}}</nowiki></tt> | |||
Gets you this: | Gets you this: | ||
---- | ---- | ||
{{Prevnext2 | {{Prevnext2 | ||
| prevpage=path/to/article | | prevpage=path/to/article | ||
| prevtext=previous section | | prevtext=previous section | ||
}} | }} | ||
Line 68: | Line 74: | ||
== Example usage: the least amount of typing == | == Example usage: the least amount of typing == | ||
Writing this: | Writing this: | ||
< | |||
| nextpage=path/to/article | <tt><nowiki>{{Prevnext2</nowiki><br><nowiki> | ||
| prevpage=path/to/lastsection | | nextpage=path/to/article</nowiki><br><nowiki> | ||
}}</ | | prevpage=path/to/lastsection</nowiki><br><nowiki> | ||
}}</nowiki></tt> | |||
Gets you this: | Gets you this: | ||
---- | ---- | ||
Line 83: | Line 91: | ||
Writing this: | Writing this: | ||
< | |||
| prevpage=path/to/article | nextpage=path/to/article | <tt><nowiki>{{Prevnext2</nowiki><br><nowiki> | ||
| prevtext=previous section | nexttext=The next section | | prevpage=path/to/article | nextpage=path/to/article</nowiki><br><nowiki> | ||
| index= {{PAGENAME}}/Manual | indextext=Contents page | | prevtext=previous section | nexttext=The next section</nowiki><br><nowiki> | ||
}}</ | | index= {{PAGENAME}}/Manual | indextext=Contents page</nowiki><br><nowiki> | ||
}}</nowiki></tt> | |||
Gets you this: | Gets you this: | ||
---- | ---- | ||
Line 98: | Line 108: | ||
Writing this: | Writing this: | ||
< | |||
| nextpage=path/to/article | <tt><nowiki>{{Prevnext2</nowiki><br><nowiki> | ||
| nexttext=The next section | | nextpage=path/to/article</nowiki><br><nowiki> | ||
| indextext=Contents section | | nexttext=The next section</nowiki><br><nowiki> | ||
}}</ | | indextext=Contents section</nowiki><br><nowiki> | ||
}}</nowiki></tt> | |||
Gets you this: | Gets you this: | ||
---- | ---- | ||
Line 112: | Line 124: | ||
---- | ---- | ||
[[Category:Template]] | [[Category:Template]] |
Revision as of 13:29, 7 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
{{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: