Content deleted Content added
tag high-use |
Dissident93 (talk | contribs) |
||
(15 intermediate revisions by 7 users not shown) | |||
Line 1:
{{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",
</pre>
or
<pre>
["TEAM NAME"] = {"HEX1", "HEX2", "HEX3",
</pre>
The trailing comma is very important. Here, <code>HEX1</code>, <code>HEX2</code>, and <code>HEX3</code> are hexadecimal color values. The <code>
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 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><noinclude>
[[Category:Module documentation pages]]
</noinclude>
|