Template:NCmaterial: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
adding "main" override option
(subpage ID override test)
(adding "main" override option)
Line 3: Line 3:
<p style="margin-top:5px;font-size:100%;line-height:110%">{{#if: {{{sub|}}}
<p style="margin-top:5px;font-size:100%;line-height:110%">{{#if: {{{sub|}}}
   |<!--if sub=1-->This subpage includes information about '''[[{{{link|{{ROOTPAGENAME}}}}}|{{{display|{{dau|{{{link|{{ROOTPAGENAME}}}}}}}}}}]]'''
   |<!--if sub=1-->This subpage includes information about '''[[{{{link|{{ROOTPAGENAME}}}}}|{{{display|{{dau|{{{link|{{ROOTPAGENAME}}}}}}}}}}]]'''
   |<!--if sub is unspecified-->{{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}
   |<!--if sub is unspecified-->{{#if: {{{main|}}}
      |<!--if name of subpage = full name of page-->This page includes information about '''{{{display|{{dau|{{{link|{{ROOTPAGENAME}}}}}}}}}}'''
      |<!--if main=1-->This page includes information about '''{{{display|{{dau|{{{link|{{ROOTPAGENAME}}}}}}}}}}'''
      |<!--otherwise, we are on a subpage so do this:-->This subpage includes information about '''[[{{{link|{{ROOTPAGENAME}}}}}|{{{display|{{dau|{{{link|{{ROOTPAGENAME}}}}}}}}}}]]'''}}
      |<!--if main is unspecified-->{{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}
        |<!--if name of subpage = full name of page-->This page includes information about '''{{{display|{{dau|{{{link|{{ROOTPAGENAME}}}}}}}}}}'''
        |<!--otherwise, we are on a subpage so do this:-->This subpage includes information about '''[[{{{link|{{ROOTPAGENAME}}}}}|{{{display|{{dau|{{{link|{{ROOTPAGENAME}}}}}}}}}}]]'''}}
}} from sources that are [[Tardis:Valid sources|invalid]] or otherwise not covered on this wiki{{#if:{{{1|}}}|<nowiki />: {{{1|}}}}}.</p>
}} from sources that are [[Tardis:Valid sources|invalid]] or otherwise not covered on this wiki{{#if:{{{1|}}}|<nowiki />: {{{1|}}}}}.</p>
</div><noinclude>{{documentation}}[[Category:Maintenance templates]]</noinclude>
</div><noinclude>{{documentation}}[[Category:Maintenance templates]]</noinclude>
emailconfirmed, Administrators
15,041

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.