Difference between revisions of "Template:Element"

From Marspedia
Jump to: navigation, search
m (updating template)
m (minor)
Line 13: Line 13:
  
 
===Usage:===
 
===Usage:===
If you have an element you would like to be represented by this periodic table symbol, you require the element symbol (<nowiki>{{{elementSymbol}}}</nowiki>), element name (<nowiki>{{{elementName}}}</nowiki>), no. of protons in the nuclei (<nowiki>{{{protons}}}</nowiki>) and no. of neutrons (<nowiki>{{{neutrons}}}</nowiki>). ''Optional:'' use the "float" command (<nowiki>{{{float}}}</nowiki>) to define either "left" or "right" side of article text.
+
If you have an element you would like to be represented by this periodic table symbol, you require the element symbol (<nowiki>{{{elementSymbol}}}</nowiki>), element name (<nowiki>{{{elementName}}}</nowiki>) and no. of protons in the nuclei (<nowiki>{{{protons}}}</nowiki>). ''Optional:'' use the "float" command (<nowiki>{{{float}}}</nowiki>) to define either "left" or "right" side of article text.
  
 
===Example:===
 
===Example:===

Revision as of 20:27, 5 December 2007

{{{elementSymbol}}} {{{protons}}}
 
[[{{{elementName}}}]]

Currently testing a template for elements in category:Chemistry. This will be expanded for chemical formulae in time.

Usage:

If you have an element you would like to be represented by this periodic table symbol, you require the element symbol ({{{elementSymbol}}}), element name ({{{elementName}}}) and no. of protons in the nuclei ({{{protons}}}). Optional: use the "float" command ({{{float}}}) to define either "left" or "right" side of article text.

Example:

For the element of Oxygen:

{{element 
|float=left
|elementName=Oxygen
|elementSymbol=O
|protons=8
}}

This yields:

O 8
 
Oxygen