Difference between revisions of "Template:MedalColor"

From QWiki
m
m
Line 2: Line 2:
 
|1
 
|1
 
|1st
 
|1st
|first = rgb(255,215,57)
+
|first = #caffca
 
|2
 
|2
 
|2nd
 
|2nd
|second = rgb(190,190,190)
+
|second = #e3ffdd
 
|3
 
|3
 
|3rd
 
|3rd
|third = rgb(208,164,90)
+
|third = f4ffef
 
|4
 
|4
 
|4th
 
|4th
|fourth = rgb(248,177,146)
+
|fourth = #fafff8
 
|=
 
|=
 
}}</includeonly><noinclude>{{Documentation}}</noinclude>
 
}}</includeonly><noinclude>{{Documentation}}</noinclude>

Revision as of 07:34, 9 May 2017

Documentation (view - edit)

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

Usage

{{MedalColor|x}} where x is the medal name or number. ie First, 2nd or 3

Example

style="border:1px solid #dddddd;text-align:center;height:40px;width:40px;background-color:
  1. caffca;"|1st
style="border:1px solid #dddddd;text-align:center;height:40px;width:40px;background-color:
  1. e3ffdd;"|2nd
3rd style="border:1px solid #dddddd;text-align:center;height:40px;width:40px;background-color:
  1. fafff8;"|4th

Variables

  • Medal 1, 2, 3, 4, 1st, 2nd, 3rd, 4th, First, Second, Third or Fourth are possible.


Adapted from Liquipedia under CC-BY-SA license.