Template:Nav-dpl: Difference between revisions

From Gulf States Flood Help
Created page with "<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|previous}} and {{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> magic word, to fetch previous and next pages to t..."
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: 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|previous}} and {{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.
<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|prev-dpl}} and {{t|next-dpl}} 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.


</noinclude><includeonly>{| style="width:100%; border:1px solid lightgrey; background:#e9f4f9;"
</noinclude><includeonly>{| style="width:100%; border:1px solid lightgrey; background:#e9f4f9;"
|style="width:40%;"|{{previous|category={{{category|}}}}}
|style="width:40%;"|{{prev-dpl|category={{{category|}}}|replace={{{replace|}}}}}
|style="width:20%; text-align:center;"|[[:Category:{{{category|}}}|{{{category|}}}]]
|style="width:20%; text-align:center;"|[[:Category:{{{category|}}}|{{{category|}}}]]
|style="width:40%;"|{{next|category={{{category|}}}}}
|style="width:40%;"|{{next-dpl|category={{{category|}}}|replace={{{replace|}}}}}
|}</includeonly>
|}</includeonly>

Latest revision as of 14:25, 27 December 2024

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 {{prev-dpl}} and {{next-dpl}} 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 {{PAGENAME}} magic word, to fetch previous and next pages to the page it is placed on.