Jump to content

Module:Gridiron color/data/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Ahecht (talk | contribs) at 05:42, 22 June 2018 (Data format: add warning). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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 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.