Difference between revisions of "Template:Prev"

Jump to: navigation, search
Line 1: Line 1:
<includeonly>
+
<includeonly>{{Prevnext|{{{1}}}||{{{2|{{{1}}}}}}|}}</includeonly>
{{Prevnext|{{{1}}}||{{{2|{{{1}}}}}}|}}
 
</includeonly>
 
 
<noinclude>
 
<noinclude>
{{Template:I18n/Language Navigation Bar|Template:Prev}}
 
 
Use this template when you want to provide a link to the previous section of the article so the user isn't forced to go back to the index to navigate. Use when there is no previous article to link to.
 
Use this template when you want to provide a link to the previous section of the article so the user isn't forced to go back to the index to navigate. Use when there is no previous article to link to.
  
== How to use this template ==
+
== Usage ==
  
Write '''<nowiki>{{Prev|The previous page in the article}}</nowiki>''', which will be returned as,
+
Input:
 +
{{Input|1=<nowiki>{{Prev|This Article/Second Chapter}}</nowiki>}}
 +
Output:
 +
{{Prev|This Article/Second Chapter}}
  
{{Prev|The previous page in the article}}
+
If you don't want the previous page in the article to show up as an ugly Mediawiki link (such as [[Application/subsection/subsection]]), write
 
+
{{Input|1=<nowiki>{{Prev|Application/subsection/subsection|The previous page in the article}}</nowiki>}}
If you don't want the previous page in the article to show up as an ugly Mediawiki link (such as [[Application/subsection/subsection]]), write<br> '''<nowiki>{{Prev|Application/subsection/subsection|The previous page in the article}}</nowiki>''' to get
+
to get
 
{{Prev|Application/subsection/subsection|The previous page in the article}}
 
{{Prev|Application/subsection/subsection|The previous page in the article}}
  

Revision as of 12:16, 12 September 2010


Use this template when you want to provide a link to the previous section of the article so the user isn't forced to go back to the index to navigate. Use when there is no previous article to link to.

Usage

Input:

{{Prev|This Article/Second Chapter}}

Output:


If you don't want the previous page in the article to show up as an ugly Mediawiki link (such as Application/subsection/subsection), write

{{Prev|Application/subsection/subsection|The previous page in the article}}

to get


See also

  • Prevnext - For providing links to previous and the next sections of the article.
  • Next - For providing a link to the next article. Use for the first article page.

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