Bản mẫu:KBL color cell
Bản mẫu này sử dụng Lua: |
Cách sử dụng[sửa mã nguồn]
{{KBL color|tên đội|số}}
{{KBL color cell|tên đội}}
returns a style that uses the primary color for the background and the secondary color for the font.
{{KBL color cell2|tên đội}}
returns a similar style but uses the tertiary and quaternary colors instead of the primary and secondary, respectively.
Đội | 1 | 2 | 3 | 4 | Độ tương phản | |
---|---|---|---|---|---|---|
1/2 | 4/3 | |||||
Anyang KGC | 4.73 | 21 | ||||
Busan KT Sonicboom | 21 | 4.41 | ||||
Changwon LG Sakers | 6.07 | 21 | ||||
Goyang Orions | 11.56 | 4.95 | ||||
Incheon ET Land Elephants | 3.16 | 8.59 | ||||
Jeonju KCC Egis | 10.32 | 2.63 | ||||
Seoul Samsung Thunders | 8.21 | 5.08 | ||||
Seoul SK Knights | 4.96 | 2.71 | ||||
Ulsan Mobis Phoebus | 4.37 | 21 | ||||
Wonju Dongbu Promy | 3.41 | 3.41 | ||||
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 Bản mẫu:Color contrast ratio.
Các ví dụ[sửa mã nguồn]
<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