Difference between revisions of "Template:Element"

From Marspedia
Jump to: navigation, search
m (minor)
 
(26 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div style="padding:15px 5px 5px 5px;border:1px #000000 solid;width:50px;height:40px;text-align:center">
+
<div style="margin:5px 5px 5px 5px;float:{{{float|right}}};width:100px;text-align:center;background-color:#fff;border:#888888 solid 1px">
{|
+
<div style="margin:5px auto 5px auto;border:2px #000000 solid;padding:0;width:66px;height:66px;text-align:center;background-color:#FFF0E8">  
|rowspan="2"|<span style="text-align:center;font-size:25pt;margin-bottom:0;padding-bottom:0">{{{elementSymbol}}}</span>
+
{|style="background-color:transparent;margin:0 auto 0 auto;"
|{{{protons}}}
+
|-
|-
+
|rowspan="2" style="text-align:right;margin:0;padding:0;"|<big style="font-size:25px">'''{{{elementSymbol}}}'''</big>  
|{{{neutrons}}}
+
|style="margin:0;padding:0;text-align:left;vertical-align:bottom"|'''{{{protons}}}'''
|-
+
|-  
|<strong style="margin-top:0;padding-top:0;font-size:7pt">[[{{{elementName}}}]]</strong>
+
|style="margin:0;padding:0;text-align:left;vertical-align:top"|&nbsp;
|}
+
|-  
</div><noinclude>
+
|colspan="2" style="margin:0;padding:0;font-size:8pt;vertical-align:top"|'''[[{{{elementName}}}]]'''
Currently testing a template for elements in [[:category:Chemistry]]. This will be expanded for chemical formulae in time.
+
|}
 +
</div>  
 +
<small style="border-bottom:dashed 1px #777777;cursor:help" title="Atmospheric/regolith abundance (%)">'''Abundance:'''</small> <small>{{{abundance}}}</small>
 +
</div><noinclude>  
 +
'''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>) 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:===
 +
For the element of Oxygen:
 +
 
 +
<nowiki>{{</nowiki>element <br/>
 +
|float=left <br/>
 +
|elementName=Oxygen <br/>
 +
|elementSymbol=O <br/>
 +
|protons=8 <br/>
 +
|abundance=0.13%
 +
}}
 +
 
 +
This yields:
 +
{{element
 +
|float=left
 +
|elementName=Oxygen
 +
|elementSymbol=O
 +
|protons=8
 +
|abundance=0.13%
 +
}}
 
[[category:templates]]</noinclude>
 
[[category:templates]]</noinclude>

Latest revision as of 17:59, 16 December 2007

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

Abundance: {{{abundance}}}

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
|abundance=0.13% }}

This yields:

O 8
 
Oxygen

Abundance: 0.13%