Template:Header: Difference between revisions
(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> | |||
<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;"><!-- | |||
## Main Index Category - check if current page = "Category:Main"## | |||
-->{{#ifeq:{{FULLROOTPAGENAME}}|Category:Main<!-- | |||
-->|'''{{Check title|{{FULLPAGENAME}}|true={{CATBASEPAGENAME}}}}'''<!-- | |||
## Otherwise ## | |||
-->|{{Header/category|{{{1}}}|Main}}<!-- | |||
-->{{#if:{{{1|}}}|<span style="padding: 0px 9px"><small>></small></span><!-- | |||
## First Category ## | |||
-->{{Header/category|{{{1}}}|{{{1}}}}}}}<!-- | |||
-->{{#if:{{{2|}}}|<span style="padding: 0px 9px"><small>></small></span><!-- | |||
## Second Category ## | |||
-->{{Header/category|{{{1}}}|{{{2}}}}}}}<!-- | |||
-->{{#if:{{{3|}}}|<span style="padding: 0px 9px"><small>></small></span><!-- | |||
## Third Category ## | |||
-->{{Header/category|{{{1}}}|{{{3}}}}}}}<!-- | |||
-->{{#if:{{{4|}}}|<span style="padding: 0px 9px"><small>></small></span><!-- | |||
## Fourth Category ## | |||
-->{{Header/category|{{{1}}}|{{{4}}}}}}}<!-- | |||
-->{{#if:{{{5|}}}|<span style="padding: 0px 9px"><small>></small></span><!-- | |||
## Fifth Category ## | |||
-->{{Header/category|{{{1}}}|{{{5}}}}}}}<!-- | |||
-->{{#if:{{{6|}}}|<span style="padding: 0px 9px"><small>></small></span><!-- | |||
## Sixth Category ## | |||
-->{{Header/category|{{{1}}}|{{{6}}}}}}}<!-- | |||
--><span style="padding: 0px 9px"><small>></small></span><!-- | |||
## Page Name ## | |||
-->'''{{Check title|{{FULLPAGENAME}}|true={{CATBASEPAGENAME}}}}'''<!-- | |||
-->}}<!-- | |||
--></th><!-- | |||
## Page Version ## | |||
--><th style="padding: 6px; text-align:right; color: #fff; font-weight: normal;"><!-- | |||
--><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}}}};"><!-- | |||
-->{{{version|{{Translation|Unknown Version}}}}}<!-- | |||
-->{{#if:{{{version|}}}|{{#if:{{{incver|}}}|.{{{incver|}}} }} }}<!-- | |||
-->{{Subpage}}</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 #000; border-right: 1px solid #000; border-bottom: 1px solid #000; padding: 10px; min-width:516px;">}}<!-- | |||
## Hide Category and Version ## | |||
-->{{#if: {{{hidecat|}}}|| | |||
{{#if: {{{hidever|}}}||[[Category:{{{version|Unknown Version}}}{{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 15:03, 5 August 2023
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)
Editors can experiment in this template's sandbox (create)