Open main menu
Home
Random
Donate
Recent changes
Special pages
Community portal
Preferences
About Stockhub
Disclaimers
Search
User menu
Talk
Contributions
Create account
Log in
Editing
Module:Sports color/esports/doc
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{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}} }} {{Sports color templates}} <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox|| <!-- Categories below this line; interwikis at Wikidata --> [[Category:Sports color modules]] }}</includeonly>
Summary:
Please note that all contributions to Stockhub may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Stockhub:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Module rating
(
edit
)
Template:Sports color templates
(
edit
)
Module:Color contrast
(
edit
)
Module:Color contrast/colors
(
edit
)
Module:Sports color/contrast
(
edit
)
Module:Sports color/esports
(
edit
)