Difference between revisions of "Template:Mineral"
Jump to navigation
Jump to search
m (Update documentation) |
m (Protected "Template:Mineral": policy [edit=sysop:move=sysop] [cascading]) |
||
| (12 intermediate revisions by 4 users not shown) | |||
| 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="300" |
| − | | | + | !colspan="2" align="center" style="color: white; font-size: 120%; height: 20px; background: SeaGreen no-repeat scroll top left;"| '''{{{name|{{PAGENAME}}}}}''' |
|- | |- | ||
| − | + | <!----------Image----------> | |
| + | {{!}}align="center" colspan="2"{{!}}{{#if:{{{image|}}}|[[image:{{{image}}}|280x280px]]|}} | ||
| + | {{!-}} | ||
| + | <!----Chemical name-------> | ||
| + | {{#if:{{{cdesc|}}} | <!--then:--> | ||
| + | {{!}} width=40% {{!}}'''Chemical name''' | ||
| + | {{!}} {{{cdesc|}}} | <!--else--> | ||
| + | }} | ||
| + | {{!-}} | ||
| + | <!----Chemical formula----> | ||
| + | {{#if:{{{formula|}}} | <!--then:--> | ||
| + | {{!}} '''[[Chemical formula]]''' | ||
| + | {{!}} {{{formula|}}} | <!--else--> | ||
| + | }} | ||
| + | {{!-}} | ||
| + | |colspan="2" align="center" style="color: black; font-size: 100%; height: 18px; background: DarkSeaGreen no-repeat scroll top left;"| '''Identification''' | ||
|- | |- | ||
| − | + | <!----Birefringence-------> | |
| − | |- | + | {{#if:{{{birefringence|}}} | <!--then:--> |
| − | + | {{!}} '''[[Birefringence]]''' | |
| − | |- | + | {{!}} {{{birefringence|}}} | <!--else--> |
| − | + | }} | |
| − | |- | + | {{!-}} |
| − | + | <!-------Colors-----------> | |
| − | + | {{#if:{{{colors|}}} | <!--then:--> | |
| − | + | {{!}} '''[[Color]]s''' | |
| − | |- | + | {{!}} {{{colors|}}} | <!--else--> |
| − | + | }} | |
| − | |- | + | {{!-}} |
| − | + | <!----Crystal habit ------> | |
| − | |- | + | {{#if:{{{chabit|}}} | <!--then:--> |
| − | + | {{!}} '''[[Crystal habit]]''' | |
| − | |- | + | {{!}} {{{chabit|}}} | <!--else--> |
| − | + | }} | |
| − | |- | + | {{!-}} |
| − | + | <!----Crystal system------> | |
| − | |- | + | {{#if:{{{csystem|}}} | <!--then:--> |
| − | + | {{!}} '''[[Crystal system]]''' | |
| − | |- | + | {{!}} {{{csystem|}}} | <!--else--> |
| − | + | }} | |
| − | |- | + | {{!-}} |
| − | + | <!----Cleavage------------> | |
| − | |- | + | {{#if:{{{cleavage|}}} | <!--then:--> |
| − | + | {{!}} '''[[Cleavage planes|Cleavage]]''' | |
| − | |- | + | {{!}} {{{cleavage|}}} | <!--else--> |
| − | + | }} | |
| − | |- | + | {{!-}} |
| − | + | <!----Dispersion----------> | |
| − | |- | + | {{#if:{{{dispersion|}}} | <!--then:--> |
| − | + | {{!}} '''[[Dispersion]]''' | |
| − | |- | + | {{!}} {{{dispersion|}}} | <!--else--> |
| − | + | }} | |
| − | |- | + | {{!-}} |
| − | + | <!----Fracture------------> | |
| + | {{#if:{{{fracture|}}} | <!--then:--> | ||
| + | {{!}} '''[[Fracture]]''' | ||
| + | {{!}} {{{fracture|}}} | <!--else--> | ||
| + | }} | ||
| + | {{!-}} | ||
| + | <!----Hardness------------> | ||
| + | {{#if:{{{hardness|}}} | <!--then:--> | ||
| + | {{!}} '''[[Hardness]]''' | ||
| + | {{!}} {{{hardness|}}} | <!--else--> | ||
| + | }} | ||
| + | {{!-}} | ||
| + | <!----Luster--------------> | ||
| + | {{#if:{{{luster|}}} | <!--then:--> | ||
| + | {{!}} '''[[Luster]]''' | ||
| + | {{!}} {{{luster|}}} | <!--else--> | ||
| + | }} | ||
| + | {{!-}} | ||
| + | <!----Luminescence--------> | ||
| + | {{#if:{{{luminescence|}}} | <!--then:--> | ||
| + | {{!}} '''[[Luminescence]]''' | ||
| + | {{!}} {{{luminescence|}}} | <!--else--> | ||
| + | }} | ||
| + | {{!-}} | ||
| + | <!----Name Origin---------> | ||
| + | {{#if:{{{nameorigin|}}} | <!--then:--> | ||
| + | {{!}} '''Name origin''' | ||
| + | {{!}} {{{nameorigin|}}} | <!--else--> | ||
| + | }} | ||
| + | {{!-}} | ||
| + | <!----Optics--------------> | ||
| + | {{#if:{{{optics|}}} | <!--then:--> | ||
| + | {{!}} '''[[Optics]]''' | ||
| + | {{!}} {{{optics|}}} | <!--else--> | ||
| + | }} | ||
| + | {{!-}} | ||
| + | <!----Pleochroism---------> | ||
| + | {{#if:{{{pleochroism|}}} | <!--then:--> | ||
| + | {{!}} '''[[Pleochroism]]''' | ||
| + | {{!}} {{{pleochroism|}}} | <!--else--> | ||
| + | }} | ||
| + | {{!-}} | ||
| + | <!----Specific gravity----> | ||
| + | {{#if:{{{sgravity|}}} | <!--then:--> | ||
| + | {{!}} '''[[Specific gravity]]''' | ||
| + | {{!}} {{{sgravity|}}} | <!--else--> | ||
| + | }} | ||
| + | {{!-}} | ||
| + | <!----Spectral------------> | ||
| + | {{#if:{{{spectral|}}} | <!--then:--> | ||
| + | {{!}} '''[[Spectral]]''' | ||
| + | {{!}} {{{spectral|}}} | <!--else--> | ||
| + | }} | ||
| + | {{!-}} | ||
| + | <!----Streak--------------> | ||
| + | {{#if:{{{streak|}}} | <!--then:--> | ||
| + | {{!}} '''[[Streak]]''' | ||
| + | {{!}} {{{streak|}}} | <!--else--> | ||
| + | }} | ||
| + | {{!-}} | ||
|} | |} | ||
| − | <includeonly>[[Category: | + | <includeonly>[[Category:Minerals]]</includeonly> |
| − | {{TemplateDoc|pages= | + | <noinclude>[[Category:Template]] |
| − | {{ | + | {{TemplateDoc|pages=Mineral articles|purpose=Infobox|cat=Minerals}} |
| − | {{ | + | {{Parms| |
| − | {{ | + | {{Parm|name |Name |no | Defaults to page name}} |
| + | {{Parm|image |Picture of mineral|no | Just the name of the image}} | ||
| + | {{Parm|cdesc |Chemical name |yes| }} | ||
| + | {{Parm|formula |Chemical formula |yes| }} | ||
| + | {{Parm|birefringence|Birefrigence |no | }} | ||
| + | {{Parm|colors |Color(s) |no | Commonly occurring colors}} | ||
| + | {{Parm|chabit |Crystal habit |no | }} | ||
| + | {{Parm|csystem |Crystal system |no | One of the seven systems}} | ||
| + | {{Parm|cleavage |Cleavage |no | }} | ||
| + | {{Parm|dispersion |Dispersion |no | }} | ||
| + | {{Parm|fracture |Fracture |no | }} | ||
| + | {{Parm|hardness |Hardness |no | Moh's scale}} | ||
| + | {{Parm|luster |Luster |no | }} | ||
| + | {{Parm|luminescence |Luminescence |no | }} | ||
| + | {{Parm|nameorigin |Name origin |no | }} | ||
| + | {{Parm|optics |Optics |no | }} | ||
| + | {{Parm|pleochroism |Pleochroism |no | }} | ||
| + | {{Parm|sgravity |Specfic gravity |no | }} | ||
| + | {{Parm|spectral |Spectral |no | }} | ||
| + | {{Parm|streak |Streak |no | }} | ||
}} | }} | ||
| + | |||
| + | Omitted parameters will not show in the table. | ||
| + | |||
| + | |||
| + | ===Sample Data Block=== | ||
| + | The following may be copied and pasted at the top of the page being edited | ||
| + | <pre> | ||
| + | <nowiki>{{</nowiki>Mineral | ||
| + | | name= | ||
| + | | image= | ||
| + | | cdesc= | ||
| + | | formula= | ||
| + | | birefringence= | ||
| + | | colors= | ||
| + | | chabit= | ||
| + | | csystem= | ||
| + | | cleavage= | ||
| + | | dispersion= | ||
| + | | fracture= | ||
| + | | hardness= | ||
| + | | luster= | ||
| + | | luminescence= | ||
| + | | nameorigin= | ||
| + | | optics= | ||
| + | | pleochroism= | ||
| + | | sgravity= | ||
| + | | spectral= | ||
| + | | streak= | ||
| + | |} | ||
| + | <nowiki>}}</nowiki></pre> | ||
</noinclude> | </noinclude> | ||
Latest revision as of 16:45, December 22, 2008
| Mineral | |
|---|---|
| Identification |
| Template: Mineral | |
|---|---|
| Use on | Mineral articles |
| Use for | Infobox |
| Category template applies to page | Minerals |
| Template Parameters (See using templates). | |||
|---|---|---|---|
| Name | Purpose | Required? | Comment |
| name | Name | no | Defaults to page name |
| image | Picture of mineral | no | Just the name of the image |
| cdesc | Chemical name | yes | |
| formula | Chemical formula | yes | |
| birefringence | Birefrigence | no | |
| colors | Color(s) | no | Commonly occurring colors |
| chabit | Crystal habit | no | |
| csystem | Crystal system | no | One of the seven systems |
| cleavage | Cleavage | no | |
| dispersion | Dispersion | no | |
| fracture | Fracture | no | |
| hardness | Hardness | no | Moh's scale |
| luster | Luster | no | |
| luminescence | Luminescence | no | |
| nameorigin | Name origin | no | |
| optics | Optics | no | |
| pleochroism | Pleochroism | no | |
| sgravity | Specfic gravity | no | |
| spectral | Spectral | no | |
| streak | Streak | no | |
Omitted parameters will not show in the table.
Sample Data Block
The following may be copied and pasted at the top of the page being edited
{{Mineral
| name=
| image=
| cdesc=
| formula=
| birefringence=
| colors=
| chabit=
| csystem=
| cleavage=
| dispersion=
| fracture=
| hardness=
| luster=
| luminescence=
| nameorigin=
| optics=
| pleochroism=
| sgravity=
| spectral=
| streak=
|}
}}