Template:Footer Nav/Documentation: Difference between revisions

Template page
w:c:strategywiki>DrBob
m (Expanded)
w:c:strategywiki>DrBob
(Added previmg, hereimg and nextimg parameters)
Line 5: Line 5:
|prevpage=Previous page name (do not include game name)
|prevpage=Previous page name (do not include game name)
|prevname=Previous page label (optional)
|prevname=Previous page label (optional)
|previmg=[[Image:sample.jpg]] (optional image to display with the "previous" link)
|here=This page label (optional; do not include game name)
|here=This page label (optional; do not include game name)
|hereimg=[[Image:sample.jpg]] (optional image to display with the "here" label)
|nextpage=Next page name (do not include game name)
|nextpage=Next page name (do not include game name)
|nextname=Next page label (optional)
|nextname=Next page label (optional)
|nextimg=[[Image:sample.jpg]] (optional image to display with the "next" link)
}}</pre>
}}</pre>



Revision as of 21:34, 17 May 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 (do not include game name)
|prevname=Previous page label (optional)
|previmg=[[Image:sample.jpg]] (optional image to display with the "previous" link)
|here=This page label (optional; do not include game name)
|hereimg=[[Image:sample.jpg]] (optional image to display with the "here" label)
|nextpage=Next page name (do not include game name)
|nextname=Next page label (optional)
|nextimg=[[Image:sample.jpg]] (optional image to display with the "next" link)
}}

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.