Template:Navigation: Difference between revisions

Better simplified anyhow
imported>FrozenPlum
(Add a navigation example template)
 
imported>FrozenPlum
(Better simplified anyhow)
Line 1:
<noinclude>This template formats a navigation bar of previous and next page in a given category and places it inside a 3 column table. It uses the {{t|directionprevious}} templateand {{t|next}} templates to create the previous/next buttons, based on the '''name''' of a given category '''without the namespace'''. When placed on a page in Category:Fruit examples, it uses the <code><nowiki>{{PAGENAME}}</nowiki></code> [[mw:Help:Magic words|magic word]], to fetch previous and next pages to the page it is placed on. See the </noinclude><includeonly>{{t|direction}} templatestyle="width:100%; forborder:1px moresolid information.lightgrey; background:#e9f4f9;"
<includeonly>{| style="width:100%; border:1px solid lightgrey; background:#e9f4f9;"
|style="width:40%;"|{{direction|descendingprevious|category={{{category|}}}}}
|style="width:20%; text-align:center;"|[[:Category:{{{category|}}}|{{{category|}}}]]
|style="width:40%;"|{{direction|ascendingnext|category={{{category|}}}}}
|}</includeonly><noinclude>
 
Line 10:
{{navigation|category=Fruit examples}}
 
==NotesSee also==
* [[Template:Previous]]
This template formats a navigation bar of previous and next page in a given category and places it inside a 3 column table. It uses the {{t|direction}} template to create the previous/next buttons, based on the given category. When placed on a page in Category:Fruit examples, it uses the <code><nowiki>{{PAGENAME}}</nowiki></code> [[mw:Help:Magic words|magic word]], to fetch previous and next pages to the page it is placed on. See the {{t|direction}} template for more information.
* [[Template:Next]]
 
[[Category:Example templates]]
</noinclude>
Anonymous user