User:Kepler-1229b/Extended prodic table/Color/doc

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


 * &#x2192;


 * Some color codes are designed as fontcolor.


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

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

Year and era


Example: Periodic table (discovery periods)

Numbers
Used in: Valence (chemistry) These colors correspond to the Alkali metal&#x2013;noble gases range



Metalloid cite classes
See Lists of metalloids § Chronological list



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 &#x2192; (use &#x26;#x23; not #)
 * not a color name thistle &#x2192;

"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