Difference between revisions of "Template:ArchIcon"
(adding alt text (for screen readers), caption text (hover-over text)) |
(enishi matsuri colors) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | <includeonly> | + | <includeonly>{{#switch:{{{arch}}} |
| − | {{# | + | |RedEM=[[File:ArchRedEM.png|{{{size|20px}}}|link=|alt=Red|Red]] {{#if:{{{name|}}}|Red}} |
| − | {{# | + | |YellowEM=[[File:ArchYellowEM.png|{{{size|20px}}}|link=|alt=Yellow|Yellow]] {{#if:{{{name|}}}|Yellow}} |
| − | {{# | + | |PurpleEM=[[File:ArchPurpleEM.png|{{{size|20px}}}|link=|alt=Purple|Purple]] {{#if:{{{name|}}}|Purple}} |
| − | {{# | + | |TealEM=[[File:ArchTealEM.png|{{{size|20px}}}|link=|alt=Teal|Teal]] {{#if:{{{name|}}}|Teal}} |
| − | + | |[[File:Arch{{{arch}}}.png|{{{size|20px}}}|link=|alt={{{arch}}}|{{{arch}}}]] {{#if:{{{name|}}}|{{{arch}}}}}}} <!-- | |
| + | |||
| + | |Red=[[File:ArchRed.png|20px]]| | ||
| + | |Yellow=[[File:ArchYellow.png|20px]]| | ||
| + | |Purple=[[File:ArchPurple.png|20px]]| | ||
| + | |Teal=[[File:ArchTeal.png|20px]]| | ||
| + | |Clear=[[File:ArchClear.png|20px]]}} | ||
| + | |||
| + | --><!-- | ||
{{#if:{{{arch|}}}|[[File: Arch{{{arch}}}.png|20px]]}}--></includeonly><noinclude> | {{#if:{{{arch|}}}|[[File: Arch{{{arch}}}.png|20px]]}}--></includeonly><noinclude> | ||
| − | === | + | Displays an archetype icon, given its color name. |
| + | * Optionally, can also display the color name. | ||
| + | |||
| + | == Usage Examples == | ||
| + | |||
| + | ===Standard use=== | ||
<pre> | <pre> | ||
{{ArchIcon|arch=Red}}{{ArchIcon|arch=Clear}}{{ArchIcon|arch=Teal}}{{ArchIcon|arch=Yellow}}{{ArchIcon|arch=Purple}} | {{ArchIcon|arch=Red}}{{ArchIcon|arch=Clear}}{{ArchIcon|arch=Teal}}{{ArchIcon|arch=Yellow}}{{ArchIcon|arch=Purple}} | ||
</pre> | </pre> | ||
{{ArchIcon|arch=Red}}{{ArchIcon|arch=Clear}}{{ArchIcon|arch=Teal}}{{ArchIcon|arch=Yellow}}{{ArchIcon|arch=Purple}} | {{ArchIcon|arch=Red}}{{ArchIcon|arch=Clear}}{{ArchIcon|arch=Teal}}{{ArchIcon|arch=Yellow}}{{ArchIcon|arch=Purple}} | ||
| + | |||
| + | ===Custom size=== | ||
<pre> | <pre> | ||
{{ArchIcon|arch=Red|size=15px}}{{ArchIcon|arch=Clear|size=15px}}{{ArchIcon|arch=Teal|size=15px}}{{ArchIcon|arch=Yellow|size=15px}}{{ArchIcon|arch=Purple|size=15px}} | {{ArchIcon|arch=Red|size=15px}}{{ArchIcon|arch=Clear|size=15px}}{{ArchIcon|arch=Teal|size=15px}}{{ArchIcon|arch=Yellow|size=15px}}{{ArchIcon|arch=Purple|size=15px}} | ||
</pre> | </pre> | ||
{{ArchIcon|arch=Red|size=15px}}{{ArchIcon|arch=Clear|size=15px}}{{ArchIcon|arch=Teal|size=15px}}{{ArchIcon|arch=Yellow|size=15px}}{{ArchIcon|arch=Purple|size=15px}} | {{ArchIcon|arch=Red|size=15px}}{{ArchIcon|arch=Clear|size=15px}}{{ArchIcon|arch=Teal|size=15px}}{{ArchIcon|arch=Yellow|size=15px}}{{ArchIcon|arch=Purple|size=15px}} | ||
| + | |||
| + | ===With name=== | ||
| + | <pre>{{ArchIcon|arch=Red|size=15px|name=1}} | ||
| + | </pre> | ||
| + | {{ArchIcon|arch=Red|size=15px|name=1}} | ||
| + | |||
| + | ===Enishi Matsuri colors=== | ||
| + | <pre> | ||
| + | {{ArchIcon|arch=RedEM}}{{ArchIcon|arch=TealEM}}{{ArchIcon|arch=YellowEM}}{{ArchIcon|arch=PurpleEM}} | ||
| + | </pre> | ||
| + | {{ArchIcon|arch=RedEM}}{{ArchIcon|arch=TealEM}}{{ArchIcon|arch=YellowEM}}{{ArchIcon|arch=PurpleEM}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 18:59, 1 July 2025
Displays an archetype icon, given its color name.
- Optionally, can also display the color name.
Usage Examples
Standard use
{{ArchIcon|arch=Red}}{{ArchIcon|arch=Clear}}{{ArchIcon|arch=Teal}}{{ArchIcon|arch=Yellow}}{{ArchIcon|arch=Purple}}
Custom size
{{ArchIcon|arch=Red|size=15px}}{{ArchIcon|arch=Clear|size=15px}}{{ArchIcon|arch=Teal|size=15px}}{{ArchIcon|arch=Yellow|size=15px}}{{ArchIcon|arch=Purple|size=15px}}
With name
{{ArchIcon|arch=Red|size=15px|name=1}}
Red
Enishi Matsuri colors
{{ArchIcon|arch=RedEM}}{{ArchIcon|arch=TealEM}}{{ArchIcon|arch=YellowEM}}{{ArchIcon|arch=PurpleEM}}