Open main menu
Home
Random
Donate
Recent changes
Special pages
Community portal
Preferences
About Stockhub
Disclaimers
Search
User menu
Talk
Contributions
Create account
Log in
Editing
Module:Gridiron color/data/doc
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
<!--{{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]]) --> {{High-use}} Data source for [[:Module:Gridiron color]] and [[:Module:Gridiron color/sandbox]] == Data format == === Normal team formatting === <syntaxhighlight lang="lua">["team name"] = {"primary color", "secondary color", "tertiary color", "alternative primary", "alternative secondary"},</syntaxhighlight> === 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): <syntaxhighlight lang="lua"> ["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" } }, </syntaxhighlight> === Team alternative name formatting === <syntaxhighlight lang="lua">["team alternative name"] = "team name",</syntaxhighlight> === Warnings === Do '''not''' create a historical color line that links back to the main team name, as in the <code>"Gridiron Team 1990thru2000"</code> line in the example below: <syntaxhighlight lang="lua"> ["Gridiron Team"] = {"#dcdcdc", "", "none", "", "", { ["Gridiron Team 1990thru2000"] = "Gridiron Team" ["Gridiron Team 1980thru1990"] = {"#dcdcdc", "", "none", "", ""} } }, </syntaxhighlight> 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. Also, remember to include the pound sign (#) with the hex codes when adding or changing colors, as in {{code|#dcdcdc}}. Some data modules don't require the pound sign. == Test table == {{#ifeq:{{SUBPAGENAME}}|sandbox |{{#invoke:Gridiron color/contrast|testtable|columns=5|sport=data/sandbox}} |{{#invoke:Gridiron color/contrast|testtable|columns=5|sport=data}} }} {{Sports color templates}} <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox|| <!-- Categories below this line; interwikis at Wikidata --> [[Category:Sports color modules]] }}</includeonly>
Summary:
Please note that all contributions to Stockhub may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Stockhub:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Code
(
edit
)
Template:High-use
(
edit
)
Template:Sports color templates
(
edit
)
Module:Color contrast
(
edit
)
Module:Color contrast/colors
(
edit
)
Module:Gridiron color/contrast
(
edit
)
Module:Gridiron color/data
(
edit
)