Template:Header: Difference between revisions

From PZwiki
(page is added to "Main" category, if category 1-6 aren't defined.)
m (source indent cleanup - no change to output)
Line 1: Line 1:
<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">
<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 - check if current page = "Category:Main"##
      ## Main Index Category - check if current page = "Category:Main"##
        -->{{#ifeq:{{FULLROOTPAGENAME}}|Category:Main<!--
      -->{{#ifeq:{{FULLROOTPAGENAME}}|Category:Main<!--
          -->|'''{{Check title|{{FULLPAGENAME}}|true={{CATBASEPAGENAME}}}}'''<!--
        -->|'''{{Check title|{{FULLPAGENAME}}|true={{CATBASEPAGENAME}}}}'''<!--


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


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


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


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


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


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


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


          ## Page Name ##
        ## Page Name ##
          -->'''{{Check title|{{FULLPAGENAME}}|true={{CATBASEPAGENAME}}}}'''<!--
        -->'''{{Check title|{{FULLPAGENAME}}|true={{CATBASEPAGENAME}}}}'''<!--
        -->}}</th><!--
    -->}}<!--
  --></th><!--


      ## Page Version ##
    ## Page Version ##
      --><th style="padding: 6px; text-align:right; color: #fff; font-weight: normal;"><!--
    --><th style="padding: 6px; text-align:right; color: #fff; font-weight: normal;"><!--
        --><span style="float:right; padding-right: 5px; color: #fff"><!--
      --><span style="float:right; padding-right: 5px; color: #fff"><!--
          -->{{#if: {{{hidever|}}}||'''{{Translation|Page updated}}:''' [[Version history|<span style="color:#{{#switch:{{{1|{{ROOTPAGENAME}}}}}|Community|PZwiki|Modding|The Indie Stone={{Infobox_nc|Community|Link}}}};"><!--
        -->{{#if: {{{hidever|}}}||'''{{Translation|Page updated}}:''' [[Version history|<span style="color:#{{#switch:{{{1|{{ROOTPAGENAME}}}}}|Community|PZwiki|Modding|The Indie Stone={{Infobox_nc|Community|Link}}}};"><!--
            -->{{{version|{{Translation|Unknown Version}}}}}<!--
          -->{{{version|{{Translation|Unknown Version}}}}}<!--
            -->{{#if:{{{version|}}}|{{#if:{{{incver|}}}|.{{{incver|}}} }} }}<!--
          -->{{#if:{{{version|}}}|{{#if:{{{incver|}}}|.{{{incver|}}} }} }}<!--
          -->{{Subpage}}</span>]]}}<!--
        -->{{Subpage}}</span>]]}}<!--
        --></span><!--
      --></span><!--
      --></th>
    --></th>
    </tr>
  </tr>
  </table><!--
</table><!--
    
    
  ## Body ##
## Body ##
  -->{{#if:{{{hidebody|}}}||<div style="background: #{{#switch:{{{1|{{ROOTPAGENAME}}}}}|Community|PZwiki|Modding|The Indie Stone={{Infobox_nc|Community|Body}}|#default={{Infobox_nc|default|Body}}}}; border-left: 1px solid #000; border-right: 1px solid #000; border-bottom: 1px solid #000; padding: 10px; min-width:516px;">}}<!--
-->{{#if:{{{hidebody|}}}||<div style="background: #{{#switch:{{{1|{{ROOTPAGENAME}}}}}|Community|PZwiki|Modding|The Indie Stone={{Infobox_nc|Community|Body}}|#default={{Infobox_nc|default|Body}}}}; border-left: 1px solid #000; border-right: 1px solid #000; border-bottom: 1px solid #000; padding: 10px; min-width:516px;">}}<!--


  ## Hide Category and Version ##
## Hide Category and Version ##
  -->{{#if: {{{hidecat|}}}||
-->{{#if: {{{hidecat|}}}||
    {{#if: {{{hidever|}}}||[[Category:{{{version|Unknown Version}}}{{Subpage}}]]}}<!--
  {{#if: {{{hidever|}}}||[[Category:{{{version|Unknown Version}}}{{Subpage}}]]}}<!--


    ## Categories ##
  ## Categories ##
    -->{{#if:{{{6|}}}|[[Category:{{{6}}}{{Subpage}}]]
  -->{{#if:{{{6|}}}|[[Category:{{{6}}}{{Subpage}}]]
    |{{#if:{{{5|}}}|[[Category:{{{5}}}{{Subpage}}]]
  |{{#if:{{{5|}}}|[[Category:{{{5}}}{{Subpage}}]]
    |{{#if:{{{4|}}}|[[Category:{{{4}}}{{Subpage}}]]
  |{{#if:{{{4|}}}|[[Category:{{{4}}}{{Subpage}}]]
    |{{#if:{{{3|}}}|[[Category:{{{3}}}{{Subpage}}]]
  |{{#if:{{{3|}}}|[[Category:{{{3}}}{{Subpage}}]]
    |{{#if:{{{2|}}}|[[Category:{{{2}}}{{Subpage}}]]
  |{{#if:{{{2|}}}|[[Category:{{{2}}}{{Subpage}}]]
    |{{#if:{{{1|}}}|[[Category:{{{1}}}{{Subpage}}]]
  |{{#if:{{{1|}}}|[[Category:{{{1}}}{{Subpage}}]]
    |[[Category:Main{{Subpage}}]]}} }} }} }} }} }}
  |[[Category:Main{{Subpage}}]]}} }} }} }} }} }}
  }}<!--
}}<!--
--></includeonly>
--></includeonly>

Revision as of 15:03, 5 August 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)