Bản mẫu:NBA color cell
Giao diện
| Bản mẫu này sử dụng Lua: |
Cách sử dụng
[sửa mã nguồn]{{NBA color|tên đội|số}}
{{NBA color cell|tên đội}} trả về một kiểu đó sử dụng màu chính cho nền và màu thứ hai cho phông chữ.
{{NBA color cell2|tên đội}} trả về một kiểu tương tự nhưng sử dụng các màu thứ ba và thứ tư thay vì tiểu học và trung học, tương ứng.
Các ví dụ
[sửa mã nguồn]<span style="color: #{{NBA color|Toronto Raptors|1}};">Lorem ipsum</span>
Lorem ipsum
<span style="{{NBA color cell|Toronto Raptors}}">Lorem ipsum</span>
Lorem ipsum
<span style="{{NBA color cell2|Toronto Raptors}}">Lorem ipsum</span>
Lorem ipsum
Bảng màu
[sửa mã nguồn]| Đội | 1 | 2 | 3 | 4 | Độ tương phản | |
|---|---|---|---|---|---|---|
| 1/2 | 4/3 | |||||
| Atlanta Hawks | 4.34 | 8.9 | ||||
| Boston Celtics | 4.84 | 7.66 | ||||
| Brooklyn Nets | 21 | 21 | ||||
| Charlotte Hornets | 5.17 | 16.14 | ||||
| Chicago Bulls | 5.55 | 21 | ||||
| Cleveland Cavaliers | 10.39 | 12.12 | ||||
| Dallas Mavericks | 7.09 | 11.86 | ||||
| Denver Nuggets | 14.33 | 8.29 | ||||
| Detroit Pistons | 5.56 | 4.35 | ||||
| Golden State Warriors | 5.56 | 8.56 | ||||
| Houston Rockets | 5.55 | 13.13 | ||||
| Indiana Pacers | 13.53 | 7.94 | ||||
| Los Angeles Clippers | 4.35 | 5.56 | ||||
| Los Angeles Lakers | 10.61 | 12.15 | ||||
| Memphis Grizzlies | 14.33 | 5.79 | ||||
| Miami Heat | 21 | 8.84 | ||||
| Milwaukee Bucks | 10.95 | 8.46 | ||||
| Minnesota Timberwolves | 15.79 | 9.18 | ||||
| New Orleans Pelicans | 14 | 7.51 | ||||
| New York Knicks | 5.56 | 8.21 | ||||
| Oklahoma City Thunder | 4.61 | 3.95 | ||||
| Orlando Magic | 4.77 | 21 | ||||
| Philadelphia 76ers | 5.56 | 4.35 | ||||
| Phoenix Suns | 16.14 | 6.03 | ||||
| Portland Trail Blazers | 4.34 | 21 | ||||
| Sacramento Kings | 9.87 | 4.98 | ||||
| San Antonio Spurs | 21 | 13.13 | ||||
| Toronto Raptors | 5.55 | 21 | ||||
| Utah Jazz | 14 | 6.71 | ||||
| Washington Wizards | 4.72 | 14 | ||||
| Đội | 1 | 2 | 3 | 4 | Độ tương phản | |
|---|---|---|---|---|---|---|
| 1/2 | 4/3 | |||||
| Agua Caliente Clippers | 4.35 | 5.56 | ||||
| Austin Spurs | 21 | 13.13 | ||||
| Canton Charge | 10.39 | 12.12 | ||||
| Delaware 87ers | 5.56 | 4.35 | ||||
| Erie BayHawks | 6.04 | 8.03 | ||||
| Fort Wayne Mad Ants | 13.53 | 7.94 | ||||
| Grand Rapids Drive | 4.35 | 5.56 | ||||
| Greensboro Swarm | 5.17 | 16.14 | ||||
| Iowa Wolves | 15.79 | 9.18 | ||||
| Lakeland Magic | 4.77 | 21 | ||||
| Long Island Nets | 5.56 | 4.35 | ||||
| Los Angeles D-Fenders | 10.61 | 12.15 | ||||
| Maine Red Claws | 4.35 | 5.55 | ||||
| Memphis Hustle | 4.68 | 4.83 | ||||
| Northern Arizona Suns | 16.14 | 6.03 | ||||
| Oklahoma City Blue | 4.61 | 3.95 | ||||
| Raptors 905 | 5.55 | 21 | ||||
| Reno Bighorns | 9.87 | 4.98 | ||||
| Rio Grande Valley Vipers | 5.55 | 11.51 | ||||
| Salt Lake City Stars | 14 | 10.07 | ||||
| Santa Cruz Warriors | 5.56 | 8.56 | ||||
| Sioux Falls Skyforce | 21 | 8.84 | ||||
| Texas Legends | 4.43 | 8.46 | ||||
| Westchester Knicks | 5.56 | 8.21 | ||||
| Washington G League team | X | X | 15.31 | |||
| Windy City Bulls | 5.55 | 21 | ||||
| Wisconsin Herd | 10.95 | 8.46 | ||||
| Đội | 1 | 2 | 3 | 4 | Độ tương phản | |
|---|---|---|---|---|---|---|
| 1/2 | 4/3 | |||||
| Western Conference | 14.76 | 14.76 | ||||
| Eastern Conference | 16.56 | 16.56 | ||||
| United States National Basketball Team | 14.25 | 4.71 | ||||
| mặc định | X | X | 15.31 | |||
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.