Module:College color/data/doc: Difference between revisions

Content deleted Content added
tag high-use
 
(15 intermediate revisions by 7 users not shown)
Line 1:
{{high-use| 50,000+}}
{{Module rating |beta}}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
{{Module rating |beta}}
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. Please test any changes in [[Module:College color/data/sandbox]] first.
{{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", refname1="...", ref2name2="...", cite="...", cite2="..."},
</pre>
or
<pre>
["TEAM NAME"] = {"HEX1", "HEX2", "HEX3", ref name1="...", name3="...", cite="...", ref2cite2="..."},
</pre>
The trailing comma is very important. Here, <code>HEX1</code>, <code>HEX2</code>, and <code>HEX3</code> are hexadecimal color values. The <code>refname1</code>, <code>name2</code>, and <code>ref2name3</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 URLsfull 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
Line 23:
== 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|style=background:#FDFDFD}}
|{{#invoke:College color/contrast|testtable|style=background:#FDFDFD}}
}}
 
Line 50 ⟶ 52:
| > 4.5
|}
 
Normal wiki-text is rendered by common browsers at roughly 9.5 to 10.5&nbsp;pt (12.5 to 14&nbsp;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><noinclude>
[[Category:Module documentation pages]]
</noinclude>