Template:NBA color

From blackwiki
Jump to navigation Jump to search
Template documentation[view] [edit] [history] [purge]

Usage

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

Examples

<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

Table of colors

Team1234Contrast
1/24/3
San Antonio Spurs 2113.13
Boston Celtics 4.847.66
Brooklyn Nets 2121
Charlotte Hornets 16.145.17
Chicago Bulls 5.5521
Cleveland Cavaliers 10.147.94
Dallas Mavericks 4.4313.13
Denver Nuggets 3.358.29
Golden State Warriors 5.568.56
Indiana Pacers 13.537.94
Los Angeles Lakers 10.6112.15
Miami Heat 218.84
New York Knicks 5.568.21
Phoenix Suns 16.146.03
Toronto Raptors 5.5521
Milwaukee Bucks 10.958.46
Oklahoma City Thunder 4.615.32
Portland Trail Blazers 5.8821
Utah Jazz 1410.07
Detroit Pistons 9.475.1
Houston Rockets 5.5513.13
Los Angeles Clippers 4.355.56
Memphis Grizzlies 14.335.79
Minnesota Timberwolves 149.54
Orlando Magic 4.7721
Sacramento Kings 9.874.98
Washington Wizards 4.7214
Atlanta Hawks 4.348.9
New Orleans Pelicans 147.51
Philadelphia 76ers 5.564.35
Team1234Contrast
1/24/3
Agua Caliente Clippers 4.355.56
Austin Spurs 2113.13
Capital City Go-Go XX15.31
Fort Wayne Mad Ants 8.8412.33
Northern Arizona Suns 16.146.03
Oklahoma City Blue 4.613.95
Grand Rapids Drive 4.355.56
Raptors 905 5.5521
College Park Skyhawks XX15.31
Greensboro Swarm 16.145.17
Salt Lake City Stars 1410.07
Santa Cruz Warriors 5.568.56
Iowa Wolves 149.54
Sioux Falls Skyforce 8.8410.07
Canton Charge 10.147.94
Delaware Blue Coats XX15.31
Lakeland Magic 4.7721
Stockton Kings XX15.31
Texas Legends 4.438.46
Long Island Nets 5.564.35
Westchester Knicks 5.568.21
Windy City Bulls 5.559.69
Erie BayHawks 6.048.03
Maine Red Claws 4.354.84
Wisconsin Herd 10.958.46
South Bay Lakers 10.6112.15
Rio Grande Valley Vipers 5.8810.24
Memphis Hustle 4.684.83
Team1234Contrast
1/24/3
Eastern Conference 16.5616.56
United States National Basketball Team 14.254.71
Western Conference 14.7614.76
default XX15.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.