Difference between revisions of "Template:Element"

From Conservapedia
Jump to navigation Jump to search
m (wkilink)
m
 
(18 intermediate revisions by 9 users not shown)
Line 1: Line 1:
−
{| class="wikitable" style="width:40%" align="right" border="1"
+
{| class="infobox bordered" style="float: width:23em; right; margin: 0 0 0.5em 0.5em; text-align: left; font-size: 85%; margin-left:5px" border=1 align="right" cellpadding="2" cellspacing="0" width="300"
−
|+ '''Element Info'''
+
!colspan="2" align="center" style="color: black; font-size: 120%; height: 20px; background: Silver no-repeat scroll top left;"| '''{{{name|{{PAGENAME}}}}}'''
 
|-
 
|-
−
| Name || {{{name}}}
+
<!----------Image---------->
 +
{{!}}align="center" colspan="2"{{!}}{{#if:{{{image|}}}|[[image:{{{image}}}|200px]]|}}
 +
{{!-}}
 +
|-
 +
{{#if:{{{caption|}}}|
 +
{{!}} colspan="2" style="border-bottom: 1px solid #aaa; text-align:center;" {{!}} {{{caption}}}
 +
{{!-}}
 +
}}
 +
!colspan="2" style="text-align:center; height: 24px;line-height:24px;background:#DCDCDC;"|Properties
 
|-
 
|-
−
| Symbol || {{{symbol}}}
+
<!----Atomic symbol------->
 +
{{#if:{{{symbol|}}} | <!--then:-->
 +
{{!}} '''Atomic symbol'''
 +
{{!}} {{{symbol|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Atomic number------->
 +
{{#if:{{{amass|}}} | <!--then:-->
 +
{{!}} '''Atomic number'''
 +
{{!}} {{{anumber|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Classification------>
 +
{{#if:{{{class|}}} | <!--then:-->
 +
{{!}} '''Classification'''
 +
{{!}} {{{class|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Atomic mass------->
 +
{{#if:{{{amass|}}} | <!--then:-->
 +
{{!}} '''Atomic mass'''
 +
{{!}} {{{amass|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
<!-------Number of Stable Isotopes ----------->
 +
{{#if:{{{stableisotopes|}}} | <!--then:-->
 +
{{!}} '''Number of Stable Isotopes'''
 +
{{!}} {{{stableisotopes|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
<!-------Number of unstable Isotopes ----------->
 +
{{#if:{{{unstableisotopes|}}} | <!--then:-->
 +
{{!}} '''Number of Unstable Isotopes'''
 +
{{!}} {{{unstableisotopes|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Melting point------->
 +
{{#if:{{{meltingpoint|}}} | <!--then:-->
 +
{{!}} '''Melting point (°C)'''
 +
{{!}} {{{meltingpoint|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
<!---Boiling point---->
 +
{{#if:{{{boilingpoint|}}} | <!--then:-->
 +
{{!}} '''Boiling point (°C)'''
 +
{{!}} {{{boilingpoint|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
<!-------Density ----------->
 +
{{#if:{{{density|}}} | <!--then:-->
 +
{{!}} '''Density (grams per cc)'''
 +
{{!}} {{{density|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
<!-------Hardness----------->
 +
{{#if:{{{hardness|}}} | <!--then:-->
 +
{{!}} '''Hardness (Moh's scale)'''
 +
{{!}} {{{hardness|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
<!-------Abundance----------->
 +
{{#if:{{{abundance|}}} | <!--then:-->
 +
{{!}} '''Abundance in lithosphere (%)'''
 +
{{!}} {{{abundance|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
<!-------Oxidation----------->
 +
{{#if:{{{oxidation|}}} | <!--then:-->
 +
{{!}} '''Oxidation states'''
 +
{{!}} {{{oxidation|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
!colspan="2" style="text-align:center; height: 24px;line-height:24px;background:#DCDCDC;"|Other Information
 
|-
 
|-
−
| [[Atomic Number]] || {{{anumber}}}
+
<!-------Discovered------->
−
|-
+
{{#if:{{{date|}}} | <!--then:-->
−
| [[Atomic Mass]] || {{{amass}}}
+
{{!}} '''Date of discovery'''
−
|-
+
{{!}} {{{date|}}} | <!--else-->
−
| Number of electrons || {{{noe}}}
+
}}
−
|-
+
{{!-}}
−
| Classification || {{{class}}}
+
<!-------Discoverer------->
−
|-
+
{{#if:{{{discname|}}} | <!--then:-->
−
| Crystal structure || {{{cstructure}}}
+
{{!}} '''Name of discoverer'''
−
|-
+
{{!}} {{{discname|}}} | <!--else-->
−
| Color || {{{color}}}
+
}}
−
|-
+
{{!-}}
−
| Date of Discovery || {{{date}}}
+
<!------Name origin------->
−
|-
+
{{#if:{{{origname|}}} | <!--then:-->
−
| Name of Discoverer || {{{discname}}}
+
{{!}} '''Name origin'''
−
|-
+
{{!}} {{{origname|}}} | <!--else-->
−
| Name Origin || {{{origname}}}
+
}}
−
|-
+
{{!-}}
−
| Uses || {{{uses}}}
+
<!---------Uses----------->
−
|-
+
{{#if:{{{uses|}}} | <!--then:-->
−
| Obtained from || {{{obtained}}}
+
{{!}} '''Uses'''
 +
{{!}} {{{uses|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
<!-----Obtained from------>
 +
{{#if:{{{obtained|}}} | <!--then:-->
 +
{{!}} '''Obtained from'''
 +
{{!}} {{{obtained|}}} | <!--else-->
 +
}}
 +
{{!-}}
 
|}
 
|}
 +
<includeonly>[[Category:Elements]]</includeonly>
 +
<noinclude>[[Category:Template]]
 +
{{TemplateDoc|pages=Element articles|purpose=Infobox|cat=Elements}}
 +
{{Parms|
 +
{{Parm|name      |Name              |yes| }}
 +
{{Parm|image    |Image            |yes| }}
 +
{{Parm|caption  |Caption          |yes| }}
 +
{{Parm|symbol    |Atomic symbol  |yes| }}
 +
{{Parm|anumber    |Atomic number  |yes| }}
 +
{{Parm|class    |Classification    |no | Classification of the element within its grouping}}
 +
{{Parm|amass    |Atomic mass    |yes| aka atomic weight}}
 +
{{Parm|stableisotopes|Stable isotopes|no | }}
 +
{{Parm|unstableisotopes|Unstable isotopes|no | }}
 +
{{Parm|meltingpoint    |Melting point      |yes| Fahrenheit is an option, within parenthesis }}
 +
{{Parm|boilingpoint    |Boiling point      |yes| Fahrenheit is an option, within parenthesis}}
 +
{{Parm|density  |Density          |no |g / cm^3 }}
 +
{{Parm|hardness  |Hardness          |yes| }}
 +
{{Parm|abundance  |Abundance          |yes| }}
 +
{{Parm|oxidation  |Oxidation          |yes| }}
 +
{{Parm|date      |Date of discovery |no | }}
 +
{{Parm|discname  |Name of discoverer|no | }}
 +
{{Parm|origname  |Name origin      |no | }}
 +
{{Parm|uses      |Uses              |no | }}
 +
{{Parm|obtained  |Obtained from    |no | }}
 +
}}
 +
 +
===Sample Data Block===
 +
The following may be copied and pasted at the top of the page being edited
 +
<pre>
 +
<nowiki>{{</nowiki>Element
 +
| name=
 +
| image=
 +
| caption=
 +
| symbol=
 +
| anumber=
 +
| class=
 +
| amass=
 +
| stableisotopes=
 +
| unstableisotopes=
 +
| meltingpoint=
 +
| boilingpoint=
 +
| density=
 +
| hardness=
 +
| abundance=
 +
| oxidation=
 +
| date=
 +
| discname=
 +
| origname=
 +
| uses=
 +
| obtained=
 +
<nowiki>}}</nowiki></pre>
 +
</noinclude>

Latest revision as of 10:11, August 31, 2019

Element
Properties
Other Information

Template: Element
Use on Element articles
Use for Infobox
Category template applies to page Elements
Template Parameters
(See using templates).
Name Purpose Required? Comment
name Name yes
image Image yes
caption Caption yes
symbol Atomic symbol yes
anumber Atomic number yes
class Classification no Classification of the element within its grouping
amass Atomic mass yes aka atomic weight
stableisotopes Stable isotopes no
unstableisotopes Unstable isotopes no
meltingpoint Melting point yes Fahrenheit is an option, within parenthesis
boilingpoint Boiling point yes Fahrenheit is an option, within parenthesis
density Density no g / cm^3
hardness Hardness yes
abundance Abundance yes
oxidation Oxidation yes
date Date of discovery no
discname Name of discoverer no
origname Name origin no
uses Uses no
obtained Obtained from no


Sample Data Block

The following may be copied and pasted at the top of the page being edited

{{Element 
| name= 
| image=
| caption=
| symbol=
| anumber=
| class=
| amass= 
| stableisotopes=
| unstableisotopes=
| meltingpoint=
| boilingpoint= 
| density=
| hardness=
| abundance=
| oxidation=
| date= 
| discname=
| origname=
| uses=
| obtained=
}}