Template:Header Nav: Difference between revisions

Template page
w:c:strategywiki>Garrett
(adding Category:Subpages to make Special:Uncategorizedpages functional, see http://en.wikisource.org/wiki/Wikisource:Scriptorium/Archives/2007/04#Categorize_subpages for more info)
w:c:strategywiki>Skizzerz
m (restricting usage of num to a basepage (where BASEPAGENAME = PAGENAME))
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:{{BASEPAGENAME}}|{{PAGENAME}}|{{#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>
<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 22:49, 9 May 2007