Template:Footer Nav/Documentation: Difference between revisions

Template page
w:c:strategywiki>Prod
(converted to <pre>)
w:c:strategywiki>DrBob
(Expanded)
Line 1: Line 1:
This template is used to display a "footer nav" at the bottom of a page, which contains links to the previous and next pages, as well as an expandable table of contents, which is usually hidden, but is shown by default for "Walkthrough" pages.
<pre>{{Footer Nav
<pre>{{Footer Nav
|game=Game name
|game=Game name
|prevpage=Previous page name
|prevpage=Previous page name
|prevname=label
|prevname=Previous page label (optional)
|here=This page (optional)
|here=This page label (optional)
|nextpage=Next page name
|nextpage=Next page name
|nextname=label
|nextname=Next page label (optional)
}}</pre>
}}</pre>


You can also use the custom parameters <code>customprev=</code> and <code>customnext=</code> to add additional links to a direction.
The <tt>prevname</tt>, <tt>here</tt> and <tt>nextname</tt> parameters are optional, and should only be passed if you want the previous/next links to have labels different from the page name (e.g. if the previous or next pages are sub-sub-pages), or if you want the current page label to be different from the current page's name.
 
You can also use the custom parameters <tt>customprev=</tt> and <tt>customnext=</tt> to add additional links to a direction.

Revision as of 14:28, 12 January 2008

This template is used to display a "footer nav" at the bottom of a page, which contains links to the previous and next pages, as well as an expandable table of contents, which is usually hidden, but is shown by default for "Walkthrough" pages.

{{Footer Nav
|game=Game name
|prevpage=Previous page name
|prevname=Previous page label (optional)
|here=This page label (optional)
|nextpage=Next page name
|nextname=Next page label (optional)
}}

The prevname, here and nextname parameters are optional, and should only be passed if you want the previous/next links to have labels different from the page name (e.g. if the previous or next pages are sub-sub-pages), or if you want the current page label to be different from the current page's name.

You can also use the custom parameters customprev= and customnext= to add additional links to a direction.