Template:Footer Nav: Difference between revisions

Template page
w:c:strategywiki>Skizzerz
(adding failsafe defaults)
w:c:strategywiki>Prod
(adding prevpage while keeping backpage....hope this works >.<)
Line 2: Line 2:
<p style="position: relative; text-align: center" {{#if:{{{toc|}}}||class="NavHead"}}>
<p style="position: relative; text-align: center" {{#if:{{{toc|}}}||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:{{{customback|}}}|<span style="border-right: 1px solid grey; padding-right: 5px; margin-right: 5px;">← {{{customback}}}</span>}}<span style="border-right: 1px solid grey; padding-right: 5px; margin-right: 5px;">← {{#if:{{{backpage|}}}|[[{{{game|{{NAMESPACE}}:{{BASEPAGENAME}}}}}/{{{backpage}}}|{{{backname|{{{backpage}}}}}}]]|[[{{{game|{{NAMESPACE}}:{{BASEPAGENAME}}}}}]]}}</span><span style="padding-left: 5px; padding-right: 5px;">{{#if:{{{here|}}}|{{{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>
<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>
<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></includeonly><noinclude>
<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}}}|[[Category:Deprecated templates]]}}|</includeonly><noinclude>
<nowiki>{{Footer Nav|game=Game|backpage=Previous Page|backname=label|here=This Page (optional)|nextpage=Next Page|nextname=label}}</nowiki>


You can also use the custom parameters <code>customback=</code> and <code>customnext=</code> to add additional links to a direction.
<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.


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:
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
without toc=no
{{Footer Nav|game=Game|backpage=Previous Page|backname=label|nextpage=Next Page|nextname=label}}
{{Footer Nav|game=Game|prevpage=Previous Page|prevname=label|nextpage=Next Page|nextname=label}}


with toc=no
with toc=no
{{Footer Nav|game=Game|backpage=Previous Page|backname=label|nextpage=Next Page|nextname=label|toc=no}}
{{Footer Nav|game=Game|prevpage=Previous Page|prevname=label|nextpage=Next Page|nextname=label|toc=no}}


[[Category:Templates|F]]</noinclude>
[[Category:Templates|F]]</noinclude>

Revision as of 23:15, 26 May 2007


{{Footer Nav|game=Game|prevpage=Previous Page|prevname=label|here=This Page (optional)|nextpage=Next Page|nextname=label}}

You can also use the custom parameters customprev= and customnext= 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

|

with toc=no

[Go to top] labelFooter Navlabel

|