Difference between revisions of "Template:RaceIcon"

(Created page with "{{#ifeq:{{{1}}}|T|Image:Ticon.png}}{{#ifeq:{{{1}}}|Z|Image:Zicon.png}}{{#ifeq:{{{1}}}|P|Image:Picon.png}}{{#ifeq:{{{1}}}|R|Image:RaceIcon_Random.png}}{{#ifeq:{...")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{#ifeq:{{{1}}}|T|[[Image:Ticon.png]]}}{{#ifeq:{{{1}}}|Z|[[Image:Zicon.png]]}}{{#ifeq:{{{1}}}|P|[[Image:Picon.png]]}}{{#ifeq:{{{1}}}|R|[[Image:RaceIcon_Random.png]]}}{{#ifeq:{{{1}}}|A|[[Image:RaceIcon_All.png]]}}{{#ifeq:{{{1}}}|Terran|[[Image:Ticon.png]]}}{{#ifeq:{{{1}}}|Zerg|[[Image:Zicon.png]]}}{{#ifeq:{{{1}}}|Protoss|[[Image:Picon.png]]}}{{#ifeq:{{{1}}}|Random|[[Image:RaceIcon_Random.png]]}}{{#ifeq:{{{1}}}|All|[[Image:RaceIcon_All.png]]}}{{#ifeq:{{{1}}}|TZ|[[Image:Ticon.png]][[Image:Zicon.png]]}}{{#ifeq:{{{1}}}|ZT|[[Image:Zicon.png]][[Image:Ticon.png]]}}{{#ifeq:{{{1}}}|PT|[[Image:Picon.png]][[Image:TerranIcon.png]]}}{{#ifeq:{{{1}}}|TP|[[Image:Ticon.png]][[Image:Picon.png]]}}{{#ifeq:{{{1}}}|ZP|[[Image:Zicon.png]][[Image:Picon.png]]}}{{#ifeq:{{{1}}}|PZ|[[Image:Picon.png]][[Image:Zicon.png]]}}{{#ifeq:{{{1}}}|t|[[Image:Ticon.png]]}}{{#ifeq:{{{1}}}|z|[[Image:Zicon.png]]}}{{#ifeq:{{{1}}}|p|[[Image:Picon.png]]}}{{#ifeq:{{{1}}}|r|[[Image:RaceIcon_Random.png]]}}{{#ifeq:{{{1}}}|a|[[Image:RaceIcon_All.png]]}}{{#ifeq:{{{1}}}|terran|[[Image:Ticon.png]]}}{{#ifeq:{{{1}}}|zerg|[[Image:Zicon.png]]}}{{#ifeq:{{{1}}}|protoss|[[Image:Picon.png]]}}{{#ifeq:{{{1}}}|random|[[Image:RaceIcon_Random.png]]}}{{#ifeq:{{{1}}}|All|[[Image:RaceIcon_All.png]]}}
+
{{#switch:{{lc:{{{1}}}}}
 +
|terran
 +
|t = [[Image:Ticon.png|link=Terran]]
 +
|zerg
 +
|z = [[Image:Zicon.png|link=Zerg]]
 +
|protoss
 +
|p = [[Image:Picon.png|link=Protoss]]
 +
|pp = [[Image:Picon.png|link=Protoss]][[Image:Picon.png|link=Protoss]]
 +
|pt = [[Image:Picon.png|link=Protoss]][[Image:Ticon.png|link=Terran]]
 +
|pz = [[Image:Picon.png|link=Protoss]][[Image:Zicon.png|link=Zerg]]
 +
|tp = [[Image:Ticon.png|link=Terran]][[Image:Picon.png|link=Protoss]]
 +
|tt = [[Image:Ticon.png|link=Terran]][[Image:Ticon.png|link=Terran]]
 +
|tz = [[Image:Ticon.png|link=Terran]][[Image:Zicon.png|link=Zerg]]
 +
|zp = [[Image:Zicon.png|link=Zerg]][[Image:Picon.png|link=Protoss]]
 +
|zt = [[Image:Zicon.png|link=Zerg]][[Image:Ticon.png|link=Terran]]
 +
|zz = [[Image:Zicon.png|link=Zerg]][[Image:Zicon.png|link=Zerg]]
 +
|ptz = [[Image:Picon.png|link=Protoss]][[Image:Ticon.png|link=Terran]][[Image:Zicon.png|link=Zerg]]
 +
|pzt = [[Image:Picon.png|link=Protoss]][[Image:Zicon.png|link=Zerg]][[Image:Ticon.png|link=Terran]]
 +
|tpz = [[Image:Ticon.png|link=Terran]][[Image:Picon.png|link=Protoss]][[Image:Zicon.png|link=Zerg]]
 +
|tzp = [[Image:Ticon.png|link=Terran]][[Image:Zicon.png|link=Zerg]][[Image:Picon.png|link=Protoss]]
 +
|ztp = [[Image:Zicon.png|link=Zerg]][[Image:Ticon.png|link=Terran]][[Image:Picon.png|link=Protoss]]
 +
|zpt = [[Image:Zicon.png|link=Zerg]][[Image:Picon.png|link=Protoss]][[Image:Ticon.png|link=Terran]]
 +
}}<noinclude>{{documentation}}[[Category:Templates]]</noinclude>

Latest revision as of 21:44, 16 July 2015

(view - edit) Documentation

Display the race icon or icons.

Template Inputs

For single races

Picon.png Protoss
  • p
  • protoss
Ticon.png Terran
  • t
  • terran
Zicon.png Zerg
  • z
  • zerg

For pairs of two races

Picon.pngProtoss
  • pp Picon.pngPicon.png
  • pt Picon.pngTicon.png
  • pz Picon.pngZicon.png
Ticon.pngTerran
  • tp Ticon.pngPicon.png
  • tt Ticon.pngTicon.png
  • tz Ticon.pngZicon.png
Zicon.pngZerg
  • zp Zicon.pngPicon.png
  • zt Zicon.pngTicon.png
  • zz Zicon.pngZicon.png

Example

{{RaceIcon|tz}}

Ticon.pngZicon.png