Template:Craft Header: Difference between revisions

From HorizonXI Wiki
(Created page with "<onlyinclude><includeonly><div class="container {{{color-class|}}}" style="display: flex; justify-content: space-between; align-items: center;"> <div style="margin: 16px;">{{{icon|}}}</div> <span class="{{{text-color-class|}}}" style="font-size: x-large; font-weight: bold;">{{{name|}}}</span> <div style="margin: 16px;">{{{icon|}}}</div> </div></includeonly></onlyinclude> ==Usage== Headers for craft pages ===Examples=== <pre>{{Craft_Header | name = Alchemy | color-class...")
 
mNo edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<onlyinclude><includeonly><div class="container {{{color-class|}}}" style="display: flex; justify-content: space-between; align-items: center;">
<onlyinclude><includeonly>{{categorize|{{{1|}}}|[[Category:{{{name}}}]]}}<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; {{#if:{{{text-style|}}}|{{{text-style}}}|color: black;}}">{{{name}}}</span>|[[:Category:{{{name}}}|<span style="font-size: x-large; font-weight: bold; {{#if:{{{text-style|}}}|{{{text-style}}}|color: black;}}">{{{name}}}</span>]]}}<div style="margin: 16px;">[[File:{{{icon|}}}|link=:Category:{{{name}}}]]</div></div></includeonly></onlyinclude>
<div style="margin: 16px;">{{{icon|}}}</div>
<span class="{{{text-color-class|}}}" style="font-size: x-large; font-weight: bold;">{{{name|}}}</span>
<div style="margin: 16px;">{{{icon|}}}</div>
</div></includeonly></onlyinclude>
==Usage==
==Usage==
Headers for craft pages
Headers for craft pages


Line 12: Line 7:
| name = Alchemy
| name = Alchemy
| color-class = alchemy-header
| color-class = alchemy-header
| text-color-class = alchemy-text-header
| text-style = color: white;
| icon = [[File:AlchemyIcon.png]]
| icon = AlchemyIcon.png
}}</pre>
}}</pre>


{{Craft_Header
{{Craft_Header|nc
| name = Alchemy
| name = Alchemy
| color-class = alchemy-header
| color-class = alchemy-header
| text-color-class = alchemy-text-header
| text-style = color: white;
| icon = [[File:AlchemyIcon.png]]
| icon = AlchemyIcon.png
}}
}}


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


{{Craft_Header
{{Craft_Header|nc
| name = Goldsmithing
| name = Goldsmithing
| color-class = goldsmithing-header
| color-class = goldsmithing-header
| text-color-class =  
| text-style =  
| icon = [[File:GoldsmithingIcon.png]]
| icon = GoldsmithingIcon.png
}}
}}

Latest revision as of 21:13, 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
}}