コンテンツにスキップ

英文维基 | 中文维基 | 日文维基 | 草榴社区

モジュール:NFLcolor/data/doc

Data source for Module: NFLcolor and Module: NFLcolor/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.

Also, remember to include the pound sign (#) with the hex codes when adding or changing colors, as in #dcdcdc. Some data modules don't require the pound sign.

Test table

[編集]
Team12345Contrast
1/25/4
#Low_contrast_test11
#Recursive_test21
#default15.31
AFC5.425.42
AFL4.7211.3
Card-Pitt
Also known as Chicago-Pittsburgh Cardinals-Steelers
Also known as Pittsburgh-Chicago Steelers-Cardinals
7.997.99
NFC12.5112.51
NFL12.515.42
Steagles
Also known as Philadelphia-Pittsburgh Steagles
Also known as Pittsburgh-Philadelphia Steelers-Eagles
Also known as Pitt-Phil Steelers-Eagles
Also known as Pitt-Phil Steagles
Also known as Philadelphia-Pittsburgh Eagles-Steelers
Also known as Pittsburgh-Philadelphia Steagles
Also known as Phil-Pitt Eagles-Steelers
Also known as Phil-Pitt Steagles
5.6211.37
アトランタ・ファルコンズ217.43
アリゾナ・カーディナルス
Also known as フェニックス・カーディナルス
Also known as シカゴ・カーディナルス
Also known as セントルイス・カーディナルス
Also known as セントルイス・カーディナルス (NFL)
7.997.99
インディアナポリス・コルツ12.5112.51
オークランド・レイダース219.12
カロライナ・パンサーズ215.21
カンザスシティ・チーフス
Also known as ダラス・テキサンズ
Also known as ダラス・テキサンズ (AFL)
4.7211.95
クリーブランド・ブラウンズ16.084.38
クリーブランド・ラムズ11.36.43
グリーンベイ・パッカーズ12.717.23
サンディエゴ・チャージャーズ169.11
サンフランシスコ・フォーティナイナーズ7.757.63
シアトル・シーホークス166.86
シカゴ・ベアーズ18.075.12
シンシナティ・ベンガルズ216.23
ジャクソンビル・ジャガーズ6.5421
セントルイス・ラムズ
Also known as Saint Louis Rams
165.82
タンパベイ・バッカニアーズ7.4313.32
ダラス・カウボーイズ167.88
テネシー・オイラーズ6.485.42
テネシー・タイタンズ164.9
デトロイト・ライオンズ4.9210.35
デンバー・ブロンコス15.744.63
ニューイングランド・ペイトリオッツ166.01
ニューオリンズ・セインツ2111.35
ニューヨーク・ジェッツ
Also known as NY Jets
8.538.53
ニューヨーク・ジャイアンツ
Also known as NY ジャイアンツ
14.687.43
ニューヨーク・タイタンズ
Also known as NY Titans
Also known as Titans of New York
8.764.72
バッファロー・ビルズ11.36.01
ヒューストン・オイラーズ6.485.42
ヒューストン・テキサンズ16.787.43
ピッツバーグ・スティーラーズ
Also known as ピッツバーグ・パイレーツ (NFL)
Also known as ピッツバーグ・パイレーツ
2111.95
フィラデルフィア・イーグルス10.278.89
ボストン・ペイトリオッツ6.017.75
ボルチモア・コルツ11.4211.42
ボルチモア・レイブンズ15.7521
マイアミ・ドルフィンズ5.326.17
ミネソタ・バイキングス10.8413.37
ラスベガス・レイダース219.12
ロサンゼルス・チャージャーズ4.912.98
ロサンゼルス・ラムズ
Also known as LA ラムズ
10.847.42
ロサンゼルス・レイダース
Also known as LA Raiders
219.12
ワシントン・コマンダース
Also known as ワシントン・レッドスキンズ
Also known as ワシントン・フットボールチーム
13.597.74
Free agentXXX15.31
RetiredXXX15.31
The numeric columns are the calculated contrast ratio for colors 1:2 and colors 5:4. Anything lower than 3 is very poor contrast and should be changed in the data module. For more information, see Template:Color contrast ratio.

Template:スポーツカラーテンプレート