Module:Sports color/unisport/doc
Appearance
This is the data module used by Module:Sports color. Please test any changes in Module:Sports color/unisport/sandbox first.
Format
[edit]Most lines will be of the following form
["TEAM NAME"] = {"HEX1", "HEX2", "HEX3", "HEX4"},
The trailing comma is very important. Here, HEX1
, HEX2
, HEX3
, and HEX4
are hexadecimal color values.
To use the same color for more than one team name (e.g., if the team goes by more than one name, but the colors are the same), use
["SECONDARY TEAM NAME"] = "TEAM NAME",
where TEAM NAME
has already been defined, and SECONDARY TEAM NAME
is the alternative spelling, or name.
Warning
[edit]Be very careful when updating this module, as it is used in a large number of articles. Please test any changes in Module:Sports color/unisport/sandbox first.
Test table
[edit]Team | 1 | 2 | 3 | 4 | Contrast | |
---|---|---|---|---|---|---|
1/2 | 4/3 | |||||
Ballarat Blizzards Also known as Ballarat Also known as University of Ballarat | X | X | 10.56 | |||
MQU Sport Also known as Macquarie Also known as Macquarie University Also known as MQU | 9.08 | 21 | ||||
UC Sport Also known as University of Canberra Also known as UC | 2.68 | 21 | ||||
UTS Sport Also known as University of Technology Sydney Also known as UTS | 9.44 | 21 | ||||
Uni 7s Series | 14.98 | 16.8 | ||||
UniSport Also known as Nationals Snow Also known as Indigenous Nationals Also known as UniSport Division 1 Also known as UniSport Div 1 Also known as UniSport Nationals | 4.05 | 3.32 | ||||
UniSport Division 2 Also known as UniSport Div 2 | 3.32 | 4.05 | ||||
Free agent | X | X | 15.31 | |||
Retired | X | X | 15.31 |
The numeric columns are the calculated contrast ratio for the first/second and the fourth/third colors. Anything lower than 3 is very poor contrast and should be changed in the data module. For more information, see Template:Color contrast ratio.