Template:Header: Difference between revisions

From PZwiki
m (minor)
(changes from User:Vibrance (with minor adjustments to border))
Line 3: Line 3:
{{Documentation}}
{{Documentation}}
[[Category:Templates]]
[[Category:Templates]]
</noinclude><includeonly><table class="tp-header" style="clear: both; border: 1px solid #000000; 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><includeonly>{| class="tp-header" cellspacing=0 cellpadding=0 style="width: 100%; background: #{{Infobox nc|{{#switch:{{{1|{{ROOTPAGENAME}}}}}|Community|PZwiki|Modding|The Indie Stone=Community|#default=default}}}};"
  <tr>
|- valign="center"
    <th style="width: 99px; padding: 6px; border-right: 1px solid #000000; color: #ffffff;">{{Translation|Navigation}}:</th>
! width=1px style="white-space: nowrap; padding: 0 10px; color: #ffffff;" | <!--placeholder icon-->[[File:Moodle Icon Windchill.png|26px|link=Category:Main{{#ifeq:{{Language code}}|true|{{Subpage}}|}}|Top category tree]] [[:Category:Main{{#ifeq:{{Language code}}|true|{{Subpage}}|}}|<span style="color: #{{Header/linkcolor|{{{1}}}}};">{{Translation|Navigation}}:</span>]]
    <th style="padding: 6px; font-weight: normal; color: #ffffff; min-width: 120px;"><!--
| style="padding: 0 10px; color: #ffffff;" |
 
<div style="float: left;">
      ## Main Index Category - check if current page = "Category:Main"##
{{#if:{{{1|}}}
      -->{{#ifeq:{{FULLROOTPAGENAME}}|Category:Main<!--
  | [[:Category:{{{1}}}{{#ifeq:{{Language code}}|true|{{Subpage}}|}}|<span style="color: #{{Header/linkcolor|{{{1}}}}};">{{Check title|{{{1}}}|Category|{{Subpage|slash=false}}|true={{{1}}}}}</span>]] >&nbsp;
        -->|'''{{Check title|{{FULLPAGENAME}}|true={{CATBASEPAGENAME}}}}'''<!--
}}{{#if:{{{2|}}}
 
  | [[:Category:{{{2}}}{{#ifeq:{{Language code}}|true|{{Subpage}}|}}|<span style="color: #{{Header/linkcolor|{{{1}}}}};">{{Check title|{{{2}}}|Category|{{Subpage|slash=false}}|true={{{2}}}}}</span>]] >&nbsp;
        ## Otherwise ##
}}{{#if:{{{3|}}}
        -->|{{Header/category|{{{1}}}|Main}}<!--
  | [[:Category:{{{3}}}{{#ifeq:{{Language code}}|true|{{Subpage}}|}}|<span style="color: #{{Header/linkcolor|{{{1}}}}};">{{Check title|{{{3}}}|Category|{{Subpage|slash=false}}|true={{{3}}}}}</span>]] >&nbsp;
        -->{{#if:{{{1|}}}|<span style="padding: 0px 9px;"><small>></small></span><!--
}}{{#if:{{{4|}}}
 
  | [[:Category:{{{4}}}{{#ifeq:{{Language code}}|true|{{Subpage}}|}}|<span style="color: #{{Header/linkcolor|{{{1}}}}};">{{Check title|{{{4}}}|Category|{{Subpage|slash=false}}|true={{{4}}}}}</span>]] >&nbsp;
        ## First Category ##
}}{{#if:{{{5|}}}
        -->{{Header/category|{{{1}}}|{{{1}}}}}}}<!--
  | [[:Category:{{{5}}}{{#ifeq:{{Language code}}|true|{{Subpage}}|}}|<span style="color: #{{Header/linkcolor|{{{1}}}}};">{{Check title|{{{5}}}|Category|{{Subpage|slash=false}}|true={{{5}}}}}</span>]] >&nbsp;
        -->{{#if:{{{2|}}}|<span style="padding: 0px 9px;"><small>></small></span><!--
}}{{#if:{{{6|}}}
 
  | [[:Category:{{{6}}}{{#ifeq:{{Language code}}|true|{{Subpage}}|}}|<span style="color: #{{Header/linkcolor|{{{1}}}}};">{{Check title|{{{6}}}|Category|{{Subpage|slash=false}}|true={{{6}}}}}</span>]] >&nbsp;
        ## Second Category ##
}}'''{{Check title|{{FULLPAGENAME}}|true={{CATBASEPAGENAME}}}}'''
        -->{{Header/category|{{{1}}}|{{{2}}}}}}}<!--
</div>
        -->{{#if:{{{3|}}}|<span style="padding: 0px 9px;"><small>></small></span><!--
<div style="white-space: nowrap; float: right;">
 
{{#if:{{{hidever|}}}
        ## Third Category ##
  || [[Version history{{#ifeq:{{Language code}}|true|{{#ifexist:Version history{{Subpage}}|{{Subpage}}|}}|}}|<span style="color: #{{Header/linkcolor|{{{1}}}}};">'''{{Translation|Page updated}}:'''</span>]] {{#if:{{{version|}}}
        -->{{Header/category|{{{1}}}|{{{3}}}}}}}<!--
    | [[:Category:{{{version}}}{{#ifeq:{{Language code}}|true|{{Subpage}}|}}|<span style="color: #{{Header/linkcolor|{{{1}}}}};">{{{version}}}{{#if:{{{incver|}}}|.{{{incver}}}}}</span>]]
        -->{{#if:{{{4|}}}|<span style="padding: 0px 9px;"><small>></small></span><!--
    | [[:Category:Unknown Version{{#ifeq:{{Language code}}|true|{{Subpage}}|}}|<span style="color: #{{Header/linkcolor|{{{1}}}}};">{{Check title|Unknown Version|Category|{{Subpage|slash=false|true={{Translate|Unknown Version}}}}}}</span>]]
 
   }}
        ## Fourth Category ##
}}
        -->{{Header/category|{{{1}}}|{{{4}}}}}}}<!--
</div>
        -->{{#if:{{{5|}}}|<span style="padding: 0px 9px;"><small>></small></span><!--
|}
 
{{#if:{{{hidebody|}}}
        ## Fifth Category ##
  | <!-- table end -->
        -->{{Header/category|{{{1}}}|{{{5}}}}}}}<!--
  | <div style="background: #{{#switch:{{{1|{{ROOTPAGENAME}}}}}|Community|PZwiki|Modding|The Indie Stone={{Infobox nc|Community|Body}}|#default={{Infobox nc|default|Body}}}}; border: 1px solid #000000; border-top: 0px; padding: 10px;">}}<!-- missing end tag
        -->{{#if:{{{6|}}}|<span style="padding: 0px 9px;"><small>></small></span><!--
</div>
 
-->{{#if:{{{hidecat|}}}|
        ## Sixth Category ##
   | {{#if:{{{hidever|}}}|
        -->{{Header/category|{{{1}}}|{{{6}}}}}}}<!--
    | [[Category:{{{version|Unknown Version}}}{{#ifeq:{{Language code}}|true|{{Subpage}}|}}]]
        --><span style="padding: 0px 9px;"><small>></small></span><!--
  }}{{#ifeq:{{FULLROOTPAGENAME}}|Category:Main
 
  | <!-- if current page equals `Category:Main(/xx)`, don't add category -->
        ## Page Name ##
  | [[Category:{{#if:{{{6|}}}|{{{6}}}
        -->'''{{Check title|{{FULLPAGENAME}}|true={{CATBASEPAGENAME}}}}'''<!--
    | {{#if:{{{5|}}}|{{{5}}}
    -->}}<!--
    | {{#if:{{{4|}}}|{{{4}}}
  --></th><!--
    | {{#if:{{{3|}}}|{{{3}}}
 
    | {{#if:{{{2|}}}|{{{2}}}
    ## Page Version ##
    | {{#if:{{{1|}}}|{{{1}}}
    --><th style="padding: 6px; text-align:right; color: #ffffff; font-weight: normal;"><!--
    | Main}} }} }} }} }} }}{{#ifeq:{{Language code}}|true|{{Subpage}}|}}]]
      --><span style="float: right; padding-right: 5px; color: #ffffff"><!--
   }}
        -->{{#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}}}}}<!--
          -->{{#if:{{{version|}}}|{{#if:{{{incver|}}}|.{{{incver|}}} }} }}<!--
        --></span>]]}}<!--
      --></span><!--
    --></th>
  </tr>
</table><!--
 
## 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 #000000; border-right: 1px solid #000000; border-bottom: 1px solid #000000; padding: 10px; min-width: 516px;">}}<!--
 
## Hide Category and Version ##
-->{{#if: {{{hidecat|}}}||
  {{#if: {{{hidever|}}}||[[Category:{{#if:{{{version|}}}|{{{version}}}{{#if:{{{incver|}}}|.{{{incver}}}}}|Unknown Version}}{{#ifeq:{{Language code|{{Subpage|slash=false}}}}|true|{{Subpage}}|}}]]}}<!--
 
  ## Categories ##
  -->{{#if:{{{6|}}}|[[Category:{{{6}}}{{Subpage}}]]
   |{{#if:{{{5|}}}|[[Category:{{{5}}}{{Subpage}}]]
  |{{#if:{{{4|}}}|[[Category:{{{4}}}{{Subpage}}]]
  |{{#if:{{{3|}}}|[[Category:{{{3}}}{{Subpage}}]]
   |{{#if:{{{2|}}}|[[Category:{{{2}}}{{Subpage}}]]
  |{{#if:{{{1|}}}|[[Category:{{{1}}}{{Subpage}}]]
   |[[Category:Main{{Subpage}}]]}} }} }} }} }} }}
}}<!--
}}<!--
--></includeonly>
--></includeonly>

Revision as of 06:14, 28 December 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)