Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Format  





2 Warning  





3 Test table  














Module:Sports color/handball






Cebuano
فارسی

Tiếng Vit
 

Edit links
 









Module
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 

< Module:Sports color

This is the data module used by Module:Sports color. Please test any changes in Module:Sports color/handball/sandbox first.

Format[edit]

Most lines will be of the following form

 ["TEAM NAME"] = {"HEX1", "HEX2", "HEX3", "HEX4"},

The trailing comma is very important. Here, HEX1, HEX2, HEX3, and HEX4 are hexadecimal color values.

To use the same color for more than one team name (e.g., if the team goes by more than one name, but the colors are the same), use

 ["SECONDARY TEAM NAME"] = "TEAM NAME",

where TEAM NAME has already been defined, and SECONDARY TEAM NAME is the alternative spelling, or name.

Warning[edit]

Be very careful when updating this module, as it is used in a large number of articles. Please test any changes in Module:Sports color/handball/sandbox first.

Test table[edit]

Team1234Contrast
1/24/3
D.C. Diplomats THC
Also known as D.C. Diplomats THC (men)
Also known as D.C. Diplomats THC (women)
19.562.22
Northeast Team Handball League8.494.35
Portland Sasquatch THC1.4115.61
USMA-West Point Gold
Also known as USMA-West Point Gold (women)
Also known as USMA-West Point Gold (men)
13.421
USMA-West Point THC
Also known as USMA-West Point Black (women)
Also known as USMA-West Point Black (men)
Also known as USMA-West Point Black
13.421
United States National Handball Team14.254.71
United States Women's National Handball Team14.254.71
Western Team Handball League4.358.49
Free agentXX15.31
RetiredXX15.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.

return {
-- NTHL --
["D.C. Diplomats THC"] = {"FFFF00", "000000", "2C2E46", "B83135"},
  ["D.C. Diplomats THC (men)"] = "D.C. Diplomats THC",
  ["D.C. Diplomats THC (women)"] = "D.C. Diplomats THC",  
["Portland Sasquatch THC"] = {"2A7D33", "2A8FBD", "F6E024", "000000"},  
["USMA-West Point THC"] = {"EDCA88", "000000", "FFFFFF", "000000"},  
  ["USMA-West Point Black"] = "USMA-West Point THC",
  ["USMA-West Point Black (men)"] = "USMA-West Point THC",
  ["USMA-West Point Black (women)"] = "USMA-West Point THC",
["USMA-West Point Gold"] = {"000000", "EDCA88", "000000", "FFFFFF"},   
  ["USMA-West Point Gold (men)"] = "USMA-West Point Gold",
  ["USMA-West Point Gold (women)"] = "USMA-West Point Gold",
["Northeast Team Handball League"] = {"0319F6", "FFFFFF", "F30401", "FFFFFF"},
["Western Team Handball League"] = {"F30401", "FFFFFF", "0319F6", "FFFFFF"},  
-- National teams --
["United States National Handball Team"] = {"002B54", "FFFFFF", "E31937", "FFFFFF"},
["United States Women's National Handball Team"] = {"002B54", "FFFFFF", "E31937", "FFFFFF"},
}

Retrieved from "https://en.wikipedia.org/w/index.php?title=Module:Sports_color/handball&oldid=849557079"

Categories: 
Modules for general use
Sports color modules
 



This page was last edited on 9 July 2018, at 20:22 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki