Template:Header: Difference between revisions

From PZwiki
(removed protection notice)
(Added check for current page is "Category:Main")
Line 1: Line 1:
<noinclude>{{Languages}}{{Documentation}}[[Category:Templates]]</noinclude><includeonly><includeonly><table class="tp-header" style="clear: both; border: 1px solid #000; background: #{{#switch:{{{1|{{ROOTPAGENAME}}}}}|Community|PZwiki|Modding|The Indie Stone={{Infobox_nc|Community}}|#default={{Infobox_nc|default}}}}; text-align: left; width: 100%;" cellspacing="0">
<noinclude>{{Languages}}{{Documentation}}[[Category:Templates]]</noinclude><includeonly><table class="tp-header" style="clear: both; border: 1px solid #000; background: #{{#switch:{{{1|{{ROOTPAGENAME}}}}}|Community|PZwiki|Modding|The Indie Stone={{Infobox_nc|Community}}|#default={{Infobox_nc|default}}}}; text-align: left; width: 100%;" cellspacing="0">
     <tr>
     <tr>
       <th style="width: 99px; padding: 6px; border-right: 1px solid #000; color: #fff;">{{Translation|Navigation}}:</th>
       <th style="width: 99px; padding: 6px; border-right: 1px solid #000; color: #fff;">{{Translation|Navigation}}:</th>
       <th style="padding: 6px; font-weight: normal; color: #fff; min-width: 120px;"><!--
       <th style="padding: 6px; font-weight: normal; color: #fff; min-width: 120px;"><!--


         ## Main Index Category ##
         ## Main Index Category - check if current page = "Category:Main"##
         -->{{Header/category|{{{1}}}|Main}}<!--
         -->{{#ifeq:{{FULLROOTPAGENAME}}|Category:Main<!--
        -->{{#if:{{{1|}}}|<span style="padding: 0px 9px"><small>></small></span><!--
          -->|'''{{Check title|{{FULLPAGENAME}}|true={{CATBASEPAGENAME}}}}'''<!--


        ## First Category ##
          ## Otherwise ##
        -->{{Header/category|{{{1}}}|{{{1}}}}}}}<!--
          -->|{{Header/category|{{{1}}}|Main}}<!--
        -->{{#if:{{{2|}}}|<span style="padding: 0px 9px"><small>></small></span><!--
          -->{{#if:{{{1|}}}|<span style="padding: 0px 9px"><small>></small></span><!--


        ## Second Category ##
          ## First Category ##
        -->{{Header/category|{{{1}}}|{{{2}}}}}}}<!--
          -->{{Header/category|{{{1}}}|{{{1}}}}}}}<!--
        -->{{#if:{{{3|}}}|<span style="padding: 0px 9px"><small>></small></span><!--
          -->{{#if:{{{2|}}}|<span style="padding: 0px 9px"><small>></small></span><!--


        ## Third Category ##
          ## Second Category ##
        -->{{Header/category|{{{1}}}|{{{3}}}}}}}<!--
          -->{{Header/category|{{{1}}}|{{{2}}}}}}}<!--
        -->{{#if:{{{4|}}}|<span style="padding: 0px 9px"><small>></small></span><!--
          -->{{#if:{{{3|}}}|<span style="padding: 0px 9px"><small>></small></span><!--


        ## Fourth Category ##
          ## Third Category ##
        -->{{Header/category|{{{1}}}|{{{4}}}}}}}<!--
          -->{{Header/category|{{{1}}}|{{{3}}}}}}}<!--
        -->{{#if:{{{5|}}}|<span style="padding: 0px 9px"><small>></small></span><!--
          -->{{#if:{{{4|}}}|<span style="padding: 0px 9px"><small>></small></span><!--


        ## Fifth Category ##
          ## Fourth Category ##
        -->{{Header/category|{{{1}}}|{{{5}}}}}}}<!--
          -->{{Header/category|{{{1}}}|{{{4}}}}}}}<!--
        -->{{#if:{{{6|}}}|<span style="padding: 0px 9px"><small>></small></span><!--
          -->{{#if:{{{5|}}}|<span style="padding: 0px 9px"><small>></small></span><!--


        ## Sixth Category ##
          ## Fifth Category ##
        -->{{Header/category|{{{1}}}|{{{6}}}}}}}<!--
          -->{{Header/category|{{{1}}}|{{{5}}}}}}}<!--
        --><span style="padding: 0px 9px"><small>></small></span><!--
          -->{{#if:{{{6|}}}|<span style="padding: 0px 9px"><small>></small></span><!--


        ## Page Name ##
          ## Sixth Category ##
        -->'''{{Check title|{{FULLPAGENAME}}|true={{CATBASEPAGENAME}}}}'''<!--
          -->{{Header/category|{{{1}}}|{{{6}}}}}}}<!--
      --></th><!--
          --><span style="padding: 0px 9px"><small>></small></span><!--
 
          ## Page Name ##
          -->'''{{Check title|{{FULLPAGENAME}}|true={{CATBASEPAGENAME}}}}'''<!--
        -->}}</th><!--


       ## Page Version ##
       ## Page Version ##

Revision as of 11:58, 31 July 2023

[view] [edit] [history] [purge] Template documentation
This template doesn't have any documentation yet! Help out by writing some.
Documentation transcluded from Template:Header/doc.
Editors can experiment in this template's sandbox (create)