Difference between revisions of "Template:ArchIcon"
(Created page with "{{ #ifeq: {{{arch}}} | Red | 20px | }} {{ #ifeq: {{{arch}}} | Yellow | 20px | }} {{ #ifeq: {{{arch}}} | Purple | File:ArchP...") |
|||
(15 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | {{ | + | <includeonly>[[File:Arch{{{arch}}}.png|{{{size|20px}}}|link=|alt={{{arch}}}|{{{arch}}}]] {{#if:{{{name|}}}|{{{arch}}}|}}<!-- |
− | #ifeq: {{{arch}}} | + | {{#ifeq:{{{arch}}}|Red| [[File:ArchRed.png|20px]]| |
− | | Red | + | {{#ifeq:{{{arch}}}|Yellow| [[File:ArchYellow.png|20px]]| |
− | | [[File:ArchRed.png|20px]] | + | {{#ifeq:{{{arch}}}|Purple| [[File:ArchPurple.png|20px]]| |
− | | | + | {{#ifeq:{{{arch}}}|Teal| [[File:ArchTeal.png|20px]]| |
− | + | {{#ifeq:{{{arch}}}|Clear| [[File:ArchClear.png|20px]]|}}}}}}}}}}--><!-- | |
− | {{ | + | {{#if:{{{arch|}}}|[[File: Arch{{{arch}}}.png|20px]]}}--></includeonly><noinclude> |
− | #ifeq: {{{arch}}} | + | Displays an archetype icon, given its color name. |
− | | Yellow | + | * Optionally, can also display the color name. |
− | | [[File:ArchYellow.png|20px]] | + | |
− | | | + | === Usage Example === |
− | + | <pre> | |
− | {{ | + | {{ArchIcon|arch=Red}}{{ArchIcon|arch=Clear}}{{ArchIcon|arch=Teal}}{{ArchIcon|arch=Yellow}}{{ArchIcon|arch=Purple}} |
− | #ifeq: {{{arch}}} | + | </pre> |
− | | Purple | + | {{ArchIcon|arch=Red}}{{ArchIcon|arch=Clear}}{{ArchIcon|arch=Teal}}{{ArchIcon|arch=Yellow}}{{ArchIcon|arch=Purple}} |
− | | [[File:ArchPurple.png|20px]] | + | |
− | | | + | <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}} | |
− | {{ | + | </pre> |
− | #ifeq: {{{arch}}} | + | {{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}} |
− | | Teal | + | |
− | | [[File:ArchTeal.png|20px]] | + | <pre>{{ArchIcon|arch=Red|size=15px|name=1}} |
− | | | + | </pre> |
− | + | {{ArchIcon|arch=Red|size=15px|name=1}} | |
− | {{ | + | </noinclude> |
− | #ifeq: {{{arch}}} | ||
− | | Clear | ||
− | | [[File: | ||
− | | | ||
− | }} |
Latest revision as of 23:06, 17 December 2022
Displays an archetype icon, given its color name.
- Optionally, can also display the color name.
Usage Example
{{ArchIcon|arch=Red}}{{ArchIcon|arch=Clear}}{{ArchIcon|arch=Teal}}{{ArchIcon|arch=Yellow}}{{ArchIcon|arch=Purple}}
{{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|name=1}}
Red