Difference between revisions of "Template:Element"

From Marspedia
Jump to: navigation, search
m (give the background a color - a standard Marspedia hue :))
m (updating template)
Line 5: Line 5:
 
|style="margin:0;padding:0;text-align:left;vertical-align:bottom"|'''{{{protons}}}'''
 
|style="margin:0;padding:0;text-align:left;vertical-align:bottom"|'''{{{protons}}}'''
 
|-
 
|-
|style="margin:0;padding:0;text-align:left;vertical-align:top"|'''{{{neutrons}}}'''
+
|style="margin:0;padding:0;text-align:left;vertical-align:top"| 
 
|-
 
|-
 
|colspan="2" style="margin:0;padding:0;font-size:8pt;vertical-align:top"|'''[[{{{elementName}}}]]'''
 
|colspan="2" style="margin:0;padding:0;font-size:8pt;vertical-align:top"|'''[[{{{elementName}}}]]'''
Line 23: Line 23:
 
  |elementSymbol=O <br/>
 
  |elementSymbol=O <br/>
 
  |protons=8 <br/>
 
  |protons=8 <br/>
|neutrons=8 <br/>
 
 
  }}  
 
  }}  
  
Line 32: Line 31:
 
|elementSymbol=O
 
|elementSymbol=O
 
|protons=8
 
|protons=8
|neutrons=8
 
 
}}
 
}}
 
[[category:templates]]</noinclude>
 
[[category:templates]]</noinclude>

Revision as of 19:21, 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}}}), 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=left
|elementName=Oxygen
|elementSymbol=O
|protons=8
}}

This yields:

O 8
 
Oxygen