Difference between revisions of "Template:Element"
m (error by me) |
m (give the background a color - a standard Marspedia hue :)) |
||
Line 1: | Line 1: | ||
− | <div style="float:{{{float|right}}};margin:5px;border:2px #000000 solid;padding:0;width:66px;height:66px;text-align:center"> | + | <div style="float:{{{float|right}}};margin:5px;border:2px #000000 solid;padding:0;width:66px;height:66px;text-align:center;background-color:#FFF0E8"> |
{|style="background-color:transparent;margin:0 auto 0 auto;" | {|style="background-color:transparent;margin:0 auto 0 auto;" | ||
|- | |- |
Revision as of 12:54, 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=left
|elementName=Oxygen
|elementSymbol=O
|protons=8
|neutrons=8
}}
This yields:
O | 8 |
8 | |
Oxygen |