Template:Prevnext: Difference between revisions
Pipesmoker (talk | contribs) No edit summary |
No edit summary |
||
(17 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{Prevnext2|prevpage={{{1}}}|prevtext={{{3}}}|nextpage={{{2}}}|nexttext={{{4}}} }}</includeonly> | ||
{| | |||
| | |||
<noinclude> | <noinclude> | ||
{{Warning|This template is deprecated. Don't use it in new pages, use [[Template:Prevnext2]] instead}} | |||
{{ | {{Input|<nowiki><includeonly>{|width="100%" | ||
| style="text-align:left;" | {{#if: {{{1|}}} | [[{{{1}}}|'''←''' {{{3|{{{1}}}}}}]] | }} | |||
| style="text-align:right;" | {{#if: {{{2|}}} | [[{{{2}}}|{{{4|{{{2}}}}}} '''→''']] | }} | |||
|}</includeonly> | |||
<noinclude></nowiki>}} | |||
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. | 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 == | == How to use this template == | ||
Write | Write | ||
{{Input|1=<nowiki>{{Prevnext|Go back a page|The next section is difficult!}}</nowiki>}} | |||
You will get this: | |||
{{Prevnext|Go back a page|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: | To make the links to the pages look less ugly you can provide extra options to the template: | ||
{{Input|1=<nowiki>{{Prevnext|Article/section/previous-subsection|Article/section/next|This points to the previous section text|This is the next section}}</nowiki>}} | |||
|Article/section/previous-subsection | |||
This | |||
}} | |||
This will be rendered as | This will be rendered as | ||
{{Prevnext|Article/section/previous-subsection|Article/section/next|This points to the previous section|This is the next section}} | |||
{{Prevnext | |||
|Article/section/previous-subsection|Article/section/next| | |||
This | |||
}} | |||
== See also == | == See also == |
Latest revision as of 11:29, 29 July 2012
Warning
This template is deprecated. Don't use it in new pages, use Template:Prevnext2 instead
<includeonly>{|width="100%" | style="text-align:left;" | {{#if: {{{1|}}} | [[{{{1}}}|'''←''' {{{3|{{{1}}}}}}]] | }} | style="text-align:right;" | {{#if: {{{2|}}} | [[{{{2}}}|{{{4|{{{2}}}}}} '''→''']] | }} |}</includeonly> <noinclude>
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!}}
You will get this:
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