Templat:NBA color cell2
Tampilan
Templat ini menggunakan Lua: |
Penggunaan
[sunting sumber]{{NBA color|team name|number}}
{{NBA color cell|team name}}
returns a style that uses the primary color for the background and the secondary color for the font.
{{NBA color cell2|team name}}
returns a similar style but uses the tertiary and quaternary colors instead of the primary and secondary, respectively.
Contoh
[sunting sumber]<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
Tabel warna
[sunting sumber]Team | 1 | 2 | 3 | 4 | Contrast | |
---|---|---|---|---|---|---|
1/2 | 4/3 | |||||
Atlanta Hawks | 5.88 | 12.15 | ||||
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 | 6.07 | 11.86 | ||||
Denver Nuggets | 15.89 | 10.01 | ||||
Detroit Pistons | 9.55 | 5.88 | ||||
Golden State Warriors | 9.55 | 8.56 | ||||
Houston Rockets | 5.55 | 21 | ||||
Indiana Pacers | 13.53 | 7.94 | ||||
Los Angeles Clippers | 5.88 | 9.55 | ||||
Los Angeles Lakers | 10.61 | 12.15 | ||||
Memphis Grizzlies | 4.54 | 17.21 | ||||
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 | 21 | 17.97 | ||||
Washington Wizards | 4.72 | 14 |
Team | 1 | 2 | 3 | 4 | Contrast | |
---|---|---|---|---|---|---|
1/2 | 4/3 | |||||
Agua Caliente Clippers | 5.88 | 9.55 | ||||
Austin Spurs | 21 | 13.13 | ||||
Canton Charge | 10.39 | 12.12 | ||||
Capital City Go-Go | 4.72 | 14 | ||||
Delaware Blue Coats | 9.47 | 5.1 | ||||
Erie BayHawks | 6.04 | 7.51 | ||||
Fort Wayne Mad Ants | 13.53 | 7.94 | ||||
Grand Rapids Drive | 5.88 | 9.55 | ||||
Greensboro Swarm | 5.17 | 16.14 | ||||
Iowa Wolves | 15.79 | 9.18 | ||||
Lakeland Magic | 4.77 | 21 | ||||
Long Island Nets | 5.56 | 4.35 | ||||
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 | ||||
Rio Grande Valley Vipers | 5.55 | 11.51 | ||||
Salt Lake City Stars | 14 | 10.07 | ||||
Santa Cruz Warriors | 9.55 | 12.15 | ||||
Sioux Falls Skyforce | 21 | 8.84 | ||||
South Bay Lakers | 10.61 | 12.15 | ||||
Stockton Kings | 9.87 | 4.98 | ||||
Texas Legends | 6.07 | 8.1 | ||||
Westchester Knicks | 5.56 | 8.21 | ||||
Windy City Bulls | 5.55 | 21 | ||||
Wisconsin Herd | 10.95 | 8.46 |
Team | 1 | 2 | 3 | 4 | Contrast | |
---|---|---|---|---|---|---|
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 | ||||
default | 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 Template:Color contrast ratio.