Template:Element color/doc

This template returns the element's legend color, to be used in HTML makeup:
 * &rarr;


 * Some color codes are designed as fontcolor.


 * Some return values are designed as full border settings:
 * &rarr;

Note: the true code returned is like:  (  being "#"). This way, any HTML page will not use "#" to start a numbered list.

Background color options

 * style=background attribute value
 * In code:

Blocks


Theoretical elements (option, usually full color is used. See g-block):

Standard atomic weight

 * msi = most stable isotope
 * msi = most stable isotope
 * msi = most stable isotope
 * msi = most stable isotope
 * msi = most stable isotope

Year and era
Example: Periodic table (discovery periods)

Numbers
Used in: Valence (chemistry) These colors correspond to the Alkali metal–noble gases range

Metalloid cite classes
See Template:Periodic table (list of metalloid lists)

Cell border options

 * style=border attribute value
 * In code:

Font color options

 * style=color attribute value
 * In code:

Setting a default color

 * not a color name &amp;#x23;aabbcc &rarr; (use &amp;#x23; not #)
 * not a color name thistle &rarr;

"Unknown" variants
Usable in mainspace
 * -- Category
 * --SoM
 * -- Occurrence
 * -- Occurrence
 * -- Occurrence
 * -- Occurrence

Wikipedia article quality
Used in: WikiProject Elements/Articles/Periodic Table by Quality

Color names




Colors hardcoded
The same colors, with the same key, may be hardcoded in templates and pages:
 * See
 * (cells, not the legend)
 * (cells, not the legend)

Tracking and warning
Element color ID's used in mainspace (articles) but not in Element color are listed in ; these articles show awarning in preview.

Template data
{	"params": { "1": {			"label": "Color class name", "description": "Predefined class name to return its legend color", "example": "alkali metal", "type": "string", "required": true }	},	"description": "This template returns an RGB color number, for usage in css style setting (style=\"background:#ab23a6\"). For certain input, a css fontcolor or border style is returned." }

Deprecated and experimental parameters
Those not for mainspace are kept in Element color/secondary