Template:Craft Header: Difference between revisions

From HorizonXI Wiki
m (making link conditional as it might cause layout issues when already on the page)
mNo edit summary
Line 1: Line 1:
<onlyinclude><includeonly><div class="container {{{color-class|}}}" style="display: flex; justify-content: space-between; align-items: center;">
<onlyinclude><includeonly><div class="container {{{color-class|}}}" style="display: flex; justify-content: space-between; align-items: center;">
<div style="margin: 16px;">[[File:{{{icon|}}}|link=:Category:{{{name}}}]]</div>{{#ifeq:{{NAMESPACE}}:{{PAGENAME}}|Category:{{{name}}}|<span style="font-size: x-large; font-weight: bold; {{{text-style|}}}">{{{name}}}</span>|[[:Category:{{{name}}}|
<div style="margin: 16px;">[[File:{{{icon|}}}|link=:Category:{{{name}}}]]</div>{{#ifeq:{{NAMESPACE}}:{{PAGENAME}}|Category:{{{name}}}|<span style="font-size: x-large; font-weight: bold; {{{text-style|color: black}}}">{{{name}}}</span>|[[:Category:{{{name}}}|
<span style="font-size: x-large; font-weight: bold; {{{text-style|}}}">{{{name}}}</span>]]}}
<span style="font-size: x-large; font-weight: bold; {{{text-style|}}}">{{{name}}}</span>]]}}
<div style="margin: 16px;">[[File:{{{icon|}}}|link=:Category:{{{name}}}]]</div>
<div style="margin: 16px;">[[File:{{{icon|}}}|link=:Category:{{{name}}}]]</div>

Revision as of 19:11, 21 December 2023

Usage

Headers for craft pages

Examples

{{Craft_Header
| name = Alchemy
| color-class = alchemy-header
| text-style = color: white;
| icon = AlchemyIcon.png
}}
{{Craft_Header
| name = Goldsmithing
| color-class = goldsmithing-header
| text-style = 
| icon = GoldsmithingIcon.png
}}