Difference between revisions of "Template:Prevnext"

Jump to: navigation, search
m (How to use this template)
(Changed format)
Line 2: Line 2:
 
{| width="95%"
 
{| width="95%"
 
|-
 
|-
|  
+
|
| align="left" | [[{{{1}}}|Previous]]
+
| align="left" | [[{{{1}}}|Previous]]
 
| align="right" | [[{{{2}}}|Next]]
 
| align="right" | [[{{{2}}}|Next]]
 
|-
 
|-
|  
+
|
| align="left" | {{{prevtext|{{{1}}}}}}
+
| align="left" | {{{3|{{{1}}}}}}
| align="right" | {{{nexttext|{{{2}}}}}}
+
| align="right" | {{{4|{{{2}}}}}}
 
|}
 
|}
 
</center></includeonly>
 
</center></includeonly>
 
<noinclude>
 
<noinclude>
 +
 
{{Template:I18n/Language Navigation Bar|Template:Prevnext}}
 
{{Template:I18n/Language Navigation Bar|Template:Prevnext}}
 +
 
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 '''<nowiki>{{Prevnext|Go back a page|The next section is difficult!}}</nowiki>''', which will be returned as,
+
Write <tt>'''<nowiki>{{Prevnext|Go back a page|The next section is difficult!}}</nowiki>'''</tt>, which will be returned as,
  
 
{{Prevnext|Go back a page|The next section is difficult!}}
 
{{Prevnext|Go back a page|The next section is difficult!}}
  
To make the links to the pages look less ugly ((such as [[Application/section/subsection]])), you can provide extra options to the template:
+
== Prettier links ==
 +
To make the links to the pages look less ugly you can provide extra options to the template:
  
'''<nowiki>{{Prevnext|Article/section/previous-subsection|Article/section/next| </nowiki><br><nowiki>
+
'''<tt><nowiki>{{Prevnext</nowiki><br><nowiki>
|prevtext = This is the previous section</nowiki><br><nowiki>
+
|Article/section/previous-subsection   |Article/section/next| </nowiki><br><nowiki>
|nexttext = This is the next section}}</nowiki>'''
+
This here is the previous section text  | This is the next section</nowiki><br><nowiki>
 +
}}</nowiki></tt>'''
  
 
This will be rendered as
 
This will be rendered as
  
 
{{Prevnext|Article/section/previous-subsection|Article/section/next|
 
{{Prevnext|Article/section/previous-subsection|Article/section/next|
|prevtext = This is the previous section
+
This here is the previous section text|nexttext = This is the next section}}
|nexttext = This is the next section}}
 
  
 
== See also ==
 
== See also ==

Revision as of 04:35, 2 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.

How to use this template

Write {{Prevnext|Go back a page|The next section is difficult!}}, which will be returned as,


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


See also

  • Next - For providing a link to the next article. Use for the first article page.
  • Prev - For providing a link to the previous article. Use for the last article page.

Content is available under Creative Commons License SA 4.0 unless otherwise noted.