Module:Gridiron color/data/doc
Appearance
![]() | This is a documentation subpage for Module:Gridiron color/data. It may contain usage information, categories and other content that is not part of the original module page. |
Data source for Module:Gridiron color and Module:Gridiron color/sandbox
Data format
Normal team formatting
["team name"] = {"primary color", "secondary color", "tertiary color", "alternative primary", "alternative secondary"},
Teams with historical color schemes
Team with historical colors formatting (where XXXX represents the 4-digit start year and YYYY represents the 4-digit end year):
["team name"] = {"primary color", "secondary color", "tertiary color", "alternative primary", "alternative secondary",
{
["team name XXXXthruYYYY"] = {"primary color", "secondary color", "tertiary color", "alternative primary", "alternative secondary"},
["team name XXXXthruYYYY"] = "alternative team name",
["team name XXXXthruYYYY"] = "alternative team name XXXXthruYYYY"
}
},
Team alternative name formatting
["team alternative name"] = "team name",
Warnings
Do not create a historical color line that links back to the main team name, as in the "Gridiron Team 1990thru2000"
line in the example below:
["Gridiron Team"] = {"#dcdcdc", "", "none", "", "",
{
["Gridiron Team 1990thru2000"] = "Gridiron Team"
["Gridiron Team 1980thru1990"] = {"#dcdcdc", "", "none", "", ""}
}
},
This will create an infinite loop, and cause script errors and timeout errors on any pages that try to specify that team. The module will always use the current colors if a color for the specified year is not found, so any historical lines that are identical to the top-level color scheme can simply be deleted.