ಮಾಡ್ಯೂಲ್:College color
This Lua module is used on ೫೦,೦೦೦+ pages and changes may be widely noticed. Test changes in the module's /sandbox or /testcases subpages, or in your own module sandbox. Consider discussing changes on the talk page before implementing them. |
This module is rated as beta, and is ready for widespread use. It is still new and should be used with some caution to ensure the results are as expected. |
This module implements the colors for college athletic programs and is used by
{{CollegePrimaryHex}}
,{{CollegePrimaryStyle}}
,{{CollegePrimaryColorLink}}
,{{CollegeSecondaryHex}}
,{{CollegeSecondaryStyle}}
,{{CollegeSecondaryColorLink}}
,{{NCAA color}}
,{{NCAA color cell}}
,{{NCAA secondary color cell}}
{{Infobox baseball biography/style}}
{{Infobox basketball biography/style}}
{{CBB roster/Header}}
Usage
ಬದಲಾಯಿಸಿ{{#invoke:College color|color}}
in the NCAA color template{{#invoke:College color|color1}}
in the primary color template{{#invoke:College color|color32}}
in the secondary color template{{#invoke:College color|style1}}
in the primary style template{{#invoke:College color|style2}}
in the secondary style template{{#invoke:College color|header1}}
in the primary header style of an infobox{{#invoke:College color|header2}}
in the secondary header style of an infobox{{#invoke:College color|stripe1}}
in the primary header style of an infobox{{#invoke:College color|check}}
to check to see if a team has defined colors
Updating team colors
ಬದಲಾಯಿಸಿSee Module:college color/data.
Test table
ಬದಲಾಯಿಸಿTeam | 1 | 2 | 3 | Contrast | refs | ||||
---|---|---|---|---|---|---|---|---|---|
1/2 | 2/3 | 3/1 | 1/w | 1/b | |||||
Abilene Christian Wildcats | 12.16 | 1.5 | 8.12 | 12.16 | 1.73 | ||||
Air Force Falcons | 11.54 | 2.43 | 4.75 | 11.54 | 1.82 | ||||
Akron Zips | 16.05 | 4.08 | 3.93 | 16.05 | 1.31 | ||||
Alabama A&M Bulldogs aka Alabama A&M Lady Bulldogs | 13.42 | 21 | 1.56 | 13.42 | 1.56 | ||||
Alabama Crimson Tide | X | 7.9 | 7.9 | 2.66 | |||||
Alabama State Hornets | 21 | 2.62 | 8.03 | 21 | 1 | ||||
Alabama–Huntsville Chargers aka UAH Chargers | 9.5 | 14.67 | 1.54 | 9.5 | 2.21 | ||||
Alaska Anchorage Seawolves | 8.53 | 1.59 | 5.35 | 8.53 | 2.46 | ||||
Alaska Nanooks aka Alaska-Fairbanks Nanooks | 6.57 | 1.5 | 4.38 | 6.57 | 3.2 | ||||
Albany Great Danes | 10.79 | 2.05 | 5.27 | 10.79 | 1.95 | ||||
Alcorn State Braves aka Alcorn State Lady Braves | 10.79 | 2.92 | 3.7 | 10.79 | 1.95 | ||||
American Eagles aka American University Eagles | 10.4 | 5.57 | 1.87 | 10.4 | 2.02 | ||||
American International Yellow Jackets aka AIC Yellow Jackets | 21 | 1.73 | 12.12 | 21 | 1 | ||||
Amherst Lord Jeffs | X | 15.83 | 15.83 | 1.33 | |||||
Angelo State Rams | 7.61 | 1.67 | 4.56 | 7.61 | 2.76 | ||||
Appalachian State Mountaineers | 15.91 | 1.51 | 10.52 | 15.91 | 1.32 | ||||
Arizona State Sun Devils | 8.74 | 1.79 | 4.87 | 8.74 | 2.4 | ||||
Arizona Wildcats | 7.57 | 15.47 | 2.04 | 7.57 | 2.77 | ||||
Arkansas Razorbacks | 7.74 | 21 | 2.71 | 7.74 | 2.71 | ||||
Arkansas State Red Wolves | 5.76 | 21 | 3.65 | 5.76 | 3.65 | ||||
Arkansas Tech Wonder Boys aka Arkansas Tech Cotton Blossoms | 9.1 | 1.49 | 6.1 | 9.1 | 2.31 | ||||
Arkansas-Pine Bluff Golden Lions aka Arkansas–Pine Bluff Golden Lions | 21 | 1.89 | 11.09 | 21 | 1 | ||||
Arkansas–Little Rock Trojans aka Little Rock Trojans aka UALR Trojans | 10.5 | 2.36 | 4.46 | 10.5 | 2 | ||||
Arkansas–Monticello Boll Weevils aka Arkansas–Monticello Cotton Blossoms | 3.8 | 21 | 5.52 | 3.8 | 5.52 | ||||
Army Black Knights aka Army Cadets | 21 | 1.8 | 11.66 | 21 | 1 | ||||
Auburn Tigers aka Alabama Polytechnic Tigers aka Auburn Plainsmen | 15.79 | 3.15 | 5.01 | 15.79 | 1.33 | ||||
Austin Peay Governors aka Austin Peay Lady Govs aka Austin Peay State Lady Govs aka Austin Peay State Governors | 5.84 | 21 | 3.59 | 5.84 | 3.59 | ||||
BYU–Hawaii Seasiders | 7.89 | 3.62 | 2.18 | 7.89 | 2.66 | ||||
Baker Wildcats | 13.58 | 2.82 | 4.82 | 13.58 | 1.55 | ||||
Ball State Cardinals | 6.6 | 16.3 | 2.47 | 6.6 | 3.18 | ||||
Baylor Bears aka Baylor Lady Bears | 14.65 | 1.53 | 9.6 | 14.65 | 1.43 | ||||
Belmont Bruins | 14.42 | 5.53 | 2.61 | 14.42 | 1.46 | ||||
Bemidji State Beavers | 9.79 | 21 | 2.15 | 9.79 | 2.15 | ||||
Bentley Falcons | 21 | 4.9 | 4.29 | 21 | 1 | ||||
Bethany Swedes | 10.6 | 1.46 | 7.25 | 10.6 | 1.98 | ||||
Bethel Threshers | 7.74 | 3.36 | 2.31 | 7.74 | 2.71 | ||||
Bethune-Cookman Wildcats | 11.13 | 1.87 | 5.95 | 11.13 | 1.89 | ||||
Binghamton Bearcats | 8.26 | 21 | 2.54 | 8.26 | 2.54 | ||||
Birmingham–Southern Panthers aka Birmingham-Southern | 21 | 3.04 | 6.91 | 21 | 1 | ||||
Boise State Broncos | 11.77 | 3.2 | 3.68 | 11.77 | 1.78 | ||||
Boston College Eagles | 12.12 | 2 | 6.06 | 12.12 | 1.73 | ||||
Boston University Terriers | 5.89 | 21 | 3.57 | 5.89 | 3.57 | ||||
Bowling Green Falcons | 12.28 | 2.73 | 4.5 | 12.28 | 1.71 | ||||
Bradley Braves | 8.08 | 21 | 2.6 | 8.08 | 2.6 | ||||
Brigham Young University Cougars aka Brigham Young Cougars aka BYU Cougars | 15.44 | 2.14 | 7.21 | 15.44 | 1.36 | ||||
Brown Bears | 15.74 | 4.85 | 3.25 | 15.74 | 1.33 | ||||
Bryant Bulldogs | 16.3 | 2.79 | 5.84 | 16.3 | 1.29 | ||||
Bucknell Bison | 12.98 | 3.06 | 4.24 | 12.98 | 1.62 | ||||
Buffalo Bulls | X | 6.53 | 6.53 | 3.21 | |||||
Butler Bulldogs | 14.52 | 5.74 | 2.53 | 14.52 | 1.45 | ||||
CCNY Beavers | 6.74 | 21 | 3.12 | 6.74 | 3.12 | ||||
Cal Poly Mustangs | 13.04 | 1.26 | 10.36 | 13.04 | 1.61 | ||||
Cal Poly Pomona Broncos | 9.76 | 2.77 | 3.52 | 9.76 | 2.15 | ||||
Cal State Bakersfield Roadrunners | 6.67 | 1.45 | 4.6 | 6.67 | 3.15 | ||||
Cal State Dominguez Hills Toros | 10.18 | 1.87 | 5.43 | 10.18 | 2.06 | ||||
Cal State East Bay Pioneers | 3.52 | 21 | 5.97 | 5.97 | 3.52 | ||||
Cal State Fullerton Titans | 15.06 | 3.22 | 4.67 | 15.06 | 1.39 | ||||
Cal State Los Angeles Golden Eagles | 21 | 1.49 | 14.08 | 21 | 1 | ||||
Cal State Northridge Matadors | 5.63 | 21 | 3.73 | 5.63 | 3.73 | ||||
California Golden Bears | 16.54 | 1.56 | 10.6 | 16.54 | 1.27 | ||||
California Vulcans | 4.89 | 21 | 4.29 | 4.89 | 4.29 | ||||
Cameron Aggies | 21 | 1.72 | 12.22 | 21 | 1 | ||||
Campbell Fighting Camels aka Campbell Lady Camels | 21 | 2.96 | 7.09 | 21 | 1 | ||||
Canisius Golden Griffins | 14.55 | 1.71 | 8.51 | 14.55 | 1.44 | ||||
Carlisle Indians | 7.31 | 2.03 | 3.59 | 7.31 | 2.87 | ||||
Carnegie Tech Tartans aka Carnegie Mellon Tartans | 8.92 | 9.44 | 1.06 | 8.92 | 2.35 | ||||
Catawba Indians | 3.78 | 6.08 | 1.61 | 3.78 | 5.56 | ||||
Centenary Gentlemen aka Centenary Gents | 8.83 | 21 | 2.38 | 8.83 | 2.38 | ||||
Central Arkansas Bears aka Central Arkansas Sugar Bears | 10.43 | 3.52 | 2.96 | 10.43 | 2.01 | ||||
Central Connecticut Blue Devils | 9.22 | 1.59 | 5.81 | 9.22 | 2.28 | ||||
Central Michigan Chippewas | 12.66 | 1.55 | 8.17 | 12.66 | 1.66 | ||||
Central Missouri Mules aka Central Missouri Jennies | 5.39 | 21 | 3.9 | 5.39 | 3.9 | ||||
Central Oklahoma Bronchos | 12.61 | 1.51 | 8.34 | 12.61 | 1.67 | ||||
Central State Marauders | 10.2 | 1.52 | 6.7 | 10.2 | 2.06 | ||||
Central Washington Wildcats | 7.56 | 14.28 | 1.89 | 7.56 | 2.78 | ||||
Centre Colonels aka Centre Praying Colonels | 21 | 1.51 | 13.89 | 21 | 1 | ||||
Chadron State Eagles | 13.02 | 21 | 1.61 | 13.02 | 1.61 | ||||
Charleston Golden Eagles | 7.87 | 1.45 | 5.43 | 7.87 | 2.67 | ||||
Charleston Southern Buccaneers | 14.64 | 2.83 | 5.17 | 14.64 | 1.43 | ||||
Charlotte 49ers | 6.21 | 3.63 | 1.71 | 6.21 | 3.38 | ||||
Chattanooga Mocs aka Chattanooga Lady Mocs | 11.81 | 2.12 | 5.58 | 11.81 | 1.78 | ||||
Chicago Maroons | 10.95 | 4.54 | 2.41 | 10.95 | 1.92 | ||||
Chicago State Cougars | 6.79 | 21 | 3.09 | 6.79 | 3.09 | ||||
Cincinnati Bearcats | 21 | 5 | 4.2 | 21 | 1 | ||||
Citadel Bulldogs aka The Citadel Bulldogs | 12.83 | 3.39 | 3.78 | 12.83 | 1.64 | ||||
Clarkson Golden Knights | 9.35 | 1.45 | 6.44 | 9.35 | 2.25 | ||||
Clemson Tigers aka Clemson Lady Tigers | 3.1 | 10.26 | 3.32 | 3.1 | 6.78 | ||||
Cleveland State Vikings | 6.63 | 21 | 3.17 | 6.63 | 3.17 | ||||
Coastal Carolina Chanticleers | 5.89 | 4.77 | 1.24 | 5.89 | 3.57 | ||||
Colby Mules | 13.34 | 1.41 | 9.47 | 13.34 | 1.57 | ||||
Colgate Raiders | 8.98 | 21 | 2.34 | 8.98 | 2.34 | ||||
College of Charleston Cougars | 13.42 | 3.23 | 4.15 | 13.42 | 1.56 | ||||
Colorado Buffaloes | 21 | 1.94 | 10.8 | 21 | 1 | ||||
Colorado College Tigers | 21 | 2 | 10.51 | 21 | 1 | ||||
Colorado Mines Orediggers | 13.03 | 2.08 | 6.25 | 13.03 | 1.61 | ||||
Colorado State Rams | 8.88 | 2.51 | 3.54 | 8.88 | 2.36 | ||||
Columbia Lions | 2.46 | 7.95 | 3.23 | 2.46 | 8.53 | ||||
Connecticut Huskies | 19.02 | 4.85 | 3.93 | 19.02 | 1.1 | ||||
Coppin State Eagles | 7.31 | 1.5 | 4.87 | 7.31 | 2.87 | ||||
Cornell Big Red | 6.8 | 15.91 | 2.34 | 6.8 | 3.09 | ||||
Creighton Bluejays | 15.02 | 6.77 | 2.22 | 15.02 | 1.4 | ||||
Cumberland Phoenix aka Cumberland Bulldogs | 8.84 | 21 | 2.37 | 8.84 | 2.37 | ||||
Dartmouth Big Green aka Dartmouth Indians | 6.8 | 21 | 3.09 | 6.8 | 3.09 | ||||
Davidson Wildcats | 21 | 5.88 | 3.57 | 21 | 1 | ||||
Dayton Flyers | 8.78 | 5.55 | 1.58 | 8.78 | 2.39 | ||||
DePaul Blue Demons | 6.38 | 4.85 | 1.32 | 6.38 | 3.29 | ||||
DePauw Tigers | 17.28 | 1.48 | 11.66 | 17.28 | 1.22 | ||||
Delaware Fightin' Blue Hens | 7.67 | 1.45 | 5.29 | 7.67 | 2.74 | ||||
Delaware State Hornets | 4.56 | 2.79 | 1.63 | 4.56 | 4.61 | ||||
Delta State Statesmen | 5.81 | 21 | 3.61 | 5.81 | 3.61 | ||||
Denver Pioneers | 8.81 | 4.69 | 1.88 | 8.81 | 2.38 | ||||
Detroit Titans | 7.14 | 12.95 | 1.81 | 7.14 | 2.94 | ||||
Drake Bulldogs | 10.03 | 2.85 | 3.52 | 10.03 | 2.09 | ||||
Drexel Dragons | 14.65 | 1.58 | 9.3 | 14.65 | 1.43 | ||||
Dubuque Spartans | 12.98 | 2.85 | 4.55 | 12.98 | 1.62 | ||||
Duke Blue Devils aka Trinity Blue and White | 10.13 | 15.13 | 1.49 | 10.13 | 2.07 | ||||
Duquesne Dukes | 16.54 | 6.6 | 2.51 | 16.54 | 1.27 | ||||
Earlham Quakers | X | 10.39 | 10.39 | 2.02 | |||||
East Carolina Pirates | 9.89 | 1.56 | 6.35 | 9.89 | 2.12 | ||||
East Central Tigers | 21 | 3.25 | 6.46 | 21 | 1 | ||||
East Tennessee State Buccaneers aka East Tennessee State Lady Buccaneers | 16.54 | 1.56 | 10.6 | 16.54 | 1.27 | ||||
Eastern Arizona Gila Monsters | X | 15.64 | 15.64 | 1.34 | |||||
Eastern Illinois Panthers | 10.64 | 1.89 | 5.63 | 10.64 | 1.97 | ||||
Eastern Kentucky Colonels | 11.95 | 2.33 | 5.12 | 11.95 | 1.76 | ||||
Eastern Michigan Eagles | 7.12 | 21 | 2.95 | 7.12 | 2.95 | ||||
Eastern New Mexico Greyhounds | 7.12 | 7.1 | 1 | 7.12 | 2.95 | ||||
Eastern Washington Eagles | 8.27 | 21 | 2.54 | 8.27 | 2.54 | ||||
Elon Phoenix | 12.12 | 2.72 | 4.46 | 12.12 | 1.73 | ||||
Emory & Henry Wasps aka Emory and Henry Wasps | 10.65 | 2.13 | 4.99 | 10.65 | 1.97 | ||||
Emory Eagles | 13.34 | 2.76 | 4.83 | 13.34 | 1.57 | ||||
Emporia State Hornets aka Emporia State Lady Hornets | 21 | 3.03 | 6.93 | 21 | 1 | ||||
Erskine Flying Fleet | 8.08 | 1.4 | 5.78 | 8.08 | 2.6 | ||||
Evansville Purple Aces | 11.29 | 2.82 | 4 | 11.29 | 1.86 | ||||
Fairfield Stags | 16.3 | 4.34 | 3.76 | 16.3 | 1.29 | ||||
Fairleigh Dickinson Knights | 7.74 | 9.59 | 1.24 | 7.74 | 2.71 | ||||
Ferris State Bulldogs | 5.81 | 1.51 | 3.84 | 5.81 | 3.62 | ||||
Florida A&M Rattlers | 4.85 | 2.62 | 1.85 | 4.85 | 4.33 | ||||
Florida Atlantic Owls aka FAU Owls | 12.61 | 5.89 | 2.14 | 12.61 | 1.67 | ||||
Florida Gators | 11.93 | 3.53 | 3.38 | 11.93 | 1.76 | ||||
Florida Gulf Coast Eagles | 13.25 | 4.5 | 2.95 | 13.25 | 1.58 | ||||
Florida International Golden Panthers aka Florida International Panthers aka FIU Golden Panthers aka FIU Panthers | 16.56 | 3.26 | 5.08 | 16.56 | 1.27 | ||||
Florida State Seminoles | 9.21 | 1.94 | 4.75 | 9.21 | 2.28 | ||||
Fordham Rams | 8.98 | 1.92 | 4.68 | 8.98 | 2.34 | ||||
Fort Hays State Tigers | 21 | 2.01 | 10.45 | 21 | 1 | ||||
Fort Valley State Wildcats | 11.85 | 2.05 | 5.78 | 11.85 | 1.77 | ||||
Fresno State Bulldogs | 6.04 | 12.95 | 2.14 | 6.04 | 3.48 | ||||
Friends Falcons | 7.48 | 8.46 | 1.13 | 7.48 | 2.81 | ||||
Furman Paladins aka Furman Purple Hurricane aka Furman Hornets | 9.99 | 2.38 | 4.2 | 9.99 | 2.1 | ||||
Gallaudet Bison | 9.8 | 1.46 | 6.71 | 9.8 | 2.14 | ||||
Gardner–Webb Runnin' Bulldogs | 7.5 | 21 | 2.8 | 7.5 | 2.8 | ||||
George Mason Patriots | 7.12 | 1.51 | 4.73 | 7.12 | 2.95 | ||||
George Washington Colonials | 13.26 | 1.45 | 9.12 | 13.27 | 1.58 | ||||
Georgetown Hoyas | 15.43 | 1.86 | 8.28 | 15.43 | 1.36 | ||||
Georgetown Tigers | 21 | 2.94 | 7.15 | 21 | 1 | ||||
Georgia Bulldogs aka Georgia Lady Bulldogs | 4.87 | 14.28 | 2.93 | 4.87 | 4.32 | ||||
Georgia Southern Eagles | 17.62 | 3.63 | 4.86 | 17.62 | 1.19 | ||||
Georgia State Panthers | 9.83 | 5.89 | 1.67 | 9.83 | 2.14 | ||||
Georgia Tech Yellow Jackets aka Georgia Tech Golden Tornado aka Georgia Tech Engineers | 2.74 | 15.34 | 5.6 | 2.74 | 7.67 | ||||
Gonzaga Bulldogs | 12.98 | 5.81 | 2.23 | 12.98 | 1.62 | ||||
Grambling State Tigers | 17.58 | 2.02 | 8.72 | 17.58 | 1.19 | ||||
Grand Canyon Antelopes | 10.23 | 21 | 2.05 | 10.23 | 2.05 | ||||
Grand Valley State Lakers | 10.6 | 21 | 1.98 | 10.6 | 1.98 | ||||
Grantham Talons | X | 8.76 | 12.61 | 1.67 | |||||
Green Bay Phoenix aka UW-Green Bay Phoenix | 7.12 | 5.1 | 1.4 | 7.12 | 2.95 | ||||
Grinnell Pioneers | 16.3 | 4.12 | 3.96 | 16.3 | 1.29 | ||||
Hampton Pirates | 7.74 | 2.61 | 2.97 | 7.74 | 2.71 | ||||
Harding Bisons | 21 | 1.98 | 10.58 | 21 | 1 | ||||
Hardin–Simmons Cowboys | 8.41 | 1.51 | 5.56 | 8.41 | 2.5 | ||||
Hartford Hawks | 5.89 | 21 | 3.57 | 5.89 | 3.57 | ||||
Hartwick Hawks | X | 7.43 | 7.43 | 2.83 | |||||
Harvard Crimson | 7.48 | 16.67 | 2.23 | 7.48 | 2.81 | ||||
Hawaii Rainbow Warriors aka Hawaii Warriors aka Hawaii Rainbows aka Hawaii Rainbow Wahine | 10.78 | 21 | 1.95 | 10.78 | 1.95 | ||||
Hawaii–Hilo Vulcans aka Hawaii-Hilo Vulcans | 5.11 | 21 | 4.11 | 5.11 | 4.11 | ||||
Henderson State Reddies aka Henderson-Brown Reddies | 7.74 | 21 | 2.71 | 7.74 | 2.71 | ||||
High Point Panthers | 15.18 | 3.89 | 3.9 | 15.18 | 1.38 | ||||
Hobart Statesmen | 12.17 | 2.96 | 4.11 | 12.17 | 1.73 | ||||
Hofstra Pride | 10.95 | 1.56 | 7.03 | 10.95 | 1.92 | ||||
Holy Cross Crusaders | 9.4 | 2.14 | 4.4 | 9.4 | 2.23 | ||||
Houston Baptist Huskies | 7.82 | 3.95 | 1.98 | 7.82 | 2.69 | ||||
Houston Cougars | 5.42 | 1.97 | 2.75 | 5.42 | 3.87 | ||||
Howard Bison | 11.76 | 4.64 | 2.53 | 11.76 | 1.79 | ||||
Humboldt State Lumberjacks | 6.72 | 1.56 | 4.31 | 6.72 | 3.12 | ||||
IPFW Mastodons | 10.19 | 2.78 | 3.67 | 10.19 | 2.06 | ||||
IUPUI Jaguars | 10.73 | 2.8 | 3.83 | 10.73 | 1.96 | ||||
Idaho State Bengals | 21 | 2.76 | 7.6 | 21 | 1 | ||||
Idaho Vandals | 20.95 | 3.04 | 6.89 | 20.95 | 1 | ||||
Illinois College Blueboys aka Illinois College Lady Blues | 9.35 | 3.5 | 2.67 | 9.35 | 2.25 | ||||
Illinois Fighting Illini | 3.95 | 14.52 | 3.68 | 3.95 | 5.32 | ||||
Illinois State Redbirds | 5.63 | 21 | 3.73 | 5.63 | 3.73 | ||||
Incarnate Word Cardinals | 5.15 | 21 | 4.08 | 5.15 | 4.08 | ||||
Indiana Hoosiers | 10.73 | 1.43 | 7.51 | 10.73 | 1.96 | ||||
Indiana State Sycamores | 8.38 | 21 | 2.51 | 8.38 | 2.51 | ||||
Iona Gaels | 9.96 | 2.01 | 4.96 | 9.96 | 2.11 | ||||
Iowa Hawkeyes | 21 | 1.47 | 14.27 | 21 | 1 | ||||
Iowa State Cyclones | 7.43 | 1.56 | 4.77 | 7.43 | 2.82 | ||||
Ithaca Bombers | 13.28 | 7.99 | 1.66 | 13.28 | 1.58 | ||||
Jackson State Tigers | 16.05 | 3.36 | 4.78 | 16.05 | 1.31 | ||||
Jacksonville Dolphins | 9.68 | 2.51 | 3.85 | 9.68 | 2.17 | ||||
Jacksonville State Gamecocks | 5.89 | 21 | 3.57 | 5.89 | 3.57 | ||||
James Madison Dukes | 13.24 | 2 | 6.62 | 13.24 | 1.59 | ||||
Johns Hopkins Blue Jays | 21 | 2.44 | 8.62 | 21 | 1 | ||||
Johnson C. Smith Golden Bulls | 13.91 | 1.48 | 9.39 | 13.91 | 1.51 | ||||
Kansas Jayhawks | 7.28 | 4.73 | 1.54 | 7.28 | 2.89 | ||||
Kansas State Wildcats aka Kansas State Aggies | 10.45 | 2.41 | 4.34 | 10.45 | 2.01 | ||||
Kansas Wesleyan Coyotes | 9.99 | 1.56 | 6.4 | 9.99 | 2.1 | ||||
Kennesaw State Owls | 21 | 1.59 | 13.17 | 21 | 1 | ||||
Kent State Golden Flashes | 14.37 | 2.03 | 7.06 | 14.37 | 1.46 | ||||
Kentucky Wildcats aka Kentucky State College Wildcats | 10.6 | 1.66 | 6.38 | 10.6 | 1.98 | ||||
La Salle Explorers | 13.46 | 1.66 | 8.1 | 13.46 | 1.56 | ||||
Lafayette Leopards | 9.28 | 21 | 2.26 | 9.28 | 2.26 | ||||
Lake Superior State Lakers | 7.66 | 1.59 | 4.81 | 7.66 | 2.74 | ||||
Lamar Cardinals aka Lamar Lady Cardinals | 6.09 | 16.3 | 2.68 | 6.09 | 3.45 | ||||
Langston Lions | 11.84 | 3.09 | 3.83 | 11.84 | 1.77 | ||||
Lehigh Mountain Hawks | 12.92 | 2.29 | 5.63 | 12.92 | 1.63 | ||||
Liberty Flames aka Liberty Lady Flames | 8.92 | 15.13 | 1.7 | 8.92 | 2.35 | ||||
Lincoln Blue Tigers | 15.31 | 3.32 | 4.61 | 15.31 | 1.37 | ||||
Lindenwood Lions aka Lindenwood Lady Lions | 21 | 2 | 10.5 | 21 | 1 | ||||
Lipscomb Bisons aka Lipscomb Lady Bisons | 14.44 | 1.98 | 7.29 | 14.44 | 1.45 | ||||
Long Beach State 49ers aka Long Beach State Dirtbags | 21 | 1.57 | 13.35 | 21 | 1 | ||||
Long Island Blackbirds aka LIU Brooklyn Blackbirds | 16.3 | 1.73 | 9.42 | 16.3 | 1.29 | ||||
Longwood Lancers | 16.54 | 2.58 | 6.41 | 16.54 | 1.27 | ||||
Louisiana State Tigers aka LSU Lady Tigers aka LSU Tigers | 12.16 | 1.48 | 8.23 | 12.16 | 1.73 | ||||
Louisiana Tech Bulldogs | 11.8 | 4.76 | 2.48 | 11.8 | 1.78 | ||||
Louisiana Tech Lady Techsters | 2.97 | 4.72 | 1.59 | 2.97 | 7.08 | ||||
Louisiana–Lafayette Ragin' Cajuns aka Louisiana-Lafayette Ragin' Cajuns aka Southwestern Louisiana Bulldogs aka Louisiana Ragin' Cajuns aka Southwestern Louisiana Ragin' Cajuns | 5.56 | 20.53 | 3.69 | 5.56 | 3.77 | ||||
Louisiana–Monroe Warhawks aka Northeast Louisiana State Indians aka Louisiana–Monroe Indians aka Louisiana-Monroe Indians aka Northeast Louisiana Indians aka ULM Warhawks aka Louisiana-Monroe Warhawks | 9.07 | 2.76 | 3.29 | 9.07 | 2.31 | ||||
Louisville Cardinals | 7.56 | 21 | 2.78 | 7.56 | 2.78 | ||||
Lourdes Gray Wolves | 3.09 | 21 | 6.79 | 3.09 | 6.79 | ||||
Loyola Greyhounds | 6.71 | 1.64 | 4.09 | 6.71 | 3.13 | ||||
Loyola Marymount Lions | 8.98 | 15.59 | 1.74 | 8.98 | 2.34 | ||||
Loyola Ramblers | 12.95 | 2.13 | 6.08 | 12.95 | 1.62 | ||||
MIT Engineers | 4.13 | 1.88 | 2.2 | 7.49 | 2.8 | ||||
Maine Black Bears | 12.83 | 1.5 | 8.56 | 12.83 | 1.64 | ||||
Manhattan Jaspers aka Manhattan Lady Jaspers | 6.21 | 3.1 | 2 | 6.21 | 3.38 | ||||
Manitoba Bisons | 6.36 | 1.4 | 4.53 | 6.36 | 3.3 | ||||
Marist Red Foxes | 5.88 | 16.3 | 2.77 | 5.88 | 3.57 | ||||
Marquette Golden Eagles aka Marquette Golden Avalanche aka Marquette Warriors | 12.61 | 1.51 | 8.34 | 12.61 | 1.67 | ||||
Marshall Thundering Herd | 3.89 | 16.3 | 4.19 | 3.89 | 5.4 | ||||
Maryland Eastern Shore Hawks aka UMES Hawks | 9.34 | 3.33 | 2.8 | 9.34 | 2.25 | ||||
Maryland Terrapins | 3.92 | 13.98 | 3.57 | 5.88 | 3.57 | ||||
McGill Redmen | X | 4 | 4 | 5.25 | |||||
McNeese State Cowboys aka McNeese State Cowgirls | 7.84 | 1.45 | 5.4 | 7.84 | 2.68 | ||||
McPherson Bulldogs | 5.89 | 21 | 3.57 | 5.89 | 3.57 | ||||
Memphis Tigers aka Memphis State Tigers | 11.81 | 3.39 | 3.48 | 11.81 | 1.78 | ||||
Mercer Bears aka Mercer Baptists | 21 | 4.39 | 4.78 | 21 | 1 | ||||
Mercyhurst Lakers | 7.12 | 12.61 | 1.77 | 7.12 | 2.95 | ||||
Merrimack Warriors | 18.68 | 1.42 | 13.15 | 18.68 | 1.12 | ||||
Metro State Roadrunners | 9.92 | 5.42 | 1.83 | 9.92 | 2.12 | ||||
Miami Hurricanes | 9.59 | 2.87 | 3.34 | 9.59 | 2.19 | ||||
Miami RedHawks | 6.53 | 21 | 3.21 | 6.53 | 3.21 | ||||
Michigan State Spartans aka Michigan Agricultural Aggies | 10.75 | 2.62 | 4.1 | 10.75 | 1.95 | ||||
Michigan Tech Huskies | 21 | 1.49 | 14.08 | 21 | 1 | ||||
Michigan Wolverines | 15.06 | 1.52 | 9.89 | 15.06 | 1.39 | ||||
Middle Tennessee State Blue Raiders aka Middle Tennessee Blue Raiders | 5.57 | 16.3 | 2.93 | 5.57 | 3.77 | ||||
Midwestern State Mustangs | 8.98 | 2.05 | 4.38 | 8.98 | 2.34 | ||||
Millsaps Majors | 15.76 | 1.61 | 9.81 | 15.76 | 1.33 | ||||
Milwaukee Panthers | 21 | 1.68 | 12.53 | 21 | 1 | ||||
Minnesota Golden Gophers | 11.4 | 1.51 | 7.57 | 11.4 | 1.84 | ||||
Minnesota Morris Cougars | 9.26 | 2.36 | 3.92 | 9.26 | 2.27 | ||||
Minnesota State Mavericks aka MSU-Mankato Mavericks aka Minnesota State–Mankato Mavericks aka Mankato State Mavericks | 14.79 | 1.31 | 11.31 | 14.79 | 1.42 | ||||
Minnesota–Duluth Bulldogs | 11.4 | 1.51 | 7.57 | 11.4 | 1.84 | ||||
Minot State Beavers | 7.34 | 5.81 | 1.26 | 7.34 | 2.86 | ||||
Mississippi College Choctaws | 13.46 | 2.01 | 6.7 | 13.46 | 1.56 | ||||
Mississippi Rebels aka Mississippi Flood aka Ole Miss Rebels | 14.52 | 5.88 | 2.47 | 14.52 | 1.45 | ||||
Mississippi State Bulldogs aka Mississippi State Maroons aka Mississippi A&M Aggies | X | 13.42 | 13.42 | 1.56 | |||||
Mississippi Valley State Delta Devils | 6.72 | 5.88 | 1.14 | 6.72 | 3.12 | ||||
Missouri S&T Miners | 5.48 | 2.16 | 2.54 | 5.48 | 3.83 | ||||
Missouri Southern Lions | 6.82 | 1.52 | 4.5 | 6.82 | 3.08 | ||||
Missouri State Bears aka Missouri State Lady Bears | 14.19 | 18.56 | 1.31 | 14.19 | 1.48 | ||||
Missouri Tigers | 14.28 | 2.79 | 5.12 | 14.28 | 1.47 | ||||
Missouri Western Griffons | 16.3 | 1.62 | 10.04 | 16.3 | 1.29 | ||||
Monmouth Hawks | 16.54 | 2.37 | 6.99 | 16.54 | 1.27 | ||||
Montana Grizzlies aka Montana Lady Griz | 14.06 | 3.29 | 4.28 | 14.06 | 1.49 | ||||
Montana State Bobcats | 15.47 | 3.2 | 4.83 | 15.47 | 1.36 | ||||
Morehead State Eagles | 6.79 | 1.48 | 4.58 | 6.79 | 3.09 | ||||
Morgan State Bears | 9.65 | 2.75 | 3.51 | 9.65 | 2.18 | ||||
Mount St. Mary's Mountaineers | 12.94 | 4.53 | 2.86 | 12.94 | 1.62 | ||||
Mount Union Purple Raiders | X | 11.99 | 11.99 | 1.75 | |||||
Murray State Racers aka Murray State Thoroughbreds | 16.14 | 2.01 | 8.05 | 16.14 | 1.3 | ||||
NJIT Highlanders | 5.89 | 16.39 | 2.78 | 5.89 | 3.57 | ||||
NYIT Bears | 10.5 | 4.89 | 2.15 | 2 | 10.5 | ||||
NYU Violets aka New York University Violets | X | 11.6 | 11.6 | 1.81 | |||||
Navy Midshipmen | 15.47 | 2 | 7.72 | 15.47 | 1.36 | ||||
Nebraska Cornhuskers | 4.52 | 18.88 | 4.17 | 4.64 | 4.52 | ||||
Nebraska–Kearney Lopers | 11.92 | 2.8 | 4.25 | 11.92 | 1.76 | ||||
Nevada Wolf Pack aka Nevada Sagebrushers | 12.61 | 2.85 | 4.43 | 12.61 | 1.67 | ||||
New Hampshire Wildcats | 10.95 | 2.38 | 4.6 | 10.95 | 1.92 | ||||
New Mexico Lobos | 6.67 | 1.69 | 3.94 | 6.67 | 3.15 | ||||
New Mexico State Aggies | 9.37 | 21 | 2.24 | 9.37 | 2.24 | ||||
New Orleans Privateers aka UNO Privateers | 6.74 | 2.38 | 2.84 | 6.74 | 3.12 | ||||
Niagara Purple Eagles | 9.99 | 1.67 | 5.96 | 9.99 | 2.1 | ||||
Nicholls State Colonels | 7.5 | 3.68 | 2.04 | 7.5 | 2.8 | ||||
Norfolk State Spartans | 5.25 | 1.95 | 2.69 | 5.25 | 4 | ||||
North Alabama Lions | 13.23 | 2.34 | 5.66 | 13.23 | 1.59 | ||||
North Carolina A&T Aggies | 9.51 | 1.73 | 5.5 | 9.51 | 2.21 | ||||
North Carolina Central Eagles | X | 8.54 | 8.54 | 2.46 | |||||
North Carolina State Wolfpack aka North Carolina A&M Aggies aka NC State Wolfpack | 5.89 | 21 | 3.57 | 5.89 | 3.57 | ||||
North Carolina Tar Heels | 2.35 | 14.52 | 6.17 | 2.35 | 8.92 | ||||
North Dakota Fighting Hawks aka North Dakota Fighting Sioux aka North Dakota | 3.68 | 21 | 5.71 | 3.68 | 5.71 | ||||
North Dakota State Bison | 8.71 | 1.55 | 5.62 | 8.71 | 2.41 | ||||
North Florida Ospreys | 14.34 | 1.41 | 10.16 | 14.34 | 1.46 | ||||
North Texas Mean Green aka North Texas Eagles | 4.75 | 16.3 | 3.43 | 4.75 | 4.42 | ||||
Northeastern Huskies | 5.89 | 21 | 3.57 | 5.89 | 3.57 | ||||
Northeastern State RiverHawks | 8.53 | 2.85 | 2.99 | 8.53 | 2.46 | ||||
Northern Arizona Lumberjacks | 12.48 | 1.51 | 8.25 | 12.48 | 1.68 | ||||
Northern Colorado Bears | 11.44 | 1.89 | 6.06 | 11.44 | 1.84 | ||||
Northern Illinois Huskies aka NIU Huskies | 5.89 | 21 | 3.57 | 5.89 | 3.57 | ||||
Northern Iowa Panthers | 13.05 | 2.05 | 6.37 | 13.05 | 1.61 | ||||
Northern Kentucky Norse | 21 | 1.56 | 13.46 | 21 | 1 | ||||
Northern Michigan Wildcats | 9.1 | 1.59 | 5.71 | 9.1 | 2.31 | ||||
Northwest Missouri State Bearcats | 6.62 | 1.92 | 3.44 | 6.62 | 3.17 | ||||
Northwestern Oklahoma State Rangers | 21 | 5.76 | 3.65 | 21 | 1 | ||||
Northwestern State Demons aka Northwestern State Lady Demons | 8.41 | 2.94 | 2.86 | 8.41 | 2.5 | ||||
Northwestern Wildcats | 10.56 | 1.97 | 5.36 | 10.56 | 1.99 | ||||
Notre Dame Fighting Irish | 15.79 | 2.65 | 5.95 | 15.79 | 1.33 | ||||
Nova Southeastern Sharks | 10.57 | 5.27 | 2.01 | 10.57 | 1.99 | ||||
Oakland Golden Grizzlies | 21 | 2.72 | 7.72 | 21 | 1 | ||||
Oglethorpe Stormy Petrels | 21 | 1.35 | 15.59 | 21 | 1 | ||||
Ohio Bobcats | 6.71 | 1.79 | 3.75 | 6.71 | 3.13 | ||||
Ohio State Buckeyes | 6.75 | 5.74 | 1.17 | 6.75 | 3.11 | ||||
Oklahoma Baptist Bison | 7.64 | 1.86 | 4.1 | 7.64 | 2.75 | ||||
Oklahoma Christian Eagles | 13.42 | 1.61 | 8.36 | 13.42 | 1.56 | ||||
Oklahoma City Stars | 8.91 | 21 | 2.36 | 8.91 | 2.36 | ||||
Oklahoma Sooners | 9.96 | 1.06 | 9.35 | 9.96 | 2.11 | ||||
Oklahoma State Cowboys aka Oklahoma A&M Aggies aka Oklahoma State Cowgirls | 3.77 | 21 | 5.57 | 3.77 | 5.57 | ||||
Oklahoma Wesleyan Eagles | 16.39 | 7.74 | 2.12 | 16.39 | 1.28 | ||||
Old Dominion Monarchs aka Old Dominion Lady Monarchs | 9.22 | 3.34 | 2.76 | 9.22 | 2.28 | ||||
Omaha Mavericks aka Nebraska–Omaha Mavericks aka UNO Mavericks | 21 | 5.19 | 4.05 | 21 | 1 | ||||
Oral Roberts Golden Eagles | 13.33 | 1.97 | 6.75 | 13.33 | 1.58 | ||||
Oregon Ducks aka Oregon Webfoots | 7.44 | 1.31 | 5.67 | 7.44 | 2.82 | ||||
Oregon State Beavers aka Oregon Agricultural Aggies | 21 | 3.1 | 6.78 | 21 | 1 | ||||
Ottawa Braves | 16.3 | 2.01 | 8.11 | 16.3 | 1.29 | ||||
Ouachita Baptist Tigers | 10.2 | 1.57 | 6.49 | 10.2 | 2.06 | ||||
Pacific Tigers | 21 | 3.84 | 5.48 | 21 | 1 | ||||
Penn Quakers aka Pennsylvania Quakers | 15.57 | 8.92 | 1.75 | 15.57 | 1.35 | ||||
Penn State Nittany Lions aka Penn State Lady Lions | X | 13.53 | 13.53 | 1.55 | |||||
Pepperdine Waves | 15.43 | 2.9 | 5.33 | 15.43 | 1.36 | ||||
Peru State Bobcats | X | 3.83 | 3.83 | 5.48 | |||||
Pittsburg State Gorillas | 5.74 | 1.47 | 3.9 | 5.74 | 3.66 | ||||
Pittsburgh Panthers aka Pitt Panthers | 13.96 | 1.95 | 7.15 | 13.96 | 1.5 | ||||
Plymouth State Panthers | 8.89 | 21 | 2.36 | 8.89 | 2.36 | ||||
Point Skyhawks | 10.43 | 1.55 | 6.7 | 10.43 | 2.01 | ||||
Portland Pilots | 14.51 | 4.9 | 2.96 | 14.51 | 1.45 | ||||
Portland State Vikings | 10.59 | 2.3 | 4.6 | 10.59 | 1.98 | ||||
Prairie View Panthers aka Prairie View A&M Panthers | 15.76 | 1.51 | 10.46 | 15.76 | 1.33 | ||||
Presbyterian Blue Hose | 6.47 | 7.74 | 1.2 | 6.47 | 3.25 | ||||
Princeton Tigers | 16.3 | 2.91 | 5.6 | 16.3 | 1.29 | ||||
Providence Friars | 21 | 3.34 | 6.29 | 21 | 1 | ||||
Purdue Boilermakers | 21 | 1.94 | 10.84 | 21 | 1 | ||||
Quinnipiac Bobcats | 15.79 | 3.32 | 4.75 | 15.79 | 1.33 | ||||
RIT Tigers | 1.82 | 7.06 | 3.88 | 11.55 | 1.82 | ||||
RPI Engineers aka Rensselaer Engineers | 4.68 | 15.91 | 3.4 | 4.68 | 4.49 | ||||
Radford Highlanders | 6.34 | 11.14 | 1.76 | 6.34 | 3.31 | ||||
Regina Rams | 9.73 | 1.55 | 6.28 | 9.73 | 2.16 | ||||
Rhode Island Rams aka University of Rhode Island Rams | 2.29 | 16.05 | 7.01 | 2.29 | 9.17 | ||||
Rice Owls | 14.42 | 6.31 | 2.28 | 14.42 | 1.46 | ||||
Richmond Spiders | 17.62 | 8.92 | 1.98 | 17.62 | 1.19 | ||||
Rider Broncs | 8.18 | 5.07 | 1.61 | 8.18 | 2.57 | ||||
Robert Morris Colonials aka RMU Colonials | 15.31 | 7.5 | 2.04 | 15.31 | 1.37 | ||||
Rockhurst Hawks | X | 7.2 | 7.2 | 2.92 | |||||
Rutgers Scarlet Knights | 5.81 | 21 | 3.62 | 5.81 | 3.62 | ||||
SIU Edwardsville Cougars | 5.89 | 21 | 3.57 | 5.89 | 3.57 | ||||
Sacramento State Hornets | 12.97 | 2.51 | 5.16 | 12.97 | 1.62 | ||||
Sacred Heart Pioneers | 6.6 | 15.13 | 2.29 | 6.6 | 3.18 | ||||
Saginaw Valley State Cardinals | 8.92 | 12.3 | 1.38 | 8.92 | 2.35 | ||||
Saint Francis Red Flash | 6.2 | 21 | 3.39 | 6.2 | 3.39 | ||||
Saint Joseph's Hawks | 8.48 | 8.26 | 1.03 | 8.48 | 2.48 | ||||
Saint Louis Billikens | 9.5 | 1.66 | 5.72 | 9.5 | 2.21 | ||||
Saint Mary Spires | 15.79 | 1.46 | 10.81 | 15.79 | 1.33 | ||||
Saint Mary's Gaels | 13.14 | 5.32 | 2.47 | 13.14 | 1.6 | ||||
Saint Peter's Peacocks aka Saint Peter's Peahens | 14.28 | 4.89 | 2.92 | 14.28 | 1.47 | ||||
Sam Houston State Bearkats | 8.91 | 2.37 | 3.75 | 8.91 | 2.36 | ||||
Samford Bulldogs aka Howard Bulldogs | 15.29 | 7.09 | 2.16 | 15.29 | 1.37 | ||||
San Diego State Aztecs | 6.04 | 21 | 3.48 | 6.04 | 3.48 | ||||
San Diego Toreros | 11.29 | 2.04 | 5.54 | 11.29 | 1.86 | ||||
San Francisco Dons | 9 | 1.7 | 5.28 | 9 | 2.33 | ||||
San Francisco State Gators | 9.42 | 1.4 | 6.72 | 9.42 | 2.23 | ||||
San Jose State Spartans aka San José State Spartans | 7.44 | 2.11 | 3.53 | 7.44 | 2.82 | ||||
Santa Clara Broncos | 6.99 | 21 | 3 | 6.99 | 3 | ||||
Saskatchewan Huskies | X | 9.6 | 9.6 | 2.19 | |||||
Savannah State Lady Tigers aka Savannah State Tigers | 4.31 | 12.54 | 2.91 | 4.31 | 4.87 | ||||
Seattle Redhawks | 7.75 | 21 | 2.71 | 7.75 | 2.71 | ||||
Seton Hall Pirates | 9.62 | 3.34 | 2.88 | 9.62 | 2.18 | ||||
Sewanee Tigers | 9.99 | 1.73 | 5.77 | 9.99 | 2.1 | ||||
Siena Saints | 6.93 | 1.62 | 4.28 | 6.93 | 3.03 | ||||
Simon Fraser Clan | 13.75 | 6.04 | 2.28 | 13.75 | 1.53 | ||||
South Alabama Jaguars | 15.47 | 6.28 | 2.46 | 15.47 | 1.36 | ||||
South Carolina Gamecocks | 12.12 | 21 | 1.73 | 12.12 | 1.73 | ||||
South Carolina State Bulldogs | 7.3 | 12.61 | 1.73 | 7.3 | 2.88 | ||||
South Dakota Coyotes | 7.56 | 21 | 2.78 | 7.56 | 2.78 | ||||
South Dakota State Jackrabbits | 10.69 | 1.46 | 7.32 | 10.69 | 1.96 | ||||
South Florida Bulls | 6.93 | 1.75 | 3.95 | 6.93 | 3.03 | ||||
Southeast Missouri State Redhawks | 5.88 | 21 | 3.57 | 5.88 | 3.57 | ||||
Southeastern Louisiana Lions aka Southeastern Louisiana Lady Lions | 7.34 | 2.05 | 3.58 | 7.34 | 2.86 | ||||
Southeastern Oklahoma State Savage Storm | 10.6 | 1.35 | 7.87 | 10.6 | 1.98 | ||||
Southern Arkansas Muleriders | 9.5 | 1.46 | 6.5 | 9.5 | 2.21 | ||||
Southern Connecticut State Owls | X | 14.22 | 14.22 | 1.48 | |||||
Southern Illinois Salukis | 13.42 | 21 | 1.56 | 13.42 | 1.56 | ||||
Southern Jaguars aka Southern University Jaguars aka Southern Lady Jaguars | 11.85 | 1.56 | 7.59 | 11.85 | 1.77 | ||||
Southern Methodist University Mustangs aka SMU Mustangs | 6.01 | 9.83 | 1.64 | 6.01 | 3.5 | ||||
Southern Miss Golden Eagles aka Southern Miss Lady Eagles | 21 | 1.56 | 13.48 | 21 | 1 | ||||
Southern Nazarene Crimson Storm | 13.22 | 21 | 1.59 | 13.22 | 1.59 | ||||
Southern Utah Thunderbirds | 6.05 | 21 | 3.47 | 6.05 | 3.47 | ||||
Southwest Baptist Bearcats | 11.6 | 1.72 | 6.74 | 11.6 | 1.81 | ||||
Southwest Minnesota State Mustangs | 16.43 | 3.03 | 5.42 | 16.43 | 1.28 | ||||
Southwestern Moundbuilders | 7.2 | 21 | 2.92 | 7.2 | 2.92 | ||||
Southwestern Oklahoma State Bulldogs | 12.12 | 3.43 | 3.54 | 12.12 | 1.73 | ||||
St. Bonaventure Bonnies | 12.58 | 1.75 | 7.18 | 12.58 | 1.67 | ||||
St. Cloud State Huskies | 5.61 | 21 | 3.75 | 5.61 | 3.75 | ||||
St. Francis Brooklyn Terriers | 9.85 | 5.63 | 1.75 | 9.85 | 2.13 | ||||
St. John's Red Storm | 5.58 | 17.37 | 3.11 | 5.58 | 3.77 | ||||
St. Lawrence Saints | X | 6.89 | 6.89 | 3.05 | |||||
Stanford Cardinal aka Stanford aka Stanford Indians | 9.4 | 2.13 | 4.41 | 9.4 | 2.23 | ||||
Stephen F. Austin Lumberjacks aka Stephen F. Austin Ladyjacks | 9.33 | 2.1 | 4.45 | 9.33 | 2.25 | ||||
Sterling Warriors | 7.6 | 16.54 | 2.18 | 7.6 | 2.76 | ||||
Stetson Hatters | 6.93 | 21 | 3.03 | 6.93 | 3.03 | ||||
Stillman Tigers | 17.62 | 1.83 | 9.65 | 17.62 | 1.19 | ||||
Stony Brook Seawolves | 8.92 | 9.52 | 1.07 | 8.92 | 2.35 | ||||
Syracuse Orange aka Syracuse Orangemen | 4.52 | 16.83 | 3.73 | 4.52 | 4.65 | ||||
TCU Horned Frogs | 12.13 | 2.38 | 5.1 | 12.13 | 1.73 | ||||
Tabor Bluejays | 12.98 | 1.5 | 8.64 | 12.98 | 1.62 | ||||
Tarleton State Texans aka Tarleton State TexAnns | 10.43 | 21 | 2.01 | 10.43 | 2.01 | ||||
Temple Owls | 8.74 | 15.91 | 1.82 | 8.74 | 2.4 | ||||
Tennessee State Tigers aka Tennessee State Lady Tigers | 7.67 | 5.23 | 1.47 | 7.67 | 2.74 | ||||
Tennessee Tech Golden Eagles | 10.37 | 1.51 | 6.86 | 10.37 | 2.02 | ||||
Tennessee Volunteers aka Tennessee Lady Volunteers | 8.45 | 21 | 2.49 | 2.49 | 8.45 | ||||
Tennessee–Martin Skyhawks aka Tennessee-Martin Skyhawks | 15.29 | 2.63 | 5.82 | 15.29 | 1.37 | ||||
Texas A&M Aggies | X | 15.66 | 15.66 | 1.34 | |||||
Texas A&M–Commerce Lions aka Texas A&M-Commerce Lions | 15.47 | 2.05 | 7.55 | 15.47 | 1.36 | ||||
Texas A&M–Corpus Christi Islanders | 5.61 | 5.12 | 1.1 | 5.61 | 3.75 | ||||
Texas A&M–Kingsville Javelinas | 10.6 | 1.56 | 6.79 | 10.6 | 1.98 | ||||
Texas Longhorns | 4.59 | 13.02 | 2.84 | 4.59 | 4.58 | ||||
Texas Southern Tigers aka Texas Southern Lady Tigers | 10.39 | 2.36 | 4.4 | 10.39 | 2.02 | ||||
Texas State Bobcats | 14.61 | 4.48 | 3.26 | 14.61 | 1.44 | ||||
Texas Tech Red Raiders aka Texas Tech Lady Raiders | 5.89 | 21 | 3.57 | 5.89 | 3.57 | ||||
Texas Woman's Pioneers | 10.16 | 21 | 2.07 | 10.16 | 2.07 | ||||
Texas-Arlington Mavericks aka Texas–Arlington Mavericks aka UT Arlington Mavericks | 6.07 | 2.63 | 2.31 | 6.07 | 3.46 | ||||
Toledo Rockets | 14.3 | 1.49 | 9.59 | 14.3 | 1.47 | ||||
Towson Tigers | 21 | 1.51 | 13.89 | 21 | 1 | ||||
Transylvania Pioneers aka Kentucky University Pioneers | X | 8.92 | 8.92 | 2.35 | |||||
Trinity Tigers | 8.92 | 5.74 | 1.55 | 8.92 | 2.35 | ||||
Troy Trojans | 8.98 | 3.34 | 2.69 | 8.98 | 2.34 | ||||
Truman Bulldogs | 10.24 | 16.3 | 1.59 | 10.24 | 2.05 | ||||
Tufts Jumbos | 12.1 | 3.43 | 3.53 | 12.1 | 1.73 | ||||
Tulane Green Wave aka Tulane Olive and Blue | 14.25 | 3.73 | 3.82 | 14.25 | 1.47 | ||||
Tulsa Golden Hurricane | 12.98 | 5.88 | 2.21 | 12.98 | 1.62 | ||||
Tuskegee Golden Tigers | 11.2 | 1.74 | 6.45 | 11.2 | 1.88 | ||||
UAB Blazers | 6.4 | 1.72 | 3.73 | 6.4 | 3.28 | ||||
UBC Thunderbirds | 6.08 | 1.55 | 3.91 | 6.08 | 3.45 | ||||
UC Davis Aggies | 14.64 | 2.65 | 5.51 | 14.64 | 1.43 | ||||
UC Irvine Anteaters | 15.79 | 1.56 | 10.12 | 15.79 | 1.33 | ||||
UC Riverside Highlanders | 5.23 | 1.99 | 2.63 | 5.23 | 4.02 | ||||
UC San Diego Tritons | 14.18 | 1.5 | 9.45 | 14.18 | 1.48 | ||||
UC Santa Barbara Gauchos aka UCSB Gauchos | 14.86 | 1.79 | 8.28 | 14.86 | 1.41 | ||||
UC Santa Cruz Banana Slugs | 9.42 | 1.85 | 5.1 | 9.42 | 2.23 | ||||
UCF Knights | 21 | 2.62 | 8.02 | 21 | 1 | ||||
UCLA Bruins | 4.82 | 1.79 | 2.69 | 4.82 | 4.35 | ||||
UConn Huskies | X | 19.02 | 19.02 | 1.1 | |||||
UIC Flames | 15.42 | 5.42 | 2.85 | 15.42 | 1.36 | ||||
UMBC Retrievers | 21 | 1.62 | 12.98 | 21 | 1 | ||||
UMKC Kangaroos | 6.38 | 1.55 | 4.1 | 6.38 | 3.29 | ||||
UMSL Tritons | 6.85 | 1.91 | 3.59 | 6.85 | 3.07 | ||||
UMass Lowell River Hawks | 7.58 | 5.38 | 1.41 | 7.58 | 2.77 | ||||
UMass Minutemen aka Massachusetts Minutewomen aka Massachusetts Minutemen aka UMass Minutewomen | 9.42 | 21 | 2.23 | 9.42 | 2.23 | ||||
UNC Asheville Bulldogs | 10.98 | 21 | 1.91 | 10.98 | 1.91 | ||||
UNC Greensboro Spartans | 12.61 | 1.51 | 8.34 | 12.61 | 1.67 | ||||
UNC Wilmington Seahawks | 6.79 | 1.41 | 4.81 | 6.79 | 3.09 | ||||
UNLV Rebels aka UNLV Lady Rebels aka UNLV Runnin' Rebels | 7.29 | 5.74 | 1.27 | 7.29 | 2.88 | ||||
USC Trojans | 8.92 | 1.51 | 5.9 | 8.92 | 2.35 | ||||
USC Upstate Spartans | 6.72 | 21 | 3.12 | 6.72 | 3.12 | ||||
UTEP Miners aka Texas Western Miners | 16.05 | 3.19 | 5.03 | 16.05 | 1.31 | ||||
UTPA Broncs | 9.72 | 2.87 | 3.39 | 9.72 | 2.16 | ||||
UTRGV Vaqueros aka Texas–Rio Grande Valley Vaqueros | 14.34 | 3.57 | 4.01 | 14.34 | 1.46 | ||||
UTSA Roadrunners | 15.79 | 3.37 | 4.68 | 15.79 | 1.33 | ||||
UW–Eau Claire Blugolds | 9.86 | 2 | 4.94 | 9.86 | 2.13 | ||||
Union Dutchmen aka Union Dutchwomen | X | 9.34 | 9.34 | 2.25 | |||||
Utah State Aggies | 15.77 | 2.92 | 5.39 | 15.77 | 1.33 | ||||
Utah Utes | 5.89 | 21 | 3.57 | 5.89 | 3.57 | ||||
Utah Valley Wolverines | 10.98 | 2.47 | 4.44 | 10.98 | 1.91 | ||||
VCU Rams | 21 | 1.71 | 12.28 | 21 | 1 | ||||
VMI Keydets | 7.36 | 1.73 | 4.26 | 7.36 | 2.85 | ||||
Valdosta State Blazers | 5.89 | 21 | 3.57 | 5.89 | 3.57 | ||||
Valparaiso Crusaders | 15.44 | 1.51 | 10.21 | 15.44 | 1.36 | ||||
Vanderbilt Commodores | 21 | 3.85 | 5.46 | 21 | 1 | ||||
Vermont Catamounts | 8.98 | 1.62 | 5.55 | 8.98 | 2.34 | ||||
Villanova Wildcats | 15.47 | 2.38 | 6.5 | 15.47 | 1.36 | ||||
Virginia Cavaliers | 14.94 | 2.95 | 5.06 | 14.94 | 1.41 | ||||
Virginia Tech Hokies aka VPI Fighting Gobblers aka Virginia Tech Fighting Gobblers | 13.42 | 2.94 | 4.57 | 13.42 | 1.56 | ||||
Wagner Seahawks | 11.37 | 1.61 | 7.08 | 11.37 | 1.85 | ||||
Wake Forest Demon Deacons | 21 | 3.82 | 5.5 | 21 | 1 | ||||
Washburn Ichabods | X | 14.69 | 14.69 | 1.43 | |||||
Washington Huskies | 10.22 | 1.47 | 6.94 | 10.22 | 2.06 | ||||
Washington State Cougars | 8.18 | 5.56 | 1.47 | 8.18 | 2.57 | ||||
Washington University Bears aka WUSTL Bears | 7.74 | 5.8 | 1.34 | 7.74 | 2.71 | ||||
Washington and Jefferson Presidents aka Washington & Jefferson Presidents | 7.11 | 21 | 2.95 | 7.11 | 2.95 | ||||
Washington and Lee Generals aka Washington & Lee Generals | X | 10.86 | 10.86 | 1.93 | |||||
Wayne State Warriors | 7.61 | 2.76 | 2.76 | 7.61 | 2.76 | ||||
Weber State Wildcats | 12.27 | 7.94 | 1.54 | 12.27 | 1.71 | ||||
Wesleyan Cardinals | 6.15 | 21 | 3.41 | 6.15 | 3.41 | ||||
West Alabama Tigers | X | 4 | 4 | 5.25 | |||||
West Liberty State Hilltoppers | X | 19.56 | 21 | 1 | |||||
West Texas A&M Buffaloes | 13.47 | 21 | 1.56 | 13.47 | 1.56 | ||||
West Virginia Mountaineers | 14.64 | 2.05 | 7.14 | 14.64 | 1.43 | ||||
Western Carolina Catamounts | 9.81 | 2.75 | 3.57 | 9.81 | 2.14 | ||||
Western Illinois Leathernecks | 8.41 | 1.51 | 5.56 | 8.41 | 2.5 | ||||
Western Kentucky Hilltoppers aka WKU Lady Toppers aka WKU Hilltoppers | 6.87 | 21 | 3.06 | 6.87 | 3.06 | ||||
Western Michigan Broncos | 10.3 | 2.61 | 3.94 | 10.3 | 2.04 | ||||
Western Ontario Mustangs | X | 9.42 | 9.42 | 2.23 | |||||
Western Oregon Wolves | X | 4 | 4 | 5.25 | |||||
Wichita State Shockers aka Fairmount Shockers | 21 | 1.5 | 13.98 | 21 | 1 | ||||
Widener Pride aka Widener Pioneers | 6.87 | 1.54 | 4.45 | 6.87 | 3.06 | ||||
Willamette Bearcats | X | 2.87 | 5.84 | 3.59 | |||||
William & Mary Tribe aka William and Mary Tribe | 8.53 | 1.88 | 4.54 | 8.53 | 2.46 | ||||
William Smith Herons | X | 8.41 | 8.41 | 2.5 | |||||
Williams Ephs | 10.09 | 1.46 | 6.91 | 10.09 | 2.08 | ||||
Windsor Lancers | 13.75 | 1.48 | 9.31 | 13.75 | 1.53 | ||||
Winthrop Eagles | 7.9 | 1.51 | 5.25 | 7.9 | 2.66 | ||||
Wisconsin Badgers | 8.42 | 21 | 2.49 | 8.42 | 2.49 | ||||
Wisconsin–Whitewater Warhawks | 10.38 | 1.9 | 5.45 | 10.38 | 2.02 | ||||
Wofford Terriers | 21 | 4.79 | 4.38 | 21 | 1 | ||||
Wright State Raiders | 6.19 | 2.23 | 2.78 | 6.19 | 3.39 | ||||
Wyoming Cowboys aka Wyoming Cowgirls | 12.24 | 1.59 | 7.68 | 12.24 | 1.72 | ||||
Xavier Musketeers aka Saint Xavier Saints aka St. Xavier Saints | 13.15 | 2.42 | 5.44 | 13.15 | 1.6 | ||||
Yale Bulldogs | X | 12.2 | 12.2 | 1.72 | |||||
York Panthers | 9.16 | 21 | 2.29 | 9.16 | 2.29 | ||||
Youngstown State Penguins | 5.88 | 21 | 3.57 | 5.88 | 3.57 | ||||
Free agent | X | 15.31 | 1.37 | 15.31 | |||||
Retired | X | 15.31 | 1.37 | 15.31 |
--
-- This module implements {{CollegePrimaryHex}}, {{CollegePrimaryStyle}},
-- {{CollegePrimaryColorLink}}, {{CollegeSecondaryHex}},
-- {{CollegeSecondaryStyle}}, {{CollegeSecondaryColorLink}}, and {{NCAA color}}
--
local p = {}
local data_module = "Module:College color/data"
local function stripwhitespace(text)
return text:match("^%s*(.-)%s*$")
end
local function sRGB ( v )
if (v <= 0.03928) then
v = v / 12.92
else
v = math.pow((v+0.055)/1.055, 2.4)
end
return v
end
local function color2lum( origc )
local c = stripwhitespace(origc or ''):lower()
-- remove leading # (if there is one)
c = mw.ustring.match(c, '^[#]*([a-f0-9]*)$')
-- split into rgb
local cs = mw.text.split(c or '', '')
if( #cs == 6 ) then
local R = sRGB( (16*tonumber('0x' .. cs[1]) + tonumber('0x' .. cs[2]))/255 )
local G = sRGB( (16*tonumber('0x' .. cs[3]) + tonumber('0x' .. cs[4]))/255 )
local B = sRGB( (16*tonumber('0x' .. cs[5]) + tonumber('0x' .. cs[6]))/255 )
return 0.2126 * R + 0.7152 * G + 0.0722 * B
elseif ( #cs == 3 ) then
local R = sRGB( (16*tonumber('0x' .. cs[1]) + tonumber('0x' .. cs[1]))/255 )
local G = sRGB( (16*tonumber('0x' .. cs[2]) + tonumber('0x' .. cs[2]))/255 )
local B = sRGB( (16*tonumber('0x' .. cs[3]) + tonumber('0x' .. cs[3]))/255 )
return 0.2126 * R + 0.7152 * G + 0.0722 * B
end
-- failure
error('Invalid hex color ' .. origc, 2)
end
local function remove_sport(team)
team = mw.ustring.gsub(team, "%s*<[Bb][Rr][^<>]*>%s*", ' ');
team = mw.ustring.gsub(team, " [Tt]eam$", '')
team = mw.ustring.gsub(team, " [Bb]asketball$", '')
team = mw.ustring.gsub(team, " [Bb]aseball$", '')
team = mw.ustring.gsub(team, " [Cc]ross [Cc]ountry$", '')
team = mw.ustring.gsub(team, " [Ff]ield [Hh]ockey$", '')
team = mw.ustring.gsub(team, " [Ff]ootball$", '')
team = mw.ustring.gsub(team, " [Gg]olf$", '')
team = mw.ustring.gsub(team, " [Gg]ymnastics$", '')
team = mw.ustring.gsub(team, " [Ii]ce [Hh]ockey$", '')
team = mw.ustring.gsub(team, " [Ll]acrosse$", '')
team = mw.ustring.gsub(team, " [Rr]owing$", '')
team = mw.ustring.gsub(team, " [Ss]ki$", '')
team = mw.ustring.gsub(team, " [Ss]occer$", '')
team = mw.ustring.gsub(team, " [Ss]oftball$", '')
team = mw.ustring.gsub(team, " [Ss]wim$", '')
team = mw.ustring.gsub(team, " [Tt]ennis$", '')
team = mw.ustring.gsub(team, " [Tt]rack [Aa]nd [Ff]ield$", '')
team = mw.ustring.gsub(team, " [Vv]olleyball$", '')
team = mw.ustring.gsub(team, " [Ww]restling$", '')
team = mw.ustring.gsub(team, " [Ww]omen's$", '')
team = mw.ustring.gsub(team, " [Mm]en's$", '')
return team
end
local function get_colors(team, unknown)
team = stripwhitespace(team or '')
unknown = unknown or {"DCDCDC", "000000"}
local use_default = {
[""] = 1,
["retired"] = 1,
["free agent"] = 1,
}
local colors = nil
if ( team and use_default[team:lower()] ) then
colors = {"DCDCDC", "000000"}
else
local all_colors = mw.loadData(data_module)
colors = all_colors[team]
if ( colors and type(colors) == 'string' ) then
colors = all_colors[colors]
end
end
return colors or unknown
end
local function team_color(team, num, num2)
local colors = get_colors(team, nil)
num = tonumber(num:match('[1-3]') or '0')
num2 = tonumber(num2:match('[1-3]') or '0')
if ( num ) then
return colors[num] or colors[num2] or ''
else
return ''
end
end
local function team_style1(team, borderwidth, fontcolor)
local colors = get_colors(team, nil)
local color = '#' .. (colors[3] or colors[2] or '')
local style = 'background-color:#' .. (colors[1] or '') .. ';color:' .. (fontcolor or color) .. ';'
-- remove the border if it's nearly white
if ((1 + 0.05)/(color2lum(color) + 0.05) < 1.25) then
borderwidth = '0'
end
borderwidth = tonumber(borderwidth or '2') or 0
if (borderwidth > 0 and color ~= '#FFFFFF') then
style = style .. ' border:' .. borderwidth .. 'px solid ' .. color .. ';'
end
return style
end
local function team_style2(team, borderwidth, fontcolor)
local colors = get_colors(team, nil)
local color = '#' .. (colors[1] or '')
local style = 'background-color:#' .. (colors[3] or colors[2] or '') .. ';color:' .. (fontcolor or color) .. ';'
-- remove the border if it's nearly white
if ((1 + 0.05)/(color2lum(color) + 0.05) < 1.25) then
borderwidth = '0'
end
borderwidth = tonumber(borderwidth or '2') or 0
if (borderwidth > 0 and color ~= '#FFFFFF') then
style = style .. ' border:' .. borderwidth .. 'px solid ' .. color .. ';'
end
return style
end
local function team_header1(team, borderwidth)
local colors = get_colors(team, nil)
-- set the default background
local background = (colors[1] or 'FFFFFF'):upper()
-- set background to white if it's nearly white
if ((1 + 0.05)/(color2lum(background) + 0.05) < 1.25) then
background = 'FFFFFF'
end
-- now pick a font color
local fontcolor = '000000'
-- compute the luminosity of the background
local lum = color2lum(background)
-- compute the contrast with white and black
local wcontrast = (1 + 0.05)/(lum + 0.05)
local bcontrast = (lum + 0.05)/(0 + 0.05)
-- select the text color with the best contrast
if( bcontrast > wcontrast + 1.25 ) then
fontcolor = '000000'
else
fontcolor = 'FFFFFF'
end
local style
if( background == 'FFFFFF' ) then
style = 'background-color:none;color:#' .. fontcolor .. ';'
else
style = 'background-color:#' .. background .. ';color:#' .. fontcolor .. ';'
end
if borderwidth then
borderwidth = tonumber(borderwidth or '2') or 0
local bordercolor = (colors[3] or colors[2] or 'FFFFFF'):upper()
if (borderwidth > 0 and bordercolor ~= 'FFFFFF') then
-- do not add a border if it's nearly white
if ((1 + 0.05)/(color2lum(bordercolor) + 0.05) >= 1.25) then
style = style .. ' border:' .. borderwidth .. 'px solid #' .. bordercolor .. ';'
end
end
end
return style
end
local function team_header2(team)
local colors = get_colors(team, nil)
-- set the default background
local background = (colors[3] or colors[2] or 'FFFFFF'):upper()
-- set background to white if it's nearly white
if ((1 + 0.05)/(color2lum(background) + 0.05) < 1.25) then
background = 'FFFFFF'
end
-- if the background is white, then use the primary background instead
if( background == 'FFFFFF' ) then
background = (colors[1] or 'FFFFFF'):upper()
end
-- now pick a font color
local fontcolor = '000000'
-- compute the luminosity of the background
local lum = color2lum(background)
-- compute the contrast with white and black
local wcontrast = (1 + 0.05)/(lum + 0.05)
local bcontrast = (lum + 0.05)/(0 + 0.05)
-- select the text color with the best contrast
if( bcontrast > wcontrast + 1.25 ) then
fontcolor = '000000'
else
fontcolor = 'FFFFFF'
end
if( background == 'FFFFFF' ) then
return 'background-color:none;color:#' .. fontcolor .. ';'
else
return 'background-color:#' .. background .. ';color:#' .. fontcolor .. ';'
end
end
local function team_table_head(args, team, ctype)
local colors = get_colors(team, nil)
-- set the default background
local background = (ctype == 'p') and
(colors[1] or 'FFFFFF'):upper() or
(colors[3] or colors[2] or 'FFFFFF'):upper()
-- now pick a font color
local fontcolor = '000000'
-- compute the luminosity of the background
local lum = color2lum(background)
-- compute the contrast with white and black
local wcontrast = (1 + 0.05)/(lum + 0.05)
local bcontrast = (lum + 0.05)/(0 + 0.05)
-- select the text color with the best contrast
if( bcontrast > wcontrast + 1.25 ) then
fontcolor = '000000'
else
fontcolor = 'FFFFFF'
end
local s = 'background-color:#' .. background .. ';color:#' .. fontcolor .. ';'
local res = '|-\n'
for i=1,50 do
if( args[i] ~= nil ) then
local cstyle = 'scope="col" style="' .. s .. '"'
if args['col' .. i .. 'span'] ~= nil then
cstyle = cstyle .. ' colspan=' .. args['col' .. i .. 'span']
end
res = res .. '! ' .. cstyle .. ' |' .. args[i] .. '\n'
else
return res .. '|-\n'
end
end
return res .. '<span class="error">Error!</span>\n|-\n'
end
local function team_stripe1(team, borderwidth)
local colors = get_colors(team, nil)
-- set the default scheme
local background = colors[1] or ''
local fontcolor = colors[2] or ''
local bordercolor = (colors[3] or colors[2] or ''):upper()
borderwidth = tonumber(borderwidth or '3') or 0
-- if there is no tertiary color, then pick a font color
if (colors[3] == nil) then
-- compute the luminosity of the background
local lum = color2lum(colors[1])
-- compute the contrast with white and black
local wcontrast = (1 + 0.05)/(lum + 0.05)
local bcontrast = (lum + 0.05)/(0 + 0.05)
-- select the text color with the best contrast
if( bcontrast > wcontrast + 1.25 ) then
fontcolor = '000000'
else
fontcolor = 'FFFFFF'
end
end
-- finally build the style string
local style = ''
if (borderwidth > 0) then
-- use the primary as the border if the border is white or close to white
local bordercontrast = (1 + 0.05)/(color2lum(bordercolor) + 0.05)
if (bordercontrast < 1.25) then
bordercolor = background
local fontcontrast = (1 + 0.05)/(color2lum(colors[2] or 'FFFFFF') + 0.05)
if (fontcontrast < 1.25) then
fontcolor = colors[2] or 'FFFFFF'
end
end
style = style .. ' border:' .. borderwidth .. 'px solid #' .. bordercolor .. ';'
style = style .. ' border-left: none; border-right: none;'
style = style .. ' box-shadow: inset 0 2px 0 #FEFEFE, inset 0 -2px 0 #FEFEFE;'
end
style = 'background-color:#' .. background .. ';color:#' .. fontcolor .. ';' .. style
return style
end
local function team_boxes(frame, team, order, sep)
local function colorbox( h )
local r = mw.html.create('')
r:tag('span')
:css('background-color', '#' .. (h or ''))
:css('border', '1px solid #000')
:wikitext(' ')
return tostring(r)
end
local colors = get_colors(team, 'unknown')
if type(colors) ~= 'table' then
return ''
end
local colorboxes = {}
local colororder = {'1','2','3','4','5'}
local namecheck = 0
if order == '' then
order = colors['order'] or ''
namecheck = 1
end
if order ~= '' then
colororder = mw.text.split(order, '')
end
for k,v in pairs(colororder) do
local i = tonumber(v) or 0
if( namecheck == 0 or colors['name' .. i]) then
if colors[i] then
table.insert(colorboxes,colorbox(colors[i]))
end
end
end
if (#colorboxes > 0) then
return table.concat(colorboxes, sep)
end
return ''
end
local function team_list(frame, team, num1, num2, num3, num4, num5, sep)
local function colorbox( h )
local r = mw.html.create('')
r:tag('span')
:css('background-color', '#' .. (h or ''))
:css('border', '1px solid #000')
:wikitext(' ')
return tostring(r)
end
local colors = get_colors(team, 'unknown')
if type(colors) ~= 'table' then
return ''
end
local nums = {
tonumber(num1:match('[1-5]') or '0') or 0,
tonumber(num2:match('[1-5]') or '0') or 0,
tonumber(num3:match('[1-5]') or '0') or 0,
tonumber(num4:match('[1-5]') or '0') or 0,
tonumber(num5:match('[1-5]') or '0') or 0}
local colorboxes = {}
local colornames = {}
local colororder = {'1','2','3','4','5'}
local order = colors['order'] or ''
if(order ~= '') then
colororder = mw.text.split(order, '')
end
for k,v in pairs(colororder) do
local i = tonumber(v) or 0
if ( nums[i] > 0 ) then
if( colors['name' .. nums[i]]) then
table.insert(colornames,colors['name' .. nums[i]])
table.insert(colorboxes,colorbox(colors[nums[i]] or ''))
end
end
end
local res = ''
if (#colornames == 1) then
res = colornames[1]
elseif (#colornames == 2) then
res = colornames[1] .. ' and ' .. colornames[2]
elseif (#colornames > 2) then
res = colornames[1]
for i=2,#colornames do
if( i < #colornames ) then
res = res .. ', ' .. colornames[i]
else
res = res .. ', and ' .. colornames[i]
end
end
end
if (colors['cite']) then
res = res .. frame:preprocess('<ref>' .. colors['cite'] .. '</ref>')
end
if (colors['ref']) then
res = res .. '[' .. colors['ref'] .. ']'
end
if (colors['ref2']) then
res = res .. '[' .. colors['ref2'] .. ']'
end
if (#colornames > 0) then
res = res .. sep
end
if (#colorboxes > 0) then
res = res .. table.concat(colorboxes, ' ')
end
return res
end
local function team_check(team, unknown)
local colors = get_colors(team, unknown)
if type(colors) == 'table' then
return 'known'
else
return unknown
end
end
function p.color(frame)
local args = (frame.args[1] ~= nil) and frame.args or frame:getParent().args
return team_color(remove_sport(args[1] or ''), args[2] or '', args[3] or '')
end
function p.color1(frame)
local args = (frame.args[1] ~= nil) and frame.args or frame:getParent().args
return team_color(remove_sport(args[1] or ''), '1', '')
end
function p.color32(frame)
local args = (frame.args[1] ~= nil) and frame.args or frame:getParent().args
return team_color(remove_sport(args[1] or ''), '3', '2')
end
function p.style1(frame)
local args = (frame.args[1] ~= nil) and frame.args or frame:getParent().args
return team_style1(remove_sport(args[1] or ''), args['border'], args['color'])
end
function p.style2(frame)
local args = (frame.args[1] ~= nil) and frame.args or frame:getParent().args
return team_style2(remove_sport(args[1] or ''), args['border'], args['color'])
end
function p.header1(frame)
local args = (frame.args[1] ~= nil) and frame.args or frame:getParent().args
return team_header1(remove_sport(args[1] or ''), args['border'])
end
function p.header2(frame)
local args = (frame.args[1] ~= nil) and frame.args or frame:getParent().args
return team_header2(remove_sport(args[1] or ''))
end
function p.tablehead1(frame)
local args = (frame.args[1] ~= nil) and frame.args or frame:getParent().args
return team_table_head(args, remove_sport(args['team'] or ''), 'p')
end
function p.tablehead2(frame)
local args = (frame.args[1] ~= nil) and frame.args or frame:getParent().args
return team_table_head(args, remove_sport(args['team'] or ''), 's')
end
function p.stripe1(frame)
local args = (frame.args[1] ~= nil) and frame.args or frame:getParent().args
return team_stripe1(remove_sport(args[1] or ''), args['border'])
end
function p.boxes(frame)
local args = (frame.args[1] ~= nil) and frame.args or frame:getParent().args
return team_boxes(frame, remove_sport(args[1] or ''),
args['order'] or '', args['sep'] or ' ')
end
function p.list(frame)
local args = (frame.args[1] ~= nil) and frame.args or frame:getParent().args
return team_list(frame, remove_sport(args[1] or ''),
args[2] or '1', args[3] or '2', args[4] or '3', args[5] or '4', args[6] or '5', args['sep'] or '')
end
function p.check(frame)
local args = (frame.args[1] ~= nil) and frame.args or frame:getParent().args
return team_check(remove_sport(args[1] or ''), args[2] or '')
end
function p.check_data()
-- In a sandbox, preview {{#invoke:college color|check_data}}
local results = {'Problems in [[Module:College color/data]]:'}
local function problems(msg)
if msg then
table.insert(results, msg)
elseif results[2] then
return table.concat(results, '\n*')
else
return 'No problems detected.'
end
end
local data = require(data_module)
local keys = {}
for k, _ in pairs(data) do
table.insert(keys, k)
end
table.sort(keys)
for _, key in ipairs(keys) do
local val = data[key]
if not (type(key) == 'string' and (type(val) == 'table' or type(val) == 'string')) then
problems('Invalid type for "' .. tostring(key) .. '"')
end
if type(val) == 'table' then
if not (2 <= #val and #val <= 4) then
problems('Invalid number of numbered parameters for "' .. tostring(key) .. '"')
end
for i, v in ipairs(val) do
if not tostring(v):match('^%x%x%x%x%x%x$') then
problems('Parameter [' .. i .. '] should be a 6-hex-digit color but is "' .. tostring(v) .. '" for "' .. tostring(key) .. '"')
end
end
for k, v in pairs(val) do
if type(k) == 'number' then
if not (1 <= k and k <= 4) then
problems('Invalid numbered parameter for "' .. tostring(key) .. '"')
end
elseif type(k) == 'string' then
if not (
k:match('^name[1-4]$') or
k:match('^cite2?$') or
k:match('^order$')
) then
problems('Unexpected key in table for "' .. tostring(key) .. '"')
end
else
problems('Invalid key type in table for "' .. tostring(key) .. '"')
end
end
elseif data[val] == nil then
problems('Undefined alias for "' .. tostring(key) .. '"')
elseif type(data[val]) ~= 'table' then
problems('Alias is not a table for "' .. tostring(key) .. '"')
end
end
return problems()
end
function p.testtable(frame)
local contrasttable_mod = require("Module:College color/contrast")
return contrasttable_mod._testtable(frame.args)
end
return p