Difference between revisions of "Template:ArchIcon"

From SMT: Dx2 Wiki
Jump to: navigation, search
(I don't think we need all these if clauses. The template works fine by just taking arch directly.)
Line 1: Line 1:
<includeonly>{{#ifeq:{{{arch}}}|Red| [[File:ArchRed.png|20px]]|{{#ifeq:{{{arch}}}|Yellow| [[File:ArchYellow.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>
+
<includeonly>[[File:Arch{{{arch}}}.png|20px|link=]]<!--
 +
{{#ifeq:{{{arch}}}|Red| [[File:ArchRed.png|20px]]|
 +
{{#ifeq:{{{arch}}}|Yellow| [[File:ArchYellow.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>
 
<noinclude>
 
=== Usage Example ===
 
=== Usage Example ===

Revision as of 22:06, 31 May 2022


Usage Example

{{ArchIcon|arch=Red}}{{ArchIcon|arch=Clear}}{{ArchIcon|arch=Teal}}{{ArchIcon|arch=Yellow}}{{ArchIcon|arch=Purple}}

Red Clear Teal Yellow Purple