Template:Header: Difference between revisions
m (minor) |
(changes from User:Vibrance (with minor adjustments to border)) |
||
Line 3: | Line 3: | ||
{{Documentation}} | {{Documentation}} | ||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude><includeonly> | </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}}}};" | ||
|- valign="center" | |||
! 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>]] | |||
| style="padding: 0 10px; color: #ffffff;" | | |||
<div style="float: left;"> | |||
{{#if:{{{1|}}} | |||
| [[:Category:{{{1}}}{{#ifeq:{{Language code}}|true|{{Subpage}}|}}|<span style="color: #{{Header/linkcolor|{{{1}}}}};">{{Check title|{{{1}}}|Category|{{Subpage|slash=false}}|true={{{1}}}}}</span>]] > | |||
}}{{#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>]] > | |||
}}{{#if:{{{3|}}} | |||
| [[:Category:{{{3}}}{{#ifeq:{{Language code}}|true|{{Subpage}}|}}|<span style="color: #{{Header/linkcolor|{{{1}}}}};">{{Check title|{{{3}}}|Category|{{Subpage|slash=false}}|true={{{3}}}}}</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>]] > | |||
}}{{#if:{{{5|}}} | |||
| [[:Category:{{{5}}}{{#ifeq:{{Language code}}|true|{{Subpage}}|}}|<span style="color: #{{Header/linkcolor|{{{1}}}}};">{{Check title|{{{5}}}|Category|{{Subpage|slash=false}}|true={{{5}}}}}</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>]] > | |||
}}'''{{Check title|{{FULLPAGENAME}}|true={{CATBASEPAGENAME}}}}''' | |||
</div> | |||
<div style="white-space: nowrap; float: right;"> | |||
{{#if:{{{hidever|}}} | |||
|| [[Version history{{#ifeq:{{Language code}}|true|{{#ifexist:Version history{{Subpage}}|{{Subpage}}|}}|}}|<span style="color: #{{Header/linkcolor|{{{1}}}}};">'''{{Translation|Page updated}}:'''</span>]] {{#if:{{{version|}}} | |||
| [[:Category:{{{version}}}{{#ifeq:{{Language code}}|true|{{Subpage}}|}}|<span style="color: #{{Header/linkcolor|{{{1}}}}};">{{{version}}}{{#if:{{{incver|}}}|.{{{incver}}}}}</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>]] | |||
}} | |||
}} | |||
</div> | |||
|} | |||
{{#if:{{{hidebody|}}} | |||
| <!-- table end --> | |||
| <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 | |||
</div> | |||
-->{{#if:{{{hidecat|}}}| | |||
| {{#if:{{{hidever|}}}| | |||
| [[Category:{{{version|Unknown Version}}}{{#ifeq:{{Language code}}|true|{{Subpage}}|}}]] | |||
}}{{#ifeq:{{FULLROOTPAGENAME}}|Category:Main | |||
| <!-- if current page equals `Category:Main(/xx)`, don't add category --> | |||
| [[Category:{{#if:{{{6|}}}|{{{6}}} | |||
| {{#if:{{{5|}}}|{{{5}}} | |||
| {{#if:{{{4|}}}|{{{4}}} | |||
| {{#if:{{{3|}}}|{{{3}}} | |||
| {{#if:{{{2|}}}|{{{2}}} | |||
| {{#if:{{{1|}}}|{{{1}}} | |||
| Main}} }} }} }} }} }}{{#ifeq:{{Language code}}|true|{{Subpage}}|}}]] | |||
}} | |||
# | |||
|{{#if:{{{ | |||
|{{#if:{{{ | |||
}}<!-- | }}<!-- | ||
--></includeonly> | --></includeonly> |
Revision as of 06:14, 28 December 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)