1,341 bytes added
, 06:08, 16 July 2021
{{high-use|16000}}
{{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]]. Please test any changes in [[Module:Sports color/basketball/sandbox]] first.
== 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.
== Warning ==
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/basketball/sandbox]] first.
== Test table ==
{{#ifeq:{{SUBPAGENAME}}|sandbox
|{{#invoke:Sports color/contrast|testtable|sport=basketball/sandbox}}
|{{#invoke:Sports color/contrast|testtable|sport=basketball}}
}}
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
<!-- Categories go here and interwikis go in Wikidata. -->
}}</includeonly>