Difference between revisions of "Template:BIC Basket color"

From blackwiki
Jump to navigation Jump to search
imported>Valmir144
(Undid revision 715127521 by Valmir144 (talk))
imported>Valmir144
(Replaced content with '<includeonly>{{#invoke:Basketball color|color}}</includeonly><noinclude> {{Documentation}} </noinclude>')
Line 1: Line 1:
{{documentation subpage}}
+
<includeonly>{{#invoke:Basketball color|color}}</includeonly><noinclude>
{{lua|Module:Basketball color}}
+
{{Documentation}}  
 
+
</noinclude>
== Usage ==
 
 
 
<code><nowiki>{{</nowiki>[[Template:BIC Basket color|BIC Basket color]]|''team name''|''number''<nowiki>}}</nowiki></code>
 
 
 
<code><nowiki>{{</nowiki>[[Template:BIC Basket color cell|BIC Basket color cell]]|''team name''<nowiki>}}</nowiki></code> returns a style that uses the primary color for the background and the secondary color for the font.
 
 
 
<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|testtable|style=float:right;clear:right;margin-left:1em;
 
| ASA
 
| Interclube
 
| Petro de Luanda
 
| Primeiro de Agosto
 
| Recreativo do Libolo
 
}}
 
== Examples ==
 
 
 
<code><nowiki><span style="color: #{{BIC Basket color|ASA|1}};">Lorem ipsum</span></nowiki></code>
 
 
 
<span style="color: #{{BIC Basket color|Interclube|1}};">Lorem ipsum</span>
 
 
 
<code><nowiki><span style="{{BIC Basket color cell|Petro de Luanda}}">Lorem ipsum</span></nowiki></code>
 
 
 
<span style="{{BIC Basket color cell|Primeiro de Agosto}}">Lorem ipsum</span>
 
 
 
<code><nowiki><span style="{{BIC Basket color cell2|Recreativo do Libolo}}">Lorem ipsum</span></nowiki></code>
 
 
 
<span style="{{BIC Basket color cell2|ASA}}">Lorem ipsum</span>
 
 
 
== See also ==
 
*[[Template:NBA color]]
 
*[[Template:NBA color cell]]
 
*[[Template:NBA color cell2]]
 
 
 
<includeonly>
 
[[Category:Sports color templates]]
 
 
 
</includeonly>
 

Revision as of 22:08, 13 April 2016

50px Template documentation[view] [edit] [history] [purge]

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>

<span style="color: #Script error: No such module "Basketball color".;">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