Difference between revisions of "Template:BIC Basket color/doc"

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
imported>Frietjes
Line 1: Line 1:
 
{{documentation subpage}}
 
{{documentation subpage}}
{{lua|Module:Basketball color}}
+
{{lua|Module:Sports color}}
  
 
== Usage ==
 
== Usage ==
Line 10: Line 10:
 
<code><nowiki>{{</nowiki>[[Template:BIC Basket color cell2|BIC Basket 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:BIC Basket color cell2|BIC Basket 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.
  
{{#invoke:Basketball color/contrast|testtable|style=float:right;clear:right;margin-left:1em;
+
{{#invoke:Sports color/contrast|testtable|sport=basketball|style=float:right;clear:right;margin-left:1em;
 
| ASA
 
| ASA
 
| Interclube
 
| Interclube

Revision as of 14:43, 8 July 2018

Usage

{{BIC Basket color|team name|number}}

{{BIC Basket color cell|team name}} returns a style that uses the primary color for the background and the secondary color for the font.

{{BIC Basket color cell2|team name}} returns a similar style but uses the tertiary and quaternary colors instead of the primary and secondary, respectively.

Team1234Contrast
1/24/3
Recreativo do Libolo 9.99
Interclube 16.0121
Marinha de Guerra 2.972.89
ASA 2.532.53
Petro de Luanda 88
Primeiro de Agosto 4.7321
The numeric columns are the calculated contrast ratio for the first/second and the fourth/third colors. Anything lower than 3 is very poor contrast and should be changed in the data module. For more information, see Template:Color contrast ratio.

Examples

<span style="color: #{{BIC Basket color|ASA|1}};">Lorem ipsum</span>

Lorem ipsum

<span style="{{BIC Basket color cell|Petro de Luanda}}">Lorem ipsum</span>

Lorem ipsum

<span style="{{BIC Basket color cell2|Recreativo do Libolo}}">Lorem ipsum</span>

Lorem ipsum

See also