Bản mẫu:NBL colour

Bách khoa toàn thư mở Wikipedia
Tài liệu bản mẫu[xem] [sửa] [lịch sử] [làm mới]

Cách sử dụng[sửa mã nguồn]

{{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.

Đội1234Độ tương phản
1/24/3
Adelaide 36ers 18.754.38
Brisbane Bullets 6.326.32
Cairns Taipans 2.36.74
Gold Coast Blaze 9.98.29
Illawarra Hawks 3.853.85
Melbourne United 16.4216.42
New Zealand Breakers 9.92.12
Perth Wildcats 45.25
Sydney Kings 7.965.03
Townsville Crocodiles 4.675.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 mã nguồn]

<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

Xem thêm[sửa mã nguồn]