w:c:strategywiki>Garrett mNo edit summary |
m (Fixed: Next and prev links point to adjacent subpages) |
||
(67 intermediate revisions by 8 users not shown) | |||
Line 1: | Line 1: | ||
<div | <includeonly><div class="nav_box footer_nav mw-collapsible {{#ifeq:{{SUBPAGENAME}}|Walkthrough||mw-collapsed}} noprint"><span class="top_link">[[#top|Go to top]]</span><div class="mw-collapsible-header">{{#if:{{{customprev|}}}|← {{{customprev|}}} {{!}} }}← {{#if:{{{previmg|}}}|{{{previmg}}} }}{{#if:{{{prevpage|}}}|[[../{{{prevpage|}}}|{{{prevname|{{{prevpage|}}}}}}]]|[[{{{game|}}}]]}} {{!}} {{#if:{{{hereimg|}}}|{{{hereimg}}} }}{{{here|{{SUBPAGENAME}}}}} {{!}} {{#if:{{{nextimg|}}}|{{{nextimg}}} }}{{#if:{{{nextpage|}}}|[[../{{{nextpage}}}|{{{nextname|{{{nextpage}}}}}}]]|[[{{{game|}}}]]}} →{{#if:{{{customnext|}}}| {{!}} {{{customnext}}} →}}</div><div class="mw-collapsible-content"><p class="toc_heading">Table of Contents</p>{{:Table of Contents}}{{-}}</div></div></includeonly><noinclude> | ||
< | {{Documentation}} | ||
{{ | {{High-risk}} | ||
{{ | |||
</ | |||
<div class=" | |||
{{:{{ | |||
</div></ | |||
[[Category:Templates]]</noinclude> | |||
[[Category:Templates |
Latest revision as of 20:06, 28 October 2023
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[edit source]
{{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[edit source]
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}}