Difference between revisions of "Template:Prev"
(Made a new navigation template) |
|||
(7 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly | + | <includeonly> |
− | {| | + | {{Prevnext2|prevpage={{{1}}}|prevtext={{{2}}} }}</includeonly> |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<noinclude> | <noinclude> | ||
+ | |||
+ | {{Warning|This template is deprecated! Don't use it in new pages, use [[Template:Prevnext2]] instead.}} | ||
+ | The old code: | ||
+ | {{Input|1=<nowiki> | ||
+ | <includeonly>{{Prevnext|{{{1}}}||{{{2|{{{1}}}}}}|}}</includeonly> | ||
+ | <noinclude></nowiki>}} | ||
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. | ||
− | == | + | == Usage == |
− | + | 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>}} | ||
+ | to get | ||
+ | {{Prev|Application/subsection/subsection|The previous page in the article}} | ||
== See also == | == See also == | ||
Line 25: | Line 27: | ||
* [[Template:Next|Next]] - For providing a link to the next article. Use for the first article page. | * [[Template:Next|Next]] - For providing a link to the next article. Use for the first article page. | ||
− | [[Category: | + | [[Category:Template]] |
</noinclude> | </noinclude> |
Latest revision as of 11:19, 29 July 2012

Warning
This template is deprecated! Don't use it in new pages, use Template:Prevnext2 instead.
The old code:
<includeonly>{{Prevnext|{{{1}}}||{{{2|{{{1}}}}}}|}}</includeonly> <noinclude>
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:
- ← {{{2}}}
- Prev
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
This page was last edited on 29 July 2012, at 11:19. Content is available under Creative Commons License SA 4.0 unless otherwise noted.