模組:Gridiron color/doc
这是Module:Gridiron color的文档页面
此模块文档已评为beta版,可广泛使用。因其新近完成,请谨慎使用,以确保输出结果符合预期。 |
此模块使用Lua语言: |
Implements:
- {{Gridiron primary color}}
- {{Gridiron primary color raw}}
- {{Gridiron primary style}}
- {{Gridiron secondary color}}
- {{Gridiron secondary color raw}}
- {{Gridiron tertiary color raw}}
- {{Gridiron alt primary color}}
- {{Gridiron alt primary style}}
- {{Gridiron alt secondary color}}
Uses color data from Module:Gridiron color/data.
Usage
[编辑]Debugging
[编辑]Displays entire row from Module:Gridiron color/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:Gridiron color|test|team=team name (optional)|year=#### (optional)}}
package.lua第80行Lua错误:module 'Module:Gridiron color/data/sandbox' not found
Return team color
[编辑]Returns either raw color value or prefixed color value. |column=
uses the following values:
- Primary color
- Secondary color
- Tertiary color
- Alternative primary color
- 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:Gridiron color|color|column=#|raw=true (optional)|team=team name (optional)|year=#### (optional)}}
package.lua第80行Lua错误:module 'Module:Gridiron color/data/sandbox' not found
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:Gridiron color|style|border=# or yes (optional)|team=team name (optional)|year=#### (optional)}}
package.lua第80行Lua错误:module 'Module:Gridiron color/data/sandbox' not found