Template:Prevnext: Difference between revisions
Appearance
Pipesmoker (talk | contribs) No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<translate> | |||
<includeonly>{|width="100%" | <includeonly>{|width="100%" | ||
| style="text-align:left;" | {{#if: {{{1|}}} | [[{{{1}}}|Previous]]<br />{{{3|{{{1}}}}}} | }} | | style="text-align:left;" | {{#if: {{{1|}}} | [[{{{1}}}|Previous]]<br />{{{3|{{{1}}}}}} | }} | ||
Line 18: | Line 19: | ||
'''<tt><nowiki>{{Prevnext</nowiki><br><nowiki> | '''<tt><nowiki>{{Prevnext</nowiki><br><nowiki> | ||
|Article/section/previous-subsection |Article/section/next| </nowiki><br><nowiki> | |Article/section/previous-subsection |Article/section/next| </nowiki><br><nowiki> | ||
This | This points to the previous section text | This is the next section</nowiki><br><nowiki> | ||
}}</nowiki></tt>''' | }}</nowiki></tt>''' | ||
This will be rendered as | This will be rendered as | ||
{{Prevnext|Article/section/previous-subsection|Article/section/next|This | {{Prevnext|Article/section/previous-subsection|Article/section/next|This points to the previous section|This is the next section}} | ||
==Only one direction== | ==Only one direction== | ||
Line 42: | Line 43: | ||
[[Category:Template]] | [[Category:Template]] | ||
</noinclude> | </noinclude> | ||
</translate> |
Revision as of 15:46, 11 September 2010
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.
How to use this template
Write {{Prevnext|Go back a page|The next section is difficult!}}, which will be returned as,
<translate>
Previous Go back a page |
Next The next section is difficult! |
</translate>
Prettier links
To make the links to the pages look less ugly you can provide extra options to the template:
{{Prevnext
|Article/section/previous-subsection |Article/section/next|
This points to the previous section text | This is the next section
}}
This will be rendered as
<translate>
Previous This points to the previous section |
Next This is the next section |
</translate>
Only one direction
{{Prevnext
||Article/section/next|
|| This is the next section
}}
This will be rendered as
<translate>
Next This is the next section |
</translate>