Template:Prevnext: Difference between revisions
Appearance
Pipesmoker (talk | contribs) No edit summary |
Pipesmoker (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
{|width="100%" | {|width="100%" | ||
| style="text-align:left;" | {{#if: {{{1|}}} | [[{{{1}}}|Previous]]<br />{{{3|{{{1}}}}}} }} | | style="text-align:left;" | {{#if: {{{1|}}} | [[{{{1}}}|Previous]]<br />{{{3|{{{1}}}}}} | }} | ||
| style="text-align:right;" | {{#if: {{{2|}}} | [[{{{2}}}|Next]]<br />{{{4|{{{2}}}}}} }} | | style="text-align:right;" | {{#if: {{{2|}}} | [[{{{2}}}|Next]]<br />{{{4|{{{2}}}}}} | }} | ||
|} | |} | ||
</includeonly> | </includeonly> |
Revision as of 15:10, 11 September 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.
How to use this template
Write {{Prevnext|Go back a page|The next section is difficult!}}, which will be returned as,
Previous Go back a page |
Next The next section is difficult! |
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 here is the previous section text | This is the next section
}}
This will be rendered as
Previous This here is the previous section |
Next This is the next section |
Only one direction
{{Prevnext
||Article/section/next|
|| This is the next section
}}
This will be rendered as
Next This is the next section |