Template:Basketball color cell2
This template is used on many pages, so changes to it will be widely noticed. Please test any changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Please consider discussing changes on the talk page before implementing them. |
This template uses Lua: |
Usage
{{Basketball color|team name|number}}
{{Basketball color cell|team name}}
returns a style that uses the primary color for the background and the secondary color for the font.
{{Basketball color cell2|team name}}
returns a similar style but uses the tertiary and quaternary colors instead of the primary and secondary, respectively.
Optional border
Both {{Basketball color cell}} and {{Basketball color cell2}} support the optional |border=
parameter. The value should be a positive integer (e.g., 1 or 2 or 3). By default, the CSS generated uses box-shadows to generate the borders on the inside of the table cell (this is necessary for {{navbox}} groups). However, this can be changed to simple table cell borders using |simple=1
.
Examples
<span style="color: #{{Basketball color|default|1}};">Lorem ipsum</span>
<span style="color: #Lua error in package.lua at line 80: module 'Module:Sports color/basketball' not found.;">Lorem ipsum
<span style="{{Basketball color cell|default}}">Lorem ipsum</span>
Lorem ipsum
<span style="{{Basketball color cell2|default}}">Lorem ipsum</span>
<span style="Lua error in package.lua at line 80: module 'Module:Sports color/basketball' not found.">Lorem ipsum
Table of colors
Lua error in package.lua at line 80: module 'Module:Sports color/basketball' not found.
Template:Sports color templates
The above documentation is transcluded from Template:Basketball color/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Subpages of this template. |