Open main menu
Home
Random
Donate
Recent changes
Special pages
Community portal
Preferences
About Stockhub
Disclaimers
Search
User menu
Talk
Contributions
Create account
Log in
Editing
Module:College color/data/doc
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> {{Module rating |beta}} {{High-use}} This is the data module used by [[Module:College color]]. [[WP:CONTRAST|Color contrast]] should meet [[Web Content Accessibility Guidelines]] (WCAG) 2.0's AAA level when feasible (see {{section link|Wikipedia:Manual of Style/Accessibility#Color}}). Please test any changes in [[Module:College color/data/sandbox]] first. == Format == Most lines will be of the following form <pre> ["TEAM NAME"] = {"HEX1", "HEX2", name1="...", name2="...", cite="...", cite2="..."}, </pre> or <pre> ["TEAM NAME"] = {"HEX1", "HEX2", "HEX3", name1="...", name3="...", cite="...", cite2="..."}, </pre> The trailing comma is very important. Here, <code>HEX1</code>, <code>HEX2</code>, and <code>HEX3</code> are hexadecimal color values. The <code>name1</code>, <code>name2</code>, and <code>name3</code> are to display the names of the school colors in the infoboxes. The <code>cite</code> and <code>cite2</code> parameters are used to supply up to two full citations with a URL for [[WP:V|verification]] of the colors for a school's entry. [[WP:UNSOURCED|Unsourced]] entries that are challenged may be deleted. 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 <pre> ["SECONDARY TEAM NAME"] = "TEAM NAME", </pre> where <code>TEAM NAME</code> has already been defined, and <code>SECONDARY TEAM NAME</code> is the alternative spelling, or name. == Warning == Be very careful when updating this module, as it is used in a large number of articles. Please test any changes in [[Module:College color/data/sandbox]] first. Also, remember to leave the pound sign (#) out of the hex codes when adding or changing colors, as in {{code|dcdcdc}}. Some ''other'' data modules require the pound sign. This module does not require it. == Test table == {{#ifeq:{{SUBPAGENAME}}|sandbox |{{#invoke:College color/contrast|testtable|data=Module:College color/data/sandbox}} |{{#invoke:College color/contrast|testtable}} }} As a guide to selecting foreground and background colors for text, the [http://www.w3.org/TR/WCAG20/#visual-audio-contrast Web Content Accessibility Guidelines 2.0 (guideline 1.4)] classifies contrast ratios for ordinary text as follows: {| class="wikitable" |+ WCAG 2.0 text contrast ratios |- ! scope="col" | Font size ! scope="col" | Not Compliant ! scope="col" | Level AA ! scope="col" | Level AAA |- | Normal | < 4.5 | 4.5 to 7.0 | > 7.0 |- | Large (18 pt or 14 pt bold) | < 3.0 | 3.0 to 4.5 | > 4.5 |} Normal wiki-text is rendered by common browsers at roughly 9.5 to 10.5 pt (12.5 to 14 px), depending on skin. Text would need to be about 180% or 140% bold to qualify as "Large" for [http://www.w3.org/TR/WCAG20/#larger-scaledef WCAG purposes]. {{Sports color templates}} <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox|| <!-- Categories go here and interwikis go in Wikidata. --> [[Category:Sports color modules]] }}</includeonly>
Summary:
Please note that all contributions to Stockhub may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Stockhub:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Code
(
edit
)
Template:High-use
(
edit
)
Template:Module rating
(
edit
)
Template:Section link
(
edit
)
Template:Sports color templates
(
edit
)
Module:College color/contrast
(
edit
)
Module:College color/data
(
edit
)
Module:Color contrast
(
edit
)
Module:Color contrast/colors
(
edit
)