Difference between revisions of "Module:Sports color/baseball/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Jdaloner
m ("{{high use" --> "{{high-use")
blackwiki>Syracusestorm
Line 28: Line 28:
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
 
<!-- Categories go here and interwikis go in Wikidata. -->
 
<!-- Categories go here and interwikis go in Wikidata. -->
 
+
[[Chicago Dogs]]
 
}}</includeonly>
 
}}</includeonly>

Revision as of 05:15, 14 February 2018

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

Test table

Script error: No such module "Baseball color/table".