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.

Font color options

 * style=color attribute value
 * In code:

Cell border options

 * style=border attribute value
 * In code:

Background color options

 * style=background attribute value
 * In code:

Metal–nonmetal categories




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)

Blocks
In period 8, theoretical elements:

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)

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 Category
 * (cells, not the legend)
 * (cells, not the legend)

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