Template:Header Nav: Difference between revisions

From StrategyWiki, the video game walkthrough and strategy guide wiki
always something wrong the first time :/ fixed
(adding parent link, i hope this works)
(always something wrong the first time :/ fixed)
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;" 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;" class="NavFrame">
<p style="position: relative;" class="NavHead">{{qif|test={{{num|}}}|then={{P|{{{num}}}}}[[Category:Games]]&nbsp;}}[[{{{game}}}|'''{{{game}}}''']] {{qif|test={{{onepage|}}}|then= |else={{qif|test={{parent|}}|then=<nowiki>|</nowiki> [[{{{parent}}}/Table of Contents|Table of Contents]] <nowiki>|</nowiki> [[{{{parent}}}/Walkthrough|Walkthrough]]|else=<nowiki>|</nowiki> [[{{{game}}}/Table of Contents|Table of Contents]] <nowiki>|</nowiki> [[{{{game}}}/Walkthrough|Walkthrough]]}}}} {{qif|test={{{custom|}}}|then=<nowiki>|</nowiki> {{{custom}}} }}</p>
<p style="position: relative;" class="NavHead">{{qif|test={{{num|}}}|then={{P|{{{num}}}}}[[Category:Games]]&nbsp;}}[[{{{game}}}|'''{{{game}}}''']] {{qif|test={{{onepage|}}}|then= |else={{qif|test={{{parent|}}}|then=<nowiki>|</nowiki> [[{{{parent}}}/Table of Contents|Table of Contents]] <nowiki>|</nowiki> [[{{{parent}}}/Walkthrough|Walkthrough]]|else=<nowiki>|</nowiki> [[{{{game}}}/Table of Contents|Table of Contents]] <nowiki>|</nowiki> [[{{{game}}}/Walkthrough|Walkthrough]]}}}} {{qif|test={{{custom|}}}|then=<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>
{{:{{qif|test={{{parent|}}}|then={{{parent}}}/Table of Contents}}|else={{{game}}}/Table of Contents}}}}{{-}}</div></div>{{qif|test={{{num|}}}|then=[[Category:Guides at completion stage {{{num}}}]]}}{{qif|test={{{tocpage|}}}|then=[[Category:Deprecated templates]]}}</includeonly><noinclude>This template is used '''at the top''' of (just about) every article to ease navigation around guides. Custom versions can be made, but deference should usually be given to this standard template.
{{:{{qif|test={{{parent|}}}|then={{{parent}}}|else={{{game}}}}}/Table of Contents}}{{-}}</div></div>{{qif|test={{{num|}}}|then=[[Category:Guides at completion stage {{{num}}}]]}}{{qif|test={{{tocpage|}}}|then=[[Category:Deprecated templates]]}}</includeonly><noinclude>
This template is used '''at the top''' of (just about) every article to ease navigation around guides. Custom versions can be made, but deference should usually be given to this standard template.


== Usage ==
== Usage ==