Difference between revisions of "Template:Element"

From Marspedia
Jump to: navigation, search
m
Line 1: Line 1:
<div style="float:{{{float|right}}};border:2px #000000 solid;padding:0;width:66px;height:66px;text-align:center">
+
<div style="float:{{float|left}};border:2px #000000 solid;padding:0;width:66px;height:66px;text-align:center">
 
{|style="background-color:transparent;margin:0 auto 0 auto;"
 
{|style="background-color:transparent;margin:0 auto 0 auto;"
 
|-
 
|-
Line 10: Line 10:
 
|}
 
|}
 
</div><noinclude>
 
</div><noinclude>
Currently testing a template for elements in [[:category:Chemistry]]. This will be expanded for chemical formulae in time.
+
'''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 (<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".
 +
 
 +
===Example:===
 +
For the element of Oxygen:
 +
 
 +
<nowiki>{{</nowiki>element <br/>
 +
|float <br/>
 +
|elementName=Oxygen <br/>
 +
|elementSymbol=O <br/>
 +
|protons=14 <br/>
 +
|neutrons=14 <br/>
 +
}}
 +
 
 +
This yields:
 +
{{element
 +
|float
 +
|elementName=Oxygen
 +
|elementSymbol=O
 +
|protons=14
 +
|neutrons=14
 +
}}
 
[[category:templates]]</noinclude>
 
[[category:templates]]</noinclude>

Revision as of 18:46, 23 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".

Example:

For the element of Oxygen:

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

This yields:

O 14
14
Oxygen