Difference between revisions of "Template:RaceColor/doc"

From QWiki
m
m
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
This template gives the standard color of the race to use in tables brackets etc.
 
This template gives the standard color of the race to use in tables brackets etc.
 
===Usage===
 
===Usage===
<nowiki>{{RaceColor|x}}</nowiki> where x is the race name or initial letter. ie Zerg or t
+
<code><nowiki>{{RaceColor|x}}</nowiki></code> where x is either of the following:
 
 
===Example===
 
  
 
{|cellpadding="10"
 
{|cellpadding="10"
|style="background-color:{{RaceColor|z}};"|z
+
|style="background-color:{{RaceColor|z}};width:35px;text-align:center;padding:10px;"|z
|style="background-color:{{RaceColor|p}};"|p
+
|style="background-color:{{RaceColor|p}};width:35px;text-align:center;"|p
|style="background-color:{{RaceColor|r}};"|r
+
|style="background-color:{{RaceColor|r}};width:35px;text-align:center;"|r
|style="background-color:{{RaceColor|t}};"|t
+
|style="background-color:{{RaceColor|t}};width:35px;text-align:center;"|t
|style="background-color:{{RaceColor|bye}};"|bye
+
|style="background-color:{{RaceColor|bye}};width:35px;text-align:center;"|bye
  
 
|}
 
|}
  
===Variables===
+
===Trivia===
*'''Race''' p, r, t, z, protoss, random, terran, zerg and bye are possible.
+
*'''Race''' is inherited from Starcraft, where p, t, z, (r,) are short for the 3 races: protoss, terran, zerg (and random).
  
Adapted from [http://wiki.teamliquid.net/starcraft2/Template:4SEBracket Liquipedia]
+
Adapted from [http://wiki.teamliquid.net/starcraft2/Template:RaceColor Liquipedia]

Latest revision as of 06:27, 13 September 2017

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