Template:Footer Nav: Difference between revisions

Template page
w:c:strategywiki>Skizzerz
m (High-risk)
w:c:strategywiki>DrBob
(Cleanup)
Line 1: Line 1:
<includeonly><div style="clear: both; width: 100%; border: 1px solid #AAAAAA; -moz-border-radius-topleft: 10px; -moz-border-radius-topright: 10px; text-align: left; font-size: 0.9em;" class="NavFrame">
<includeonly><div class="nav_box footer_nav" class="NavFrame">
<p style="position: relative; text-align: center" class="NavHead">
<p style="position:relative;text-align:center" class="NavHead">
<span style="float: left; font-size: smaller;">[[#centrecontent|[Go to top]]]</span>
<span style="float:left;font-size:smaller">[[#centrecontent|[Go to top]]]</span>
<span>{{#if:{{{customprev|{{{customback|}}}}}}|<span style="border-right: 1px solid grey; padding-right: 5px; margin-right: 5px;">← {{{customprev|{{{customback}}}}}}</span>}}<span style="border-right: 1px solid grey; padding-right: 5px; margin-right: 5px;">← {{#if:{{{prevpage|{{{backpage|}}}}}}|[[{{{game|}}}/{{{prevpage|{{{backpage}}}}}}|{{{prevname|{{{backname|{{{prevpage|{{{backpage}}}}}}}}}}}}]]|[[{{{game|{{NAMESPACE}}:{{BASEPAGENAME}}}}}]]}}</span><span style="padding-left: 5px; padding-right: 5px;">{{{here|{{SUBPAGENAME}}}}}</span><span style="border-left: 1px solid grey; padding-left: 5px; margin-left: 5px;">{{#if:{{{nextpage|}}}|[[{{{game|}}}/{{{nextpage}}}|{{{nextname|{{{nextpage}}}}}}]]|[[{{{game|}}}]]}} →</span>{{#if:{{{customnext|}}}|<span style="border-left: 1px solid grey; padding-left: 5px; margin-left: 5px;">{{{customnext}}} →</span> }}</span></p>
<span>{{#if:{{{customprev|{{{customback|}}}}}}|<span class="nav_box_lhs_link">← {{{customprev|{{{customback}}}}}}</span>}}<span class="nav_box_lhs_link">← {{#if:{{{prevpage|{{{backpage|}}}}}}|[[{{{game|}}}/{{{prevpage|{{{backpage}}}}}}|{{{prevname|{{{backname|{{{prevpage|{{{backpage}}}}}}}}}}}}]]|[[{{{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: none;"><p style="color: #06033f; font-weight: normal; margin: 0; padding-top: .1em; padding-bottom: .1em; border-bottom: 1px solid #CCCCCC; font-size: 150%; padding-left: 5px; margin-bottom: .6em;">Table of Contents</p>{{:{{{game|}}}/Table of Contents}}{{-}}</div></div>{{#if:{{{backpage|}}}|[[Category:Deprecated templates]]}}{{#if:{{{backname|}}}|[[Category:Deprecated templates]]}}</includeonly><noinclude>
<div class="NavContent" style="display:none"><p class="nav_box_toc_heading">Table of Contents</p>{{:{{{game|}}}/Table of Contents}}{{-}}</div></div>{{#if:{{{backpage|}}}|[[Category:Deprecated templates/backpage]]}}{{#if:{{{backname|}}}|[[Category:Deprecated templates/backname]]}}</includeonly><noinclude>
 
{{Footer Nav/Documentation}}
<nowiki>{{Footer Nav|game=Game|prevpage=Previous Page|prevname=label|here=This Page (optional)|nextpage=Next Page|nextname=label}}</nowiki>
 
You can also use the custom parameters <code>customprev=</code> and <code>customnext=</code> to add additional links to a direction.
{{High-risk}}
{{High-risk}}
[[Category:Templates|F]]</noinclude>
[[Category:Templates|F]]</noinclude>

Revision as of 10:21, 7 October 2007

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}}


High-risk
High-risk

This high-risk template or image has been protected indefinitely. It is widely used and is at significant risk of vandalism. If you would like to edit this page, bring it up on the talk page, contact a sysop, or bring it up on Discord. Protection is not an endorsement of the current version, which is inevitably the wrong version.