Template:Header Nav: Difference between revisions

Template page
w:c:strategywiki>Garrett
(reverting; ParserFunctions cannot be nested, so this tweak broke my Special:Uncategorizedpages fix which has more far-reaching value)
w:c:strategywiki>Garrett
(implementing Ryan Schmidt's simplifications and fail-safe defaults)
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">{{#if:{{{num|}}}|[[Image:000{{{num}}}.svg|This guide is at completion stage {{{num}}}]][[Category:Guides at completion stage {{{num}}}]]&nbsp;|[[Category:Subpages]]&nbsp;&nbsp;&nbsp;&nbsp;}}'''[[{{{game}}}]]''' {{#if:{{{onepage|}}}| |{{#if:{{{parent|}}}|<nowiki>|</nowiki> [[{{{parent}}}/Table of Contents|Table of Contents]] <nowiki>|</nowiki> [[{{{parent}}}/Walkthrough|Walkthrough]]|<nowiki>|</nowiki> [[{{{game}}}/Table of Contents|Table of Contents]] <nowiki>|</nowiki> [[{{{game}}}/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: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>
<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 02:26, 10 May 2007