Template:KBL color
Jump to navigation
Jump to search
![]() | This template uses Lua: |
Usage
{{KBL color|team name|number}}
{{KBL color cell|team name}}
returns a style that uses the primary color for the background and the secondary color for the font.
{{KBL color cell2|team name}}
returns a similar style but uses the tertiary and quaternary colors instead of the primary and secondary, respectively.
Team | 1 | 2 | 3 | 4 | Contrast | |
---|---|---|---|---|---|---|
1/2 | 4/3 | |||||
Seoul Samsung Thunders | 5.08 | 5.08 | ||||
Anyang KGC | 4.73 | 21 | ||||
Busan KT Sonicboom | 4.76 | 4.41 | ||||
Goyang Orions | 2.34 | 4.95 | ||||
Seoul SK Knights | 4.96 | 2.71 | ||||
Ulsan Mobis Phoebus | 4.37 | 21 | ||||
Incheon ET Land Elephants | 3.16 | 8.59 | ||||
Wonju Dongbu Promy | 3.41 | 3.41 | ||||
Changwon LG Sakers | 5.15 | 21 | ||||
Jeonju KCC Egis | 10.32 | 2.63 | ||||
South Korea national basketball team | 11.92 | 5.89 |
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: #{{KBL color|Seoul Samsung Thunders|1}};">Lorem ipsum</span>
Lorem ipsum
<span style="{{KBL color cell|Seoul Samsung Thunders}}">Lorem ipsum</span>
Lorem ipsum
<span style="{{KBL color cell2|Seoul Samsung Thunders}}">Lorem ipsum</span>
Lorem ipsum
See also
The above documentation is transcluded from Template:KBL color/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |