MyWikiBiz, Author Your Legacy — Thursday September 11, 2025
Jump to navigationJump to search
1,753 bytes added
, 06:08, 16 July 2021
{{module rating|release}}
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
This is the data module used by [[Module:Sports color]].
== Format ==
Most lines will be of the following form
<pre>
["TEAM NAME"] = {"HEX1", "HEX2", "HEX3", "HEX4"},
</pre>
The trailing comma is very important. Here, <code>HEX1</code>, <code>HEX2</code>, <code>HEX3</code>, and <code>HEX4</code> 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
<pre>
["SECONDARY TEAM NAME"] = "TEAM NAME",
</pre>
where <code>TEAM NAME</code> has already been defined, and <code>SECONDARY TEAM NAME</code> is the alternative spelling, or name.
== Choosing colors ==
In general:
*First color is the team's primary color, used for backgrounds.
*Second color is the font color that goes well with the first as its background. Should typically be black or white.
*Third color is the team's secondary color, used for backgrounds.
*Fourth color is the font color that goes well with the third as its background. Should typically be black or white.
Colors must at a '''minimum''' satisfy Web Content Accessibility Guidelines (WCAG) AA (contrast ratio of at least 4.5), and, if possible, satisfy WCAG AAA (contrast ratio of at least 7.0). The [https://webaim.org/resources/contrastchecker/ WebAIM Contrast Checker] is a good tool to check colors.
== Test table ==
{{#ifeq:{{SUBPAGENAME}}|sandbox
|{{#invoke:Sports color/contrast|testtable|sport=esports/sandbox}}
|{{#invoke:Sports color/contrast|testtable|sport=esports}}
}}
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
<!-- Categories go here and interwikis go in Wikidata. -->
}}</includeonly>