Difference between revisions of "Template:Basketball color/doc"

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
Line 9: Line 9:
  
 
<code><nowiki>{{</nowiki>[[Template:Basketball color cell2|Basketball color cell2]]|''team name''<nowiki>}}</nowiki></code> returns a similar style but uses the tertiary and quaternary colors instead of the primary and secondary, respectively.
 
<code><nowiki>{{</nowiki>[[Template:Basketball color cell2|Basketball color cell2]]|''team name''<nowiki>}}</nowiki></code> returns a similar style but uses the tertiary and quaternary colors instead of the primary and secondary, respectively.
 +
 +
=== Optional border ===
 +
Both {{tl|Basketball color cell}} and {{tl|Basketball color cell2}} support the optional {{para|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 {{tl|navbox}} groups).  However, this can be changed to simple table cell borders using {{para|simple|1}}.
  
 
==Examples==
 
==Examples==

Revision as of 14:05, 16 August 2017

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>

Lorem ipsum

<span style="{{Basketball color cell|default}}">Lorem ipsum</span>

Lorem ipsum

<span style="{{Basketball color cell2|default}}">Lorem ipsum</span>

Lorem ipsum

Table of colors

Script error: No such module "Basketball color/contrast".