Template:Header Nav: Difference between revisions

Template page
w:c:strategywiki>Garrett
(implementing Ryan Schmidt's simplifications and fail-safe defaults)
w:c:strategywiki>Skizzerz
m (fixing to hyphenated sub-pages category (see User talk:Garrett))
Line 1: Line 1:
<includeonly><div style="clear: both; width: 100%; border: 1px solid #AAAAAA; -moz-border-radius-bottomleft: 10px; -moz-border-radius-bottomright: 10px; text-align: left; font-size: 0.9em;" {{#if:{{{onepage|}}}||class="NavFrame"}}>
<includeonly><div style="clear: both; width: 100%; border: 1px solid #AAAAAA; -moz-border-radius-bottomleft: 10px; -moz-border-radius-bottomright: 10px; text-align: left; font-size: 0.9em;" {{#if:{{{onepage|}}}||class="NavFrame"}}>
<p style="position: relative;" class="NavHead">{{#ifeq:{{FULLPAGENAME}}|{{{game|}}}|[[Image:000{{{num|0}}}.svg|This guide is at completion stage {{{num|0}}}]][[Category:Guides at completion stage {{{num|0}}}]]&nbsp;|[[Category:Subpages]]&nbsp;&nbsp;&nbsp;&nbsp;}}'''[[{{{game|{{NAMESPACE}}:{{BASEPAGENAME}}}}}]]''' {{#if:{{{onepage|}}}| |{{#if:{{{parent|}}}|<nowiki>|</nowiki> [[{{{parent}}}/Table of Contents|Table of Contents]] <nowiki>|</nowiki> [[{{{parent}}}/Walkthrough|Walkthrough]]|<nowiki>|</nowiki> [[{{{game|{{NAMESPACE}}:{{BASEPAGENAME}}}}}/Table of Contents|Table of Contents]] <nowiki>|</nowiki> [[{{{game|{{NAMESPACE}}:{{BASEPAGENAME}}}}}/Walkthrough|Walkthrough]]}}}} {{#if:{{{custom|}}}|<nowiki>|</nowiki> {{{custom}}} }}</p>
<p style="position: relative;" class="NavHead">{{#ifeq:{{FULLPAGENAME}}|{{{game|}}}|[[Image:000{{{num|0}}}.svg|This guide is at completion stage {{{num|0}}}]][[Category:Guides at completion stage {{{num|0}}}]]&nbsp;|[[Category:Sub-pages]]&nbsp;&nbsp;&nbsp;&nbsp;}}'''[[{{{game|{{NAMESPACE}}:{{BASEPAGENAME}}}}}]]''' {{#if:{{{onepage|}}}| |{{#if:{{{parent|}}}|<nowiki>|</nowiki> [[{{{parent}}}/Table of Contents|Table of Contents]] <nowiki>|</nowiki> [[{{{parent}}}/Walkthrough|Walkthrough]]|<nowiki>|</nowiki> [[{{{game|{{NAMESPACE}}:{{BASEPAGENAME}}}}}/Table of Contents|Table of Contents]] <nowiki>|</nowiki> [[{{{game|{{NAMESPACE}}:{{BASEPAGENAME}}}}}/Walkthrough|Walkthrough]]}}}} {{#if:{{{custom|}}}|<nowiki>|</nowiki> {{{custom}}} }}</p>
<div class="NavContent" style="display: none;">
<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>
<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>

Revision as of 23:02, 17 May 2007