Changes

MyWikiBiz, Author Your Legacy — Thursday September 11, 2025
Jump to navigationJump to search
Pywikibot 6.4.0
{{module rating|release}}

{{tl|Module rating |<!-- Values: pre-alpha • alpha • beta • release • protected -- If a rating not needed/relevant, delete this template call -->}}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->

This is the data module used by [[Module:Sports color]]. Please test any changes in [[Module:Sports color/ice hockey/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/ice hockey/sandbox]] first.

== Test table ==
{{#ifeq:{{SUBPAGENAME}}|sandbox
|{{#invoke:Sports color/contrast|testtable|sport=ice hockey/sandbox}}
|{{#invoke:Sports color/contrast|testtable|sport=ice hockey}}
}}
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
<!-- Categories below this line, please; interwikis at Wikidata -->

}}</includeonly>

Navigation menu