Bản mẫu:NBL colour
Bản mẫu này sử dụng Lua: |
Cách sử dụng
sửa{{NBL colour|tên đội|số}}
{{NBL colour cell|tên đội}}
returns a style that uses the primary colour for the background and the secondary colour for the font.
{{NBL colour cell2|tên đội}}
returns a similar style but uses the tertiary and quaternary colours instead of the primary and secondary, respectively.
Đội | 1 | 2 | 3 | 4 | Độ tương phản | |
---|---|---|---|---|---|---|
1/2 | 4/3 | |||||
Adelaide 36ers | 18.75 | 4.38 | ||||
Brisbane Bullets | 6.32 | 6.32 | ||||
Cairns Taipans | 2.3 | 6.74 | ||||
Gold Coast Blaze | 9.9 | 8.29 | ||||
Illawarra Hawks | 3.85 | 3.85 | ||||
Melbourne United | 16.42 | 16.42 | ||||
New Zealand Breakers | 9.9 | 2.12 | ||||
Perth Wildcats | 4 | 5.25 | ||||
Sydney Kings | 7.96 | 5.03 | ||||
Townsville Crocodiles | 4.67 | 5.2 |
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<span style="color: #{{NBL colour|Adelaide 36ers|1}};">Lorem ipsum</span>
Lorem ipsum
<span style="{{NBL colour cell|Adelaide 36ers}}">Lorem ipsum</span>
Lorem ipsum
<span style="{{NBL colour cell2|Adelaide 36ers}}">Lorem ipsum</span>
Lorem ipsum