Template:YearColor
From HEROsector01
Jump to navigationJump to search
Documentation
This template takes in a single parameter representing a year and outputs a corresponding color. It is used to color templates such as Template:Set.
The colors are as follows:
Input | Color |
---|---|
2010 | ■ #1e5aa8 |
10 | |
2011 | ■ #d67923 |
11 | |
2011b | ■ #a5ca18 |
11b | |
2012 | ■ #3e3c39 |
12 | |
2012b | ■ #aa7f2e |
12b | |
2013 | ■ #00852b |
13 | |
2013b | ■ #00451a |
13b | |
2014 | ■ #ffd300 |
14 | |
2014b | ■ #49796b |
14b | |
Throwbots | ■ #0018a8 |
Slizer | |
Roboriders | ■ #66ff00 |
Bionicle | ■ #06a265 |
(default) | ■ #808080 |
Examples
<div style="background-color:{{YearColor|2014}}">This element has 2014 coloring!</div>
produces:
This element has 2014 coloring!