<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://safernicotine.wiki/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Template%3AElement_color%2Fdoc</id>
	<title>Template:Element color/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://safernicotine.wiki/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Template%3AElement_color%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://safernicotine.wiki/mediawiki/index.php?title=Template:Element_color/doc&amp;action=history"/>
	<updated>2026-05-10T12:23:28Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://safernicotine.wiki/mediawiki/index.php?title=Template:Element_color/doc&amp;diff=36519&amp;oldid=prev</id>
		<title>imported&gt;Gonnym at 14:22, 22 December 2021</title>
		<link rel="alternate" type="text/html" href="https://safernicotine.wiki/mediawiki/index.php?title=Template:Element_color/doc&amp;diff=36519&amp;oldid=prev"/>
		<updated>2021-12-22T14:22:26Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
This template returns the element&amp;#039;s legend color, to be used in HTML makeup:&lt;br /&gt;
* {{tlf|Element color|&amp;lt;nowiki&amp;gt;f-block&amp;lt;/nowiki&amp;gt;}} &amp;amp;rarr; &amp;lt;code&amp;gt;{{element color|f-block}}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Some color codes are designed as fontcolor.&lt;br /&gt;
&lt;br /&gt;
* Some return values are designed as full border settings:&lt;br /&gt;
* {{tlf|Element color|&amp;lt;nowiki&amp;gt;Synthetic&amp;lt;/nowiki&amp;gt;}} &amp;amp;rarr; &amp;lt;code&amp;gt;{{element color|synthetic}}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: the true code returned is like: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;amp;amp;#x23;ffc0c0;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;amp;amp;#x23;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; being &amp;quot;#&amp;quot;).&lt;br /&gt;
This way, any HTML page will not use &amp;quot;#&amp;quot; to start a numbered list.&lt;br /&gt;
&lt;br /&gt;
==Background color options==&lt;br /&gt;
:{{code|1=style=background}} &amp;#039;&amp;#039;attribute value&amp;#039;&amp;#039;&lt;br /&gt;
:In code: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;style=&amp;quot;background:{{element color|alkali metals}};&amp;quot;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Blocks===&lt;br /&gt;
* {{Element color/example|s-block}}&lt;br /&gt;
* {{Element color/example|p-block}}&lt;br /&gt;
* {{Element color/example|d-block}}&lt;br /&gt;
* {{Element color/example|f-block}}&lt;br /&gt;
* {{Element color/example|g-block}}&lt;br /&gt;
* {{Element color/example|h-block}}&lt;br /&gt;
* {{Element color/example|i-block}}&lt;br /&gt;
&lt;br /&gt;
Theoretical elements (option, usually full color is used. See g-block):&lt;br /&gt;
* {{Element color/example|s-block (predicted)}}&lt;br /&gt;
* {{Element color/example|p-block (predicted)}}&lt;br /&gt;
* {{Element color/example|d-block (predicted)}}&lt;br /&gt;
* {{Element color/example|f-block (predicted)}}&lt;br /&gt;
* {{Element color/example|g-block (predicted)}}&lt;br /&gt;
&lt;br /&gt;
===Groups===&lt;br /&gt;
* {{Element color/example|group 18|note=noble gases}}&lt;br /&gt;
&lt;br /&gt;
===Categories metal&amp;amp;ndash;metalloid&amp;amp;ndash;nonmetal===&lt;br /&gt;
* {{Element color/example|Metal|note=}}&lt;br /&gt;
* {{Element color/example|Metalloid|note=}}&lt;br /&gt;
* {{Element color/example|Non-metal|note=}}&lt;br /&gt;
&lt;br /&gt;
===Standard atomic weight===&lt;br /&gt;
* {{Element color/example|saw-header}}&lt;br /&gt;
* {{Element color/example|saw}}&lt;br /&gt;
* {{Element color/example|msi-header}}&lt;br /&gt;
* {{Element color/example|msi}}&lt;br /&gt;
:msi = most stable isotope&lt;br /&gt;
&lt;br /&gt;
===Year and era===&lt;br /&gt;
* {{Element color/example|Antiquity to Middle Ages}}&lt;br /&gt;
* {{Element color/example|Before 1800}}&lt;br /&gt;
* {{Element color/example|1800-1849}}&lt;br /&gt;
* {{Element color/example|1850-1899}}&lt;br /&gt;
* {{Element color/example|1900-1949}}&lt;br /&gt;
* {{Element color/example|1950-1999}}&lt;br /&gt;
* {{Element color/example|2000-present}}&lt;br /&gt;
Example: {{tl|Periodic table (discovery periods)}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Numbers===&lt;br /&gt;
Used in: [[Valence (chemistry)#Maximum valences of the elements]]&lt;br /&gt;
These colors correspond to the [[#Alkali metal&amp;amp;ndash;noble gases range|Alkali metal&amp;amp;ndash;noble gases range]]&lt;br /&gt;
* {{Element color/example|0}}&lt;br /&gt;
* {{Element color/example|1}}&lt;br /&gt;
* {{Element color/example|2}}&lt;br /&gt;
* {{Element color/example|3}}&lt;br /&gt;
* {{Element color/example|4}}&lt;br /&gt;
* {{Element color/example|5}}&lt;br /&gt;
* {{Element color/example|6}}&lt;br /&gt;
* {{Element color/example|7}}&lt;br /&gt;
* {{Element color/example|8}}&lt;br /&gt;
* {{Element color/example|9}}&lt;br /&gt;
* {{Element color/example|unknown valence}}&amp;lt;!-- Mt etc. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Metalloid cite classes===&lt;br /&gt;
See [[Template:Periodic table (list of metalloid lists)]]&lt;br /&gt;
* {{Element color/example|Metalloid citeclass 1of4|note=currently: 93%}}&lt;br /&gt;
* {{Element color/example|Metalloid citeclass 2of4|note=currently: 44%}}&lt;br /&gt;
* {{Element color/example|Metalloid citeclass 3of4|note=currently: 24%}}&lt;br /&gt;
* {{Element color/example|Metalloid citeclass 4of4|note=currently: 9%}}&lt;br /&gt;
&lt;br /&gt;
==Cell border options==&lt;br /&gt;
:{{code|1=style=border}} &amp;#039;&amp;#039;attribute value&amp;#039;&amp;#039;&lt;br /&gt;
:In code: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;style=&amp;quot;border:{{element color|synthetic}};&amp;quot;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
===Occurrence (cell border)===&lt;br /&gt;
&lt;br /&gt;
* {{Element color/example|Primordial|attr=border}}&lt;br /&gt;
* {{Element color/example|From decay|note=&amp;quot;Natural radio&amp;quot; deprecated|attr=border}}&lt;br /&gt;
* {{Element color/example|Synthetic|attr=border}}&lt;br /&gt;
* {{Element color/example|Undiscovered|attr=border}}&lt;br /&gt;
* {{Element color/example|None|attr=border}}&lt;br /&gt;
&lt;br /&gt;
==Font color options==&lt;br /&gt;
:{{code|1=style=color}} &amp;#039;&amp;#039;attribute value&amp;#039;&amp;#039;&lt;br /&gt;
:In code: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;style=&amp;quot;color:{{element color|gas}};&amp;quot;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===State of matter (font color)===&lt;br /&gt;
{{hatnote|1=As of January 2021, not used}}&lt;br /&gt;
* {{Element color/example|Solid|attr=color}}&lt;br /&gt;
* {{Element color/example|Liquid|attr=color}}&lt;br /&gt;
* {{Element color/example|Gas|attr=color}}&lt;br /&gt;
* {{Element color/example|Unknown phase|attr=color}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Setting a default color===&lt;br /&gt;
:{{para|1|not a color name}} {{para|default|&amp;amp;amp;#x23;aabbcc}} &amp;amp;rarr; {{Element color|1=not a color name |default=&amp;amp;#x23;aabbcc}} (use &amp;amp;amp;#x23; not #)&lt;br /&gt;
:{{para|1|not a color name}} {{para|default|thistle}} &amp;amp;rarr; {{Element color|1=not a color name |default=thistle}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===&amp;quot;Unknown&amp;quot; variants===&lt;br /&gt;
Usable in mainspace&lt;br /&gt;
* {{Element color/example|Unknown|note=Deprecated, too generic}}&lt;br /&gt;
* {{Element color/example|White}}&lt;br /&gt;
* {{Element color/example|Unknown chemical properties}} -- Category&lt;br /&gt;
* {{Element color/example|Unknown phase|attr=color|Note=Font color}} --SoM&lt;br /&gt;
* {{Element color/example|Undiscovered|attr=border|note=Border}} -- Occurrence&lt;br /&gt;
* {{Element color/example|none|attr=border|note=Border}} -- Occurrence&lt;br /&gt;
&lt;br /&gt;
===Wikipedia article quality===&lt;br /&gt;
Used in: [[Wikipedia:WikiProject Elements/Articles/Periodic Table by Quality]]&lt;br /&gt;
* {{Element color/example|aq-FA}}&lt;br /&gt;
* {{Element color/example|aq-A}}&lt;br /&gt;
* {{Element color/example|aq-GA|note=Formal color is {{code|1=#66ff66}}}}&lt;br /&gt;
* {{Element color/example|aq-B|note=Formal color is {{code|1=#b2ff66}}}}&lt;br /&gt;
* {{Element color/example|aq-C}}&lt;br /&gt;
* {{Element color/example|aq-Start}}&lt;br /&gt;
* {{Element color/example|aq-Stub}}&lt;br /&gt;
&lt;br /&gt;
===Wikipedia article importance===&lt;br /&gt;
* {{Element color/example|imp-Top}}&lt;br /&gt;
* {{Element color/example|imp-High}}&lt;br /&gt;
* {{Element color/example|imp-Mid}}&lt;br /&gt;
* {{Element color/example|imp-Low}}&lt;br /&gt;
* {{Element color/example|imp-???}}&lt;br /&gt;
* {{Element color/example|imp-n/a}}&lt;br /&gt;
&lt;br /&gt;
===Color names===&lt;br /&gt;
* {{Element color/example|Black}}&lt;br /&gt;
* {{Element color/example|White}}&lt;br /&gt;
&lt;br /&gt;
* {{Element color/example|blue}}&lt;br /&gt;
* {{Element color/example|green}}&lt;br /&gt;
* {{Element color/example|red}}&lt;br /&gt;
* {{Element color/example|yellow}}&lt;br /&gt;
&lt;br /&gt;
===Table background===&lt;br /&gt;
* {{Element color/example|table title}}&lt;br /&gt;
* {{Element color/example|table header}}&lt;br /&gt;
* {{Element color/example|table colheader}}&lt;br /&gt;
* {{Element color/example|table mark}}&lt;br /&gt;
* {{Element color/example|table background}}&lt;br /&gt;
* {{Element color/example|table border|attr=border}}&lt;br /&gt;
&lt;br /&gt;
{{Element color/table/overview}}&lt;br /&gt;
&lt;br /&gt;
==Colors hardcoded==&lt;br /&gt;
The same colors, with the same key, may be hardcoded in templates and pages:&lt;br /&gt;
* See {{clc|Category:Pages containing element color directly}}&lt;br /&gt;
* {{tlx|Periodic table (32 columns, micro)/elementcell}}&lt;br /&gt;
* {{tlx|Periodic table (Goldschmidt classification)}} (cells, not the legend)&lt;br /&gt;
* {{tlx|Periodic table (electron configuration lanthanides)}}&lt;br /&gt;
* {{tlx|Infobox element/symbol-to-occurrence/format2}}&lt;br /&gt;
* {{tlx|Infobox element/symbol-to-block/format2}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Tracking and warning==&lt;br /&gt;
Element color ID&amp;#039;s used in mainspace (articles) but &amp;#039;&amp;#039;not&amp;#039;&amp;#039; in {{tl|Element color}} are listed in {{clc|Element color has unknown ID}}; these articles show awarning in preview.&lt;br /&gt;
&lt;br /&gt;
==Template data==&lt;br /&gt;
{{TemplateDataHeader|nolink=1}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;templatedata&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
	&amp;quot;params&amp;quot;: {&lt;br /&gt;
		&amp;quot;1&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Color class name&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Predefined class name to return its legend color&amp;quot;,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;alkali metal&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: true&lt;br /&gt;
		}&lt;br /&gt;
	},&lt;br /&gt;
	&amp;quot;description&amp;quot;: &amp;quot;This template returns an RGB color number, for usage in css style setting (style=\&amp;quot;background:#ab23a6\&amp;quot;). For certain input, a css fontcolor or border style is returned.&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/templatedata&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Deprecated and experimental parameters==&lt;br /&gt;
Those not for mainspace are kept in {{tl|Element color/secondary}}&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* {{tl|element color/secondary}} -- development and deprecated colors etc., should not appear in mainspace.&lt;br /&gt;
* {{tl|element color/example}}&lt;br /&gt;
* {{tl|element cell/overview}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{sandbox other||&lt;br /&gt;
[[Category:Periodic table style and format templates]]&lt;br /&gt;
[[Category:Color templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Gonnym</name></author>
	</entry>
</feed>