From StrategyWiki, the video game walkthrough and strategy guide wiki
Jump to navigation Jump to search
mNo edit summary
(if only one link, it doesn't have to be a bullet point, but subsequent links should be)
 
(23 intermediate revisions by 4 users not shown)
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;" {{#if:{{{toc|}}}||class="NavFrame"}}>
<includeonly><div class="nav_box footer_nav mw-collapsible {{#ifeq:{{SUBPAGENAME}}|Walkthrough||mw-collapsed}} noprint" role="navigation"><span class="top_link">[[#top|Go to top]]</span><div class="mw-collapsible-header">
<p style="position: relative; text-align: center" {{#if:{{{toc|}}}||class="NavHead"}}>
{{#if:{{{customprev|}}}|* {{{customprev|}}}}}
<span style="float: left; font-size: smaller;">[[#centrecontent|[Go to top]]]</span>
* <li class="footer_nav_prev">{{#if:{{{previmg|}}}|{{{previmg|}}}&nbsp;}}{{#if:{{{prevpage|}}}|[[{{{game|}}}/{{{prevpage|}}}|{{{prevname|{{{prevpage|}}}}}}]]|[[{{{game|}}}]]}}
<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|{{NAMESPACE}}:{{BASEPAGENAME}}}}}/{{{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|{{NAMESPACE}}:{{BASEPAGENAME}}}}}/{{{nextpage}}}|{{{nextname|{{{nextpage}}}}}}]]|[[{{{game|{{NAMESPACE}}:{{BASEPAGENAME}}}}}]]}} →</span>{{#if:{{{customnext|}}}|<span style="border-left: 1px solid grey; padding-left: 5px; margin-left: 5px;">{{{customnext}}} →</span> }}</span></p>
* <li class="footer_nav_here" aria-current="page">{{#if:{{{hereimg|}}}|{{{hereimg|}}}&nbsp;}}{{{here|{{SUBPAGENAME}}}}}
<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>{{#if:{{{toc|}}}||{{:{{{game|{{NAMESPACE}}:{{BASEPAGENAME}}}}}/Table of Contents}}{{-}}}}</div></div>{{#if:{{{backpage}}}|<includeonly>[[Category:Deprecated templates]]</includeonly>}}</includeonly><noinclude>
* <li class="footer_nav_next">{{#if:{{{nextimg|}}}|{{{nextimg|}}}&nbsp;}}{{#if:{{{nextpage|}}}|[[{{{game|}}}/{{{nextpage|}}}|{{{nextname|{{{nextpage|}}}}}}]]|[[{{{game|}}}]]}}
{{#if:{{{customnext|}}}|* {{{customnext|}}}}}</div><div class="mw-collapsible-content"><p class="toc_heading">Table of Contents</p>{{:{{{game|}}}/Table of Contents}}{{-}}</div></div></includeonly><noinclude>
{{Documentation}}


<nowiki>{{Footer Nav|game=Game|prevpage=Previous Page|prevname=label|here=This Page (optional)|nextpage=Next Page|nextname=label}}</nowiki>
[[Category:Templates]]</noinclude>
 
You can also use the custom parameters <code>customprev=</code> and <code>customnext=</code> to add additional links to a direction.
 
If you do not want/need the popdown table of contents, then add the variable toc=no (or any value, actually) to the template,which will remove the popdown and show/hide link:
 
without toc=no
{{Footer Nav|game=Game|prevpage=Previous Page|prevname=label|nextpage=Next Page|nextname=label}}
 
with toc=no
{{Footer Nav|game=Game|prevpage=Previous Page|prevname=label|nextpage=Next Page|nextname=label|toc=no}}
 
[[Category:Templates|F]]</noinclude>

Latest revision as of 22:26, 20 May 2024

This page has been transcluded from Template:Footer Nav/Documentation.


This template is used to display a navigation bar at the bottom of a page. It contains links to the previous and following pages in the walkthrough as well as an expandable table of contents. The table of contents is collapsed by default, except on "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 links on the left. Each link must be a bullet point. (optional)
|customnext=Additional links on the right. Each link must be a bullet point. (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.

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

A more complex usage would be:

{{Footer Nav|game=Grand Theft Auto III|prevpage=Waka-Gashira Wipeout|previmg=[[File:GTA3 Icon Donald.png]]|hereimg=[[File:GTA3 Icon Donald.png]]|nextpage=Grand Theft Aero|nextimg=[[File:GTA3 Icon Donald.png]]|customnext=[[File:GTA3 Icon Ray.png]] [[../Marked Man/]]
* [[File:GTA3 Icon D-Ice.png]] [[../Uzi Money/]]
* [[../Gripped!/]]}}