Jump to content

Template:Element: Difference between revisions

From Marspedia
mNo edit summary
Line 22: Line 22:
  |elementName=Oxygen <br/>
  |elementName=Oxygen <br/>
  |elementSymbol=O <br/>
  |elementSymbol=O <br/>
  |protons=14 <br/>
  |protons=8 <br/>
  |neutrons=14 <br/>
  |neutrons=8 <br/>
  }}  
  }}  


This yields:
This yields:
{{element
{{element
|float
|float=left
|elementName=Oxygen
|elementName=Oxygen
|elementSymbol=O
|elementSymbol=O
|protons=14
|protons=8
|neutrons=14
|neutrons=8
}}
}}
[[category:templates]]</noinclude>
[[category:templates]]</noinclude>

Revision as of 03:56, 24 November 2007

{{{elementSymbol}}} {{{protons}}}
{{{neutrons}}}
[[{{{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}}}), no. of protons in the nuclei ({{{protons}}}) and no. of neutrons ({{{neutrons}}}). Optional: use the "float" command ({{{float}}}) to define either "left" or "right" side of article text.

Example:

For the element of Oxygen:

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

This yields:

O 8
8
Oxygen