Template:Header: Difference between revisions
(put colour picker inside switch, check for: Community, PZwiki, Modding, The Indie Stone, else use default. Swapped default to red: too many pages defaulting to blue that should be red.) |
(changed header div to table (for "Navigation" position on small displays), moved body to bottom, uses Template:Check title to translate categories, some terms now translatable, uses correct colour scheme on second-level categories, other cleanup and style adjustments.) |
||
Line 1: | Line 1: | ||
<noinclude>{{Languages}}{{Protection}}{{Documentation}}[[Category:Templates]]</noinclude><includeonly> | <noinclude>{{Languages}}{{Protection}}{{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 ## | ## Main Index Category ## | ||
--><span style="padding: 9px">[[:Category:Main|<span style=" | --><span style="padding-right: 9px;">[[:Category:Main|<span style="{{#switch:{{{1|{{ROOTPAGENAME}}}}}|Community|PZwiki|Modding|The Indie Stone=color:#{{Infobox_nc|Community|Link}};}}">{{Check title|Category:Main{{#ifeq:{{Language code|{{Subpage|slash=false}}}}|false|{{Subpage}}}}|true=Main index}}</span>]]</span>{{#if:{{{1|}}}|<small>></small><!-- | ||
## First Category ## | ## First Category ## | ||
--><span style="padding: 9px">[[:Category:{{{1}}}{{!}}<span style=" | --><span style="padding: 0px 9px;">[[:Category:{{{1}}}{{!}}<span style="{{#switch:{{{1|{{ROOTPAGENAME}}}}}|Community|PZwiki|Modding|The Indie Stone=color:#{{Infobox_nc|Community|Link}};}}">{{Check title|{{{1}}}|Category|true={{{1}}}}}</span>]]</span>|}}{{#if:{{{2|}}}|<small>></small><!-- | ||
## Second Category ## | ## Second Category ## | ||
--><span style="padding: 9px">[[:Category:{{{2}}}{{!}}<span style=" | --><span style="padding: 0px 9px;">[[:Category:{{{2}}}{{!}}<span style="{{#switch:{{{1|{{ROOTPAGENAME}}}}}|Community|PZwiki|Modding|The Indie Stone=color:#{{Infobox_nc|Community|Link}};}}">{{Check title|{{{2}}}|Category|true={{{2}}}}}</span>]]</span>|}}{{#if:{{{3|}}}|<small>></small><!-- | ||
## Third Category ## | ## Third Category ## | ||
--><span style="padding: 9px">[[:Category:{{{3}}}{{!}}<span style=" | --><span style="padding: 0px 9px;">[[:Category:{{{3}}}{{!}}<span style="{{#switch:{{{1|{{ROOTPAGENAME}}}}}|Community|PZwiki|Modding|The Indie Stone=color:#{{Infobox_nc|Community|Link}};}}">{{Check title|{{{3}}}|Category|true={{{3}}}}}</span>]]</span>|}}{{#if:{{{4|}}}|<small>></small><!-- | ||
## Fourth Category ## | ## Fourth Category ## | ||
--><span style="padding: 9px">[[:Category:{{{4}}}{{!}}<span style=" | --><span style="padding: 0px 9px;">[[:Category:{{{4}}}{{!}}<span style="{{#switch:{{{1|{{ROOTPAGENAME}}}}}|Community|PZwiki|Modding|The Indie Stone=color:#{{Infobox_nc|Community|Link}};}}">{{Check title|{{{4}}}|Category|true={{{4}}}}}</span>]]</span>|}}{{#if:{{{5|}}}|<small>></small><!-- | ||
## Fifth Category ## | ## Fifth Category ## | ||
--><span style="padding: 9px">[[:Category:{{{5}}}{{!}}<span style=" | --><span style="padding: 0px 9px;">[[:Category:{{{5}}}{{!}}<span style="{{#switch:{{{1|{{ROOTPAGENAME}}}}}|Community|PZwiki|Modding|The Indie Stone=color:#{{Infobox_nc|Community|Link}};}}">{{Check title|{{{5}}}|Category|true={{{5}}}}}</span>]]</span>|}}{{#if:{{{6|}}}|<small>></small><!-- | ||
## Sixth Category ## | ## Sixth Category ## | ||
--><span style="padding: 9px">[[:Category:{{{6}}}{{!}}<span style=" | --><span style="padding: 0px 9px;">[[:Category:{{{6}}}{{!}}<span style="{{#switch:{{{1|{{ROOTPAGENAME}}}}}|Community|PZwiki|Modding|The Indie Stone=color:#{{Infobox_nc|Community|Link}};}}">{{Check title|{{{6}}}|Category|true={{{6}}}}}</span>]]</span>|}}<small>></small><!-- | ||
## Page Name ## | ## Page Name ## | ||
--><span style="padding: 9px">'''{{ | --><span style="padding: 0px 9px;">'''{{Check title|true={{PAGENAME}}}}'''</span></th><!-- | ||
## Page Version ## | ## Page Version ## | ||
--><span style="float:right; padding-right: 5px; color: #fff">{{#if: {{{hidever|}}}||'''Page Updated:''' [[Version history|<span style="color: #{{#switch:{{{1|}}}|Community|PZwiki|Modding|The Indie Stone={{Infobox_nc|Community | --><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|Unknown Version}}}{{#if:{{{version|}}}|{{#if:{{{incver|}}}|.{{{incver|}}} }} }}</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}}}]]}}<!-- | |||
## Categories ## | ## Categories ## |
Revision as of 17:21, 27 July 2023
This page has been put into protection by a PZwiki administrator.
Only users in the sysop user group may edit this page.
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)