Difference between revisions of "Template:Element"

From Conservapedia
Jump to navigation Jump to search
(Documenting)
(reformat & document (test))
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="250"
−
|+ '''Element Info'''
+
!style="background:silver; text-align: center; font-size:120%; " colspan=2|'''Element Info'''
 
|-
 
|-
−
| Name || {{{name}}}
+
|width=40%| Name || {{{name|Unknown}}}
 
|-
 
|-
−
| Symbol || {{{symbol}}}
+
| Symbol || {{{symbol|Unknown}}}
 
|-
 
|-
−
| [[Atomic Number]] || {{{anumber}}}
+
| [[Atomic Number]] || {{{anumber|Unknown}}}
 
|-
 
|-
−
| [[Atomic Mass]] || {{{amass}}}
+
| [[Atomic Mass]] || {{{amass|Unknown}}}
 
|-
 
|-
−
| Normal state || {{{state}}}
+
<!----Normal state ------->
−
|-
+
{{#if:{{{state|}}} | <!--then:-->
−
| Classification || {{{class}}}
+
{{!}} '''Normal state '''
−
|-
+
{{!}} [[{{{state|}}}]] | <!--else-->
−
| Crystal structure || {{{cstructure}}}
+
}}
−
|-
+
{{!-}}
−
| Color || {{{color}}}
+
<!----Classification------>
−
|-
+
{{#if:{{{class|}}} | <!--then:-->
−
| Date of Discovery || {{{date}}}
+
{{!}} '''Classification'''
−
|-
+
{{!}} [[{{{class|}}}]] | <!--else-->
−
| Name of Discoverer || {{{discname}}}
+
}}
−
|-
+
{{!-}}
−
| Name Origin || {{{origname}}}
+
<!---Crystal structure---->
−
|-
+
{{#if:{{{cstructure|}}} | <!--then:-->
−
| Uses || {{{uses}}}
+
{{!}} '''Crystal structure'''
−
|-
+
{{!}} [[{{{cstructure|}}}]] | <!--else-->
−
| Obtained from || {{{obtained}}}
+
}}
 +
{{!-}}
 +
<!-------Color ----------->
 +
{{#if:{{{color|}}} | <!--then:-->
 +
{{!}} '''Color'''
 +
{{!}} [[{{{color|}}}]] | <!--else-->
 +
}}
 +
{{!-}}
 +
<!-------Discovered------->
 +
{{#if:{{{date|}}} | <!--then:-->
 +
{{!}} '''Date of discovery'''
 +
{{!}} {{{date|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
<!-------Discoverer------->
 +
{{#if:{{{discname|}}} | <!--then:-->
 +
{{!}} '''Name of discoverer'''
 +
{{!}} [[{{{discname|}}}]] | <!--else-->
 +
}}
 +
{{!-}}
 +
<!------Name origin------->
 +
{{#if:{{{origname|}}} | <!--then:-->
 +
{{!}} '''Name origin'''
 +
{{!}} {{{origname|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
<!---------Uses----------->
 +
{{#if:{{{uses|}}} | <!--then:-->
 +
{{!}} '''Uses'''
 +
{{!}} {{{uses|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
<!-----Obtained from------>
 +
{{#if:{{{obtained|}}} | <!--then:-->
 +
{{!}} '''Obtained from'''
 +
{{!}} [[{{{obtained|}}}]] | <!--else-->
 +
}}
 +
{{!-}}
 
|}
 
|}
 
<includeonly>[[Category:Elements]]</includeonly>
 
<includeonly>[[Category:Elements]]</includeonly>
Line 32: Line 69:
 
{{TemplateDoc|pages=Element articles|purpose=Infobox|cat=Elements}}
 
{{TemplateDoc|pages=Element articles|purpose=Infobox|cat=Elements}}
 
{{Parms|
 
{{Parms|
−
  {{Parm|Various, as shown above|As shown above|yes}}
+
  {{Parm|name|Name|yes| }}
 +
{{Parm|symbol|Chemical symbol|yes| }}
 +
{{Parm|anumber|Atomic Number|yes| }}
 +
{{Parm|amass|Atomic Mass|yes| }}
 +
{{Parm|state|Normal state|no|at room temperature }}
 +
{{Parm|class|Classification|no| }}
 +
{{Parm|cstructure|Crystal structure|no|if appropriate }}
 +
{{Parm|color|Color|no|if appropriate }}
 +
{{Parm|date|Date of discovery |no| }}
 +
{{Parm|discname|Name of discoverer|no|linked }}
 +
{{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=
 +
| symbol=
 +
| anumber=
 +
| amass=
 +
| state=
 +
| class=
 +
| cstructure=
 +
| color=
 +
| date=
 +
| discname=
 +
| origname=
 +
| uses=
 +
| obtained=
 +
<nowiki>}}</nowiki></pre>
 
</noinclude>
 
</noinclude>

Revision as of 18:31, July 15, 2007

Element Info
Name Unknown
Symbol Unknown
Atomic Number Unknown
Atomic Mass Unknown

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
symbol Chemical symbol yes
anumber Atomic Number yes
amass Atomic Mass yes
state Normal state no at room temperature
class Classification no
cstructure Crystal structure no if appropriate
color Color no if appropriate
date Date of discovery no
discname Name of discoverer no linked
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= 
| symbol=
| anumber= 
| amass=
| state= 
| class=
| cstructure=
| color=
| date= 
| discname=
| origname=
| uses=
| obtained=
}}