Difference between revisions of "Template:Element"

From Conservapedia
Jump to navigation Jump to search
(reformat & document (test))
m (debug)
Line 1: Line 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"
+
{| 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"
 
!style="background:silver; text-align: center; font-size:120%; " colspan=2|'''Element Info'''
 
!style="background:silver; text-align: center; font-size:120%; " colspan=2|'''Element Info'''
 
|-
 
|-
−
|width=40%| Name || {{{name|Unknown}}}
+
|width=40%| '''Name''' || {{{name|Unknown}}}
 
|-
 
|-
−
| Symbol || {{{symbol|Unknown}}}
+
| '''Symbol''' || {{{symbol|Unknown}}}
 
|-
 
|-
−
| [[Atomic Number]] || {{{anumber|Unknown}}}
+
| '''[[Atomic number]]''' || {{{anumber|Unknown}}}
 
|-
 
|-
−
| [[Atomic Mass]] || {{{amass|Unknown}}}
+
| '''[[Atomic mass]]''' || {{{amass|Unknown}}}
 
|-
 
|-
 
<!----Normal state ------->
 
<!----Normal state ------->
 
{{#if:{{{state|}}} | <!--then:-->
 
{{#if:{{{state|}}} | <!--then:-->
 
{{!}} '''Normal state '''
 
{{!}} '''Normal state '''
−
{{!}} [[{{{state|}}}]] | <!--else-->
+
{{!}} {{{state|}}} | <!--else-->
 
}}
 
}}
 
{{!-}}
 
{{!-}}
Line 19: Line 19:
 
{{#if:{{{class|}}} | <!--then:-->
 
{{#if:{{{class|}}} | <!--then:-->
 
{{!}} '''Classification'''
 
{{!}} '''Classification'''
−
{{!}} [[{{{class|}}}]] | <!--else-->
+
{{!}} {{{class|}}} | <!--else-->
 
}}
 
}}
 
{{!-}}
 
{{!-}}
Line 31: Line 31:
 
{{#if:{{{color|}}} | <!--then:-->
 
{{#if:{{{color|}}} | <!--then:-->
 
{{!}} '''Color'''
 
{{!}} '''Color'''
−
{{!}} [[{{{color|}}}]] | <!--else-->
+
{{!}} {{{color|}}} | <!--else-->
 
}}
 
}}
 
{{!-}}
 
{{!-}}
Line 43: Line 43:
 
{{#if:{{{discname|}}} | <!--then:-->
 
{{#if:{{{discname|}}} | <!--then:-->
 
{{!}} '''Name of discoverer'''
 
{{!}} '''Name of discoverer'''
−
{{!}} [[{{{discname|}}}]] | <!--else-->
+
{{!}} {{{discname|}}} | <!--else-->
 
}}
 
}}
 
{{!-}}
 
{{!-}}
Line 61: Line 61:
 
{{#if:{{{obtained|}}} | <!--then:-->
 
{{#if:{{{obtained|}}} | <!--then:-->
 
{{!}} '''Obtained from'''
 
{{!}} '''Obtained from'''
−
{{!}} [[{{{obtained|}}}]] | <!--else-->
+
{{!}} {{{obtained|}}} | <!--else-->
 
}}
 
}}
 
{{!-}}
 
{{!-}}
Line 78: Line 78:
 
  {{Parm|color|Color|no|if appropriate }}
 
  {{Parm|color|Color|no|if appropriate }}
 
  {{Parm|date|Date of discovery |no| }}
 
  {{Parm|date|Date of discovery |no| }}
−
  {{Parm|discname|Name of discoverer|no|linked }}
+
  {{Parm|discname|Name of discoverer|no| }}
 
  {{Parm|origname|Name origin |no| }}
 
  {{Parm|origname|Name origin |no| }}
 
  {{Parm|uses|Uses|no| }}
 
  {{Parm|uses|Uses|no| }}

Revision as of 18:39, 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
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=
}}