Difference between revisions of "Template:Element"
Jump to navigation
Jump to search
(Documenting) |
(reformat & document (test)) |
||
| Line 1: | Line 1: | ||
| − | {| class=" | + | {| 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" |
| − | | | + | !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 -------> | |
| − | + | {{#if:{{{state|}}} | <!--then:--> | |
| − | + | {{!}} '''Normal state ''' | |
| − | + | {{!}} [[{{{state|}}}]] | <!--else--> | |
| − | + | }} | |
| − | + | {{!-}} | |
| − | + | <!----Classification------> | |
| − | |- | + | {{#if:{{{class|}}} | <!--then:--> |
| − | + | {{!}} '''Classification''' | |
| − | |- | + | {{!}} [[{{{class|}}}]] | <!--else--> |
| − | + | }} | |
| − | + | {{!-}} | |
| − | + | <!---Crystal structure----> | |
| − | + | {{#if:{{{cstructure|}}} | <!--then:--> | |
| − | + | {{!}} '''Crystal structure''' | |
| − | + | {{!}} [[{{{cstructure|}}}]] | <!--else--> | |
| − | + | }} | |
| + | {{!-}} | ||
| + | <!-------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| | + | {{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=
}}