Difference between revisions of "Template:RaceColor"

From QWiki
m
m (Added better names (red, green, blue, yellow, wo, white) than r,p,t,z,bye)
 
Line 1: Line 1:
 
<includeonly>{{#switch:{{lc:{{{1}}}}}
 
<includeonly>{{#switch:{{lc:{{{1}}}}}
 
   |z
 
   |z
 +
  |red
 
   |zerg = rgb(242,184,184)
 
   |zerg = rgb(242,184,184)
 
   |p
 
   |p
 +
  |green
 
   |protoss = rgb(184,242,184)
 
   |protoss = rgb(184,242,184)
 
   |t
 
   |t
 +
  |blue
 
   |terran = rgb(184,184,242)
 
   |terran = rgb(184,184,242)
 
   |r
 
   |r
 +
  |yellow
 
   |random = rgb(242,242,184)
 
   |random = rgb(242,242,184)
 +
  |wo
 
   |bye = rgb(221,221,221)
 
   |bye = rgb(221,221,221)
 
   |white = rgb(255,255,255)
 
   |white = rgb(255,255,255)
 
   |=
 
   |=
 
}}</includeonly><noinclude>{{Documentation}}</noinclude>
 
}}</includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 10:25, 4 March 2021

Documentation (view - edit)

This template gives the standard color of the race to use in tables brackets etc.

Usage

{{RaceColor|x}} where x is either of the following:

z p r t bye

Trivia

  • Race is inherited from Starcraft, where p, t, z, (r,) are short for the 3 races: protoss, terran, zerg (and random).

Adapted from Liquipedia