Modul:Gridiron color/data/dok

Iz Wikipedije, proste enciklopedije

Data source for Modul:Gridiron color and Modul:Gridiron color/peskovnik

Data format[uredi kodo]

Normal team formatting[uredi kodo]

["team name"] = {"primary color", "secondary color", "tertiary color", "alternative primary", "alternative secondary"},

Teams with historical color schemes[uredi kodo]

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[uredi kodo]

["team alternative name"] = "team name",

Warnings[uredi kodo]

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.