コンテンツにスキップ

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

モジュール:NFLcolor/doc

Implements:

Uses color data from モジュール:NFLcolor/data.

Usage

[編集]

Debugging

[編集]

Displays entire row from モジュール:NFLcolor/data for team and year passed in template call or using |team= and |year= (if omitted from invoke, module will take values from the template call):

{{#invoke:NFLcolor|test|team=team name (optional)|year=#### (optional)}}

["Buffalo Bills"] = {{ "#00274D", #FFFFFF", #C60C30", #C60C30", #FFFFFF"}}

Return team color

[編集]

Returns either raw color value or prefixed color value. |column= uses the following values:

  1. Primary color
  2. Secondary color
  3. Tertiary color
  4. Alternative primary color
  5. Alternative secondary color

Set |raw=true to display raw hex values. Team name and year passed in template call or specified using |team= and |year=:

{{#invoke:NFLcolor|color|column=#|raw=true (optional)|team=team name (optional)|year=#### (optional)}}

background: #00274D

Return team style

[編集]

Returns complete CSS style for given team. A border will be displayed using the tertiary color if |border= is set to "true" (in which case the border will be 2px wide) or to a positive integer value (in which case the width will be the value specified in pixels). Team name and year passed in template call or specified using |team= and |year=:

{{#invoke:NFLcolor|style|border=# or yes (optional)|team=team name (optional)|year=#### (optional)}}

background: #00274D; color: #FFFFFF; box-shadow: inset 2px 2px 0 #C60C30, inset -2px -2px 0 #C60C30;