Template:Craft Header: Difference between revisions

From HorizonXI Wiki
(changed text color class to text style since color class can already be applied via the container)
(added link to text and images; requires images now to be only filename without namespace and brackets)
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;">{{{icon|}}}</div>
<div style="margin: 16px;">[[File:{{{icon|}}}|link=:Category:{{{name}}}]]</div>[[: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;">{{{icon|}}}</div>
<div style="margin: 16px;">[[File:{{{icon|}}}|link=:Category:{{{name}}}]]</div>
</div></includeonly></onlyinclude>
</div></includeonly></onlyinclude>
==Usage==
==Usage==
Line 13: Line 13:
| color-class = alchemy-header
| color-class = alchemy-header
| text-style = color: white;
| text-style = color: white;
| icon = [[File:AlchemyIcon.png]]
| icon = AlchemyIcon.png
}}</pre>
}}</pre>


Line 20: Line 20:
| color-class = alchemy-header
| color-class = alchemy-header
| text-style = color: white;
| text-style = color: white;
| icon = [[File:AlchemyIcon.png]]
| icon = AlchemyIcon.png
}}
}}


Line 27: Line 27:
| color-class = goldsmithing-header
| color-class = goldsmithing-header
| text-style =  
| text-style =  
| icon = [[File:GoldsmithingIcon.png]]
| icon = GoldsmithingIcon.png
}}</pre>
}}</pre>


Line 34: Line 34:
| color-class = goldsmithing-header
| color-class = goldsmithing-header
| text-style =  
| text-style =  
| icon = [[File:GoldsmithingIcon.png]]
| icon = GoldsmithingIcon.png
}}
}}

Revision as of 18:31, 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
}}