Difference between revisions of "Template:Prevnext2"

Jump to: navigation, search
(Omitting link descriptions)
(Extra options)
Line 80: Line 80:
 
----
 
----
  
== Extra options ==
+
== Example usage: including every argument ==
 
 
There are two more completely optional arguments for this template. These replace the text in the middle of the template with a link to wherever you like (most usually the index of the article). To use them, write this:
 
  
 +
Writing this:
 
<code>{{Prevnext2
 
<code>{{Prevnext2
 
| prevpage=path/to/article      | nextpage=path/to/article
 
| prevpage=path/to/article      | nextpage=path/to/article
Line 89: Line 88:
 
| index=  {{PAGENAME}}/Manual  | indextext=Contents page
 
| index=  {{PAGENAME}}/Manual  | indextext=Contents page
 
}}</code>
 
}}</code>
 
+
Gets you this:
which will be rendered as:
 
 
----
 
----
 
{{Prevnext2
 
{{Prevnext2
Line 99: Line 97:
 
----
 
----
  
You don't need to use both of them. If you just want to specify the text in the middle without making it a link, simply omit the ''index'' argument completely:
+
Writing this:
 
 
 
<code>{{Prevnext2
 
<code>{{Prevnext2
 
| nextpage=path/to/article
 
| nextpage=path/to/article
Line 106: Line 103:
 
| indextext=Contents section
 
| indextext=Contents section
 
}}</code>
 
}}</code>
 
+
Gets you this:
Which will be rendered as:
 
 
----
 
----
 
{{Prevnext2
 
{{Prevnext2

Revision as of 14:51, 3 June 2010

Template:I18n/Language Navigation Bar

Dialog-information.png
Information
This template is a work-in-progress and will probably be re-named to something less obtuse quite soon, so avoid using it just at the moment.


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

(* - Optional arguments.)

Example usage

Writing this:

Gets you this:



Example usage: omitting arguments

Writing this:

Gets you this:



Writing this:

Gets you this:



Example usage: the least amount of typing

Writing this:

Gets you this:



Example usage: including every argument

Writing this:

Gets you this:



Writing this:

Gets you this:



Template source code

Prevnext2


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