w:c:strategywiki>Notmyhandle (cleanup) |
w:c:strategywiki>DrBob (Added previmg, hereimg and nextimg parameters) |
||
Line 1: | Line 1: | ||
<includeonly><div class="nav_box footer_nav NavFrame"><p style="position:relative;text-align:center" class="NavHead"><span style="float:left;font-size:smaller">[[#centrecontent|[Go to top]]]</span><span>{{#if:{{{customprev|}}}|<span class="nav_box_lhs_link">← {{{customprev|}}}</span>}}<span class="nav_box_lhs_link">← {{#if:{{{prevpage|}}}|[[{{{game|}}}/{{{prevpage|}}}|{{{prevname|{{{prevpage|}}}}}}]]|[[{{{game|{{NAMESPACE}}:{{BASEPAGENAME}}}}}]]}}</span><span class="nav_box_middle_link">{{{here|{{SUBPAGENAME}}}}}</span><span class="nav_box_rhs_link">{{#if:{{{nextpage|}}}|[[{{{game|}}}/{{{nextpage}}}|{{{nextname|{{{nextpage}}}}}}]]|[[{{{game|}}}]]}} →</span>{{#if:{{{customnext|}}}|<span class="nav_box_rhs_link">{{{customnext}}} →</span> }}</span></p><div class="NavContent" style="display:{{#ifeq:{{SUBPAGENAME}}|Walkthrough|block|none}}"><p class="nav_box_toc_heading">Table of Contents</p>{{:{{{game|}}}/Table of Contents}}{{-}}</div></div></includeonly><noinclude> | <includeonly><div class="nav_box footer_nav NavFrame"><p style="position:relative;text-align:center" class="NavHead"><span style="float:left;font-size:smaller">[[#centrecontent|[Go to top]]]</span><span>{{#if:{{{customprev|}}}|<span class="nav_box_lhs_link">← {{{customprev|}}}</span>}}<span class="nav_box_lhs_link">← {{#if:{{{previmg|}}}|{{{previmg}}} }}{{#if:{{{prevpage|}}}|[[{{{game|}}}/{{{prevpage|}}}|{{{prevname|{{{prevpage|}}}}}}]]|[[{{{game|{{NAMESPACE}}:{{BASEPAGENAME}}}}}]]}}</span><span class="nav_box_middle_link">{{#if:{{{hereimg|}}}|{{{hereimg}}} }}{{{here|{{SUBPAGENAME}}}}}</span><span class="nav_box_rhs_link">{{#if:{{{nextimg|}}}|{{{nextimg}}} }}{{#if:{{{nextpage|}}}|[[{{{game|}}}/{{{nextpage}}}|{{{nextname|{{{nextpage}}}}}}]]|[[{{{game|}}}]]}} →</span>{{#if:{{{customnext|}}}|<span class="nav_box_rhs_link">{{{customnext}}} →</span> }}</span></p><div class="NavContent" style="display:{{#ifeq:{{SUBPAGENAME}}|Walkthrough|block|none}}"><p class="nav_box_toc_heading">Table of Contents</p>{{:{{{game|}}}/Table of Contents}}{{-}}</div></div></includeonly><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
{{High-risk}} | {{High-risk}} | ||
[[Category:Templates|F]]</noinclude> | [[Category:Templates|F]]</noinclude> |
Revision as of 21:32, 17 May 2008
This page has been transcluded from Template:Footer Nav/Documentation.
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.
Usage
{{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) |customprev=Additional link on the left (optional). |customnext=Additional link on the right (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.
Example
Most commonly you will run into a basic Footer Nav with only the minimum requirements, such as the following:
{{Footer Nav|game=Super Metroid|prevpage=Controls|nextpage=Space Colony Ceres}}