Module:Sports color/basketball/doc
![]() | This is a documentation subpage for Module:Sports color/basketball. It may contain usage information, categories and other content that is not part of the original module page. |
![]() | This Lua module is used on approximately 18,000 pages and changes may be widely noticed. Test changes in the module's /sandbox or /testcases subpages, or in your own module sandbox. Consider discussing changes on the talk page before implementing them. |
This is the data module used by Module:Basketball color. Please test any changes in Module:Basketball color/data/sandbox first.
Format
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
Be very careful when updating this module, as it is used in a large number of articles. Please test any changes in Module:Basketball color/data/sandbox first.
Test table
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. For more information, see Template:Color contrast ratio. Script error: No such module "Basketball color/contrast".