Difference between revisions of "Template:Element color/doc"

From blackwiki
Jump to navigation Jump to search
imported>DePiep
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 
<!-- Categories and interwikis go at the bottom of this page. -->
 
<!-- Categories and interwikis go at the bottom of this page. -->
This template in itself is not used. It acts as a container for specific colors:
 
* {{tlx|Element color/Alkali metals}} &rarr; {{code|{{Element color/Alkali metals}}}}<br/>
 
* {{tlx|Element color/Solid}} &rarr; {{code|{{Element color/Liquid}}}}<br/>
 
This color code can be used to set a color in a periodic table.
 
===State of matter===
 
* {{Element color/example|Solid}}
 
* {{Element color/example|Liquid}}
 
* {{Element color/example|Gas}}
 
  
===Alkali metal&ndash;noble gases range===
+
==subpages==
* {{Template:Element color/example|Noble gases}}
+
===state===
* {{Template:Element color/example|Alkali metals}}
+
----
* {{Template:Element color/example|Alkaline earth metals}}
+
*[[:template:Element color/Solid]]
* {{Template:Element color/example|Transition metals}}
+
*[[:template:Element color/Liquid]]
* {{Template:Element color/example|Lanthanoids}}
+
*[[:template:Element color/Gas]]
* {{Template:Element color/example|Post-transition metals|note =Formerly {{code|Poor metals}}}}
+
===categories===
* {{Template:Element color/example|Metalloids}}
+
----
* {{Element color/example|Nonmetals}}
+
====numbers====
* {{Element color/example|Halogens}}
+
(used in [[Valence (chemistry)#Maximum valences of the elements]])
* {{Element color/example|Unknown}}
+
*[[:template:Element color/0]]
* {{Element color/example|Actinoids}}
+
*[[:template:Element color/1]]
* {{Element color/example|Superactinides}}
+
*[[:template:Element color/2]]
* {{Element color/example|Unknown chemical properties}}
+
*[[:template:Element color/3]]
 +
*[[:template:Element color/4]]
 +
*[[:template:Element color/5]]
 +
*[[:template:Element color/6]]
 +
*[[:template:Element color/7]]
 +
*[[:template:Element color/8]]
 +
*[[:template:Element color/9]]
 +
====real====
 +
*[[:template:Element color/Noble gases]]
 +
*[[:template:Element color/Alkali metals]]
 +
*[[:template:Element color/Alkaline earth metals]]
 +
*[[:template:Element color/Transition metals]]
 +
*[[:template:Element color/Lanthanoids]]
 +
*[[:template:Element color/Poor metals]]
 +
*[[:template:Element color/Metalloids]]
 +
*[[:template:Element color/Nonmetals]]
 +
*[[:template:Element color/Halogens]]
 +
*[[:template:Element color/Unknown]]
 +
*[[:template:Element color/Actinoids]]
 +
*[[:template:Element color/Superactinides]]
 +
*[[:template:Element color/Unknown chemical properties]]
  
===Years and eras===
+
===wikipedia===
* {{Element color/example|Antiquity to Middle Ages}}
+
----
* {{Element color/example|Before 1800}}
+
====state====
* {{Element color/example|1800-1849}}
+
*[[:template:Element color/disambig]]
* {{Element color/example|1850-1899}}
+
====quality====
* {{Element color/example|1900-1949}}
+
(used in [[Wikipedia:WikiProject_Elements/Articles/Periodic_Table_by_Quality]])
* {{Element color/example|1950-1999}}
+
*[[:template:Element color/A]]
* {{Element color/example|2000-present}}
+
*[[:template:Element color/B]]
* {{Element color/example|Future}}
+
*[[:template:Element color/B+]]([[:template:Element color/Bplus|Bplus]])
 
+
*[[:template:Element color/C]]
===Blocks===
+
*[[:template:Element color/FA]]
''Note'': use lowercase blocknames
+
*[[:template:Element color/GA]]
* {{Element color/example|s-block}}
+
*[[:template:Element color/Start]]
* {{Element color/example|g-block}}
+
===years===
* {{Element color/example|p-block}}
+
----
* {{Element color/example|d-block}}
+
====Letters====
* {{Element color/example|f-block}}
+
*[[:template:Element color/D]]
In period 8, theorethical elements:
+
*[[:template:Element color/E]]
* {{Element color/example|s-block light}}
+
*[[:template:Element color/F]]
* {{Element color/example|g-block light|note=g-block only exists theoretically}}
+
====real====
* {{Element color/example|p-block light}}
+
*[[:template:Element color/1800-1849]]
* {{Element color/example|d-block light}}
+
*[[:template:Element color/1850-1899]]
* {{Element color/example|f-block light}}
+
*[[:template:Element color/1900-1949]]
 
+
*[[:template:Element color/1950-1999]]
===Numbers===
+
*[[:template:Element color/2000-present]]
Used in: [[Valence (chemistry)#Maximum valences of the elements]]
+
*[[:template:Element color/future]]
These colors correspond to the [[#Alkali metal&ndash;noble gases range|Alkali metal&ndash;noble gases range]]
 
* {{Template:Element color/example|0}}
 
* {{Template:Element color/example|1}}
 
* {{Template:Element color/example|2}}
 
* {{Template:Element color/example|3}}
 
* {{Template:Element color/example|4}}
 
* {{Template:Element color/example|5}}
 
* {{Template:Element color/example|6}}
 
* {{Template:Element color/example|7}}
 
* {{Template:Element color/example|8}}
 
* {{Template:Element color/example|9}}
 
 
 
==="Unknown" variants===
 
* {{Element color/example|Unknown}}
 
* {{Element color/example|Unknown chemical properties}}
 
* {{Element color/example|Unassessed}}
 
* {{Element color/example|UnknownPhase}}
 
* {{Element color/example|X}}
 
* {{Element color/example|White}}
 
* {{Element color/example|Future}}
 
* {{Element color/example|(See below)}}
 
 
 
===Miscellaneous===
 
* {{Element color/example|Disambig|Note =used in Natural State}}
 
* {{Element color/example|D}}
 
* {{Element color/example|E}}
 
* {{Element color/example|F}}
 
* {{Element color/example|X}}
 
* {{Element color/example|White}}
 
* {{Element color/example|(See below)}}
 
 
 
===Wikipedia article quality===
 
Used in: [[Wikipedia:WikiProject_Elements/Articles/Periodic_Table_by_Quality]]
 
* {{Element color/example|A}}
 
* {{Element color/example|B}}
 
* {{Element color/example|B+|note=or Bplus}}
 
* {{Element color/example|C}}
 
* {{Element color/example|FA}}
 
* {{Element color/example|GA}}
 
* {{Element color/example|Start}}
 
* {{Element color/example|Stub}}
 
* {{Element color/example|Unassessed}}
 
 
 
===Table background===
 
''Note'': this section on <tt><nowiki>{{Element color/Table|spec=header}}</nowiki><tt/> is currently under development and might change. It is discussed at [[Wikipedia talk:WikiProject Elements#Table background colors|WikiProject WP:ELEMENTS]].<br />
 
''Notes'':
 
# This '''table background''' template requires a parameter.
 
# Different from element cell backgrounds, they are not intended to be in a legend.<br />
 
 
 
Usage:
 
* <tt><nowiki>{{Element color/Table|spec=header}}</nowiki><tt/> &rarr; {{Element color/Table|spec=header}}
 
:The parameter {{code|spec}} is also the first unnamed parameter:
 
* <tt><nowiki>{{Element color/Table|header}}</nowiki><tt/> &rarr; {{Element color/Table|header}}<br />
 
<br/>
 
{{Element color/Table/Overview}}
 
 
 
The '''default value''' (returned when the {{code|<nowiki>spec=</nowiki>}} or first parameter is not recognised) is {{code|background}}:
 
* <tt><nowiki>{{Element color/Table|}}</nowiki></tt> &rarr;  {{Element color/Table|}}.
 
:This default can be overridden by parameter:
 
* <tt><nowiki>{{Element color/Table|default=#a0f4c0}}</nowiki></tt> &rarr; {{Element color/Table|#a0f4c0}}<br />
 
The '''return''' values are complete color values to be used as a CSS style, so including the {{code|#}} and {{code|;}} characters.
 
 
 
==See also==
 
{{periodic table templates}}
 
  
 
<includeonly>
 
<includeonly>
 
<!-- Categories and interwikis go here: -->
 
<!-- Categories and interwikis go here: -->
[[Category:Chemical element color templates| {{PAGENAME}}]]
+
[[Category:Chemical element color templates|{{PAGENAME}}]]
[[Category:Periodic table style and format templates]]
+
[[Category:Periodic table templates|Legend, {{PAGENAME}}]]
  
 
[[cy:Nodyn:Element color]]
 
[[cy:Nodyn:Element color]]
 +
 
</includeonly>
 
</includeonly>

Revision as of 23:27, 21 June 2012

subpages

state


categories


numbers

(used in Valence (chemistry)#Maximum valences of the elements)

real

wikipedia


state

quality

(used in Wikipedia:WikiProject_Elements/Articles/Periodic_Table_by_Quality)

years


Letters

real