Difference between revisions of "Template:Mineral"

From Conservapedia
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="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"
|+ '''{{{name}}}'''
+
!colspan="2" align="center" style="color: white; font-size: 120%; height: 20px; background: SeaGreen no-repeat scroll top left;"| '''{{{name|{{PAGENAME}}}}}'''
 
|-
 
|-
|colspan=2 align=center| {{{Image}}}
+
<!----------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'''
 
|-
 
|-
| Chemical description || {{{cdesc}}}
+
<!----Birefringence------->
|-
+
{{#if:{{{birefringence|}}} | <!--then:-->
| [[Chemical_compound#Chemical_Formula| Chemical formula]] || {{{formula}}}
+
{{!}} '''[[Birefringence]]'''
|-
+
{{!}} {{{birefringence|}}} | <!--else-->
|colspan=2 align=center| '''Identification'''
+
}}
|-
+
{{!-}}
| [[Birefringence]] || {{{birefringence}}}
+
<!-------Colors----------->
|-
+
{{#if:{{{colors|}}} | <!--then:-->
| [[Colors]] || {{{colors}}}
+
{{!}} '''[[Color]]s'''
|-
+
{{!}} {{{colors|}}} | <!--else-->
| [[Crystal habit]] || {{{chabit}}}
+
}}
|-
+
{{!-}}
| [[Crystal system]] || {{{csystem}}}
+
<!----Crystal habit ------>
|-
+
{{#if:{{{chabit|}}} | <!--then:-->
| [[cleavage planes|Cleavage]] || {{{cleavage}}}
+
{{!}} '''[[Crystal habit]]'''
|-
+
{{!}} {{{chabit|}}} | <!--else-->
| [[Dispersion]] || {{{dispersion}}}
+
}}
|-
+
{{!-}}
| [[Fracture]] || {{{fracture}}}
+
<!----Crystal system------>
|-
+
{{#if:{{{csystem|}}} | <!--then:-->
| [[Hardness]] || {{{hardness}}}
+
{{!}} '''[[Crystal system]]'''
|-
+
{{!}} {{{csystem|}}} | <!--else-->
| [[Luster]] || {{{luster}}}
+
}}
|-
+
{{!-}}
| [[Luminescence]] || {{{luminescence}}}
+
<!----Cleavage------------>
|-
+
{{#if:{{{cleavage|}}} | <!--then:-->
| [[Name Origin]] || {{{nameorigin}}}
+
{{!}} '''[[Cleavage planes|Cleavage]]'''
|-
+
{{!}} {{{cleavage|}}} | <!--else-->
| [[Optics]] || {{{optics}}}
+
}}
|-
+
{{!-}}
| [[Pleochroism]] || {{{pleochroism}}}
+
<!----Dispersion---------->
|-
+
{{#if:{{{dispersion|}}} | <!--then:-->
| [[Specific Gravity]] || {{{sgravity}}}
+
{{!}} '''[[Dispersion]]'''
|-
+
{{!}} {{{dispersion|}}} | <!--else-->
| [[Spectral]] || {{{spectral}}}
+
}}
|-
+
{{!-}}
| [[Streak]] || {{{streak}}}
+
<!----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:Mineral]]</includeonly><noinclude>
+
<includeonly>[[Category:Minerals]]</includeonly>
{{TemplateDoc|pages=Article pages|purpose=Mineral infobox|cat=Mineral}}
+
<noinclude>[[Category:Template]]
{{Parms2|
+
{{TemplateDoc|pages=Mineral articles|purpose=Infobox|cat=Minerals}}
{{Parm2|Name|The element name|yes}}
+
{{Parms|
{{Parm2|Various other (as shown in the template above)|As indicated in the template above|yes}}
+
{{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=
|}
}}