Difference between revisions of "Template:Taxonomy"

From Conservapedia
Jump to navigation Jump to search
m
(testing new version of template; will rollback if crashes and burns)
Line 1: Line 1:
−
<table class="infobox" style="float: right; text-align: center; font-size: 80%; clear:right; background:grey; border: 10px solid green;" cellspacing="0" cellpadding="4">
+
{| 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=0 align="right" cellpadding="2" cellspacing="0" width="250"
−
{| class="infobox bordered" style="float: right; margin: 0 0 0.5em 0.5em; text-align: left; font-size: 90%;"
 
 
|-
 
|-
−
| colspan="2" style="text-align:center; font-size: large;background: lightgreen no-repeat scroll top left;" | '''{{PAGENAME}}'''
+
!colspan="2" align="center" style="color: black; font-size: 120%; height: 20px; background: lightgreen no-repeat scroll top left;"| '''{{{name|{{PAGENAME}}}}}'''
 
|-
 
|-
−
| colspan="2" style="text-align:center;" | {{#if:{{{image|}}}|[[image:{{{image}}}|200px]]|}}<br>{{{caption|}}}
+
<!----------Image---------->
 +
{{!}}align="center" colspan="2"{{!}}{{#if:{{{image|}}}|[[image:{{{image}}}|200px]]|}}
 +
{{!-}}
 
|-  
 
|-  
 
!colspan="2" align="center" style="color: black; height: 24px; background: lightgreen  no-repeat scroll top left;"|[[Scientific Classification]]
 
!colspan="2" align="center" style="color: black; height: 24px; background: lightgreen  no-repeat scroll top left;"|[[Scientific Classification]]
 
|-
 
|-
−
! [[Kingdom]]:
+
<!---------Kingdom---------->
−
|<center>{{#if:{{{kingdom|}}}|[[{{{kingdom|}}}]]|}}</center>
+
{{#if:{{{kingdom|}}} | <!--then:-->
−
|-  
+
{{!}} '''Kingdom'''
−
! [[Phylum]]:
+
{{!}} [[{{{kingdom|}}}]] | <!--else-->
−
|<center>{{{phylum|}}}</center>
+
}}
−
|-
+
{{!-}}
−
! [[Subphylum]]:
+
<!---------Phylum---------->
−
|<center>{{{subphylum|}}}</center>
+
{{#if:{{{phylum|}}} | <!--then:-->
−
|-  
+
{{!}} '''Phylum'''
−
! [[Class (biology)|Class]]:
+
{{!}} [[{{{phylum|}}}]] | <!--else-->
−
|<center>{{{class|}}}</center>
+
}}
−
|-
+
{{!-}}
−
! Subclass:
+
<!---------Sub-phylum---------->
−
|<center>{{{subclass|}}}</center>
+
{{#if:{{{subphylum|}}} | <!--then:-->
−
|-
+
{{!}} '''Sub-phylum'''
−
! [[Order (biology)|Order]]:
+
{{!}} [[{{{subphylum|}}}]] | <!--else-->
−
|<center>{{{order|}}}</center>
+
}}
−
|-
+
{{!-}}
−
! Suborder:
+
<!---------Division if plant---------->
−
|<center>{{{suborder|}}}</center>
+
{{#if:{{{division|}}} | <!--then:-->
−
|-
+
{{!}} '''Division'''
−
! [[Family (biology)|Family]]:
+
{{!}} [[{{{division|}}}]] | <!--else-->
−
|<center>{{{family|}}}</center>
+
}}
−
|-
+
{{!-}}
−
! Subfamily:
+
<!---------Subdivision if plant---------->
−
|<center>{{{subfamily|}}}</center>
+
{{#if:{{{subdivision|}}} | <!--then:-->
−
|-
+
{{!}} '''Sub-division'''
−
! [[Genus]]:
+
{{!}} [[{{{subdivision|}}}]] | <!--else-->
−
|<center>{{{genus|}}}</center>
+
}}
−
|-
+
{{!-}}
−
!colspan="2" align="center" style="color: black; height: 24px; background: lightgreen  no-repeat scroll top left;"|[[Binomial Name]]
+
<!---------Class---------->
−
|-
+
{{#if:{{{class|}}} | <!--then:-->
−
|colspan="2"|{{#if:{{{genus|}}}{{{species|}}}|''{{{genus}}} {{{species}}}|}}
+
{{!}} '''Class'''
−
|-
+
{{!}} [[{{{class|}}}]] | <!--else-->
−
| colspan="2" style="font-size: smaller;" | {{{footnotes|}}}
+
}}
 +
{{!-}}
 +
<!---------Sub-class---------->
 +
{{#if:{{{subclass|}}} | <!--then:-->
 +
{{!}} '''Sub-class'''
 +
{{!}} [[{{{subclass|}}}]] | <!--else-->
 +
}}
 +
{{!-}}
 +
<!---------Order---------->
 +
{{#if:{{{order|}}} | <!--then:-->
 +
{{!}} '''Order'''
 +
{{!}} [[{{{order|}}}]] | <!--else-->
 +
}}
 +
{{!-}}
 +
<!---------Sub-order---------->
 +
{{#if:{{{suborder|}}} | <!--then:-->
 +
{{!}} '''Sub-order'''
 +
{{!}} [[{{{suborder|}}}]] | <!--else-->
 +
}}
 +
{{!-}}
 +
<!---------Family---------->
 +
{{#if:{{{family|}}} | <!--then:-->
 +
{{!}} '''Family'''
 +
{{!}} [[{{{family|}}}]] | <!--else-->
 +
}}
 +
{{!-}}
 +
<!---------Sub-family---------->
 +
{{#if:{{{subfamily|}}} | <!--then:-->
 +
{{!}} '''Sub-family'''
 +
{{!}} [[{{{subfamily|}}}]] | <!--else-->
 +
}}
 +
{{!-}}
 +
<!---------Genus---------->
 +
{{#if:{{{genus|}}} | <!--then:-->
 +
{{!}} '''Genus'''
 +
{{!}} [[{{{genus|}}}]] | <!--else-->
 +
}}
 +
{{!-}}
 +
<!---------Binomial name---------->
 +
{{#if:{{{binomialname|}}} | <!--then:-->
 +
{{!}} '''Binomial name'''
 +
{{!}} [[{{{binomialname|}}}]] | <!--else-->
 +
}}
 +
{{!-}}
 +
<!---------Sub-species---------->
 +
{{#if:{{{sub|}}} | <!--then:-->
 +
{{!}} '''Subspecies'''
 +
{{!}} [[{{{sub|}}}]] | <!--else-->
 +
}}
 +
{{!-}}
 +
<!---------Alternative subspecies text---------->
 +
{{#if:{{{alt|}}} | <!--then:-->
 +
{{!}} '''Subspecies '''
 +
{{!}} [[{{{alt|}}}]] | <!--else-->
 +
}}
 +
{{!-}}
 
|}<noinclude>
 
|}<noinclude>
−
{{TemplateDoc|pages=Article pages|purpose=Taxonomy information|cat=}}
+
 
 +
{{TemplateDoc|pages=Article pages|purpose=Scientific Classification|cat=}}
 
{{Parms|
 
{{Parms|
−
{{Parm|name|Name of organism|yes|}}
+
{{Parm|name|Name of animal or plant|no|defaults to page name}}
−
{{Parm|image|Picture of organism|no|Only the file name is required}}
+
{{Parm|image|Picture of animal or plant|no|only the file name is required}}
−
{{Parm|caption|Caption for image|no|}}
 
 
{{Parm|kingdom|Kingdom|no|}}
 
{{Parm|kingdom|Kingdom|no|}}
−
{{Parm|phylum|Phylum|no|}}
+
{{Parm|phylum|Phylum|no|if animal|}}
−
{{Parm|subphylum|Sub-phylum|no|}}
+
{{Parm|subphylum|Subphylum|no|if animal|}}
 +
{{Parm|division|Division|no|if plant|}}
 +
{{Parm|subdivision|Subdivision|no|if plant|}}
 
{{Parm|class|Class|no|}}
 
{{Parm|class|Class|no|}}
 
{{Parm|subclass|Subclass|no|}}
 
{{Parm|subclass|Subclass|no|}}
 
{{Parm|order|Order|no|}}
 
{{Parm|order|Order|no|}}
−
{{Parm|suborder|Sub-order|no|}}
+
{{Parm|suborder|Suborder|no|}}
 
{{Parm|family|Family|no|}}
 
{{Parm|family|Family|no|}}
−
{{Parm|subfamily|Sub-family|no|}}
+
{{Parm|subfamily|Subfamily|no|}}
 
{{Parm|genus|Genus|no|}}
 
{{Parm|genus|Genus|no|}}
−
{{Parm|species|Species|no|}}
+
{{Parm|binomialname|Binomial name|no|}}
−
{{Parm|footnotes|Footnotes|no|}}
+
{{Parm|sub|Subspecies|no|if one subspecies covered by article|}}
 +
{{Parm|alt|Alternative text|no|eg See article for list of subspecies|}}
 
}}
 
}}
 +
 +
===Sample Data Block===
 +
The following may be copied and pasted at the top of the page being edited
 +
<pre>
 +
<nowiki>{{</nowiki>President<br>
 +
|name=<br>
 +
|image=<br>
 +
|kingdom=<br>
 +
|phylum=<br>
 +
|subphylum=<br>
 +
|division=<br>
 +
|subdivision=<br>
 +
|class=<br>
 +
|subclass=<br>
 +
|order=<br>
 +
|suborder=<br>
 +
|family=<br>
 +
|subfamily=<br>
 +
|genus=<br>
 +
|binomial name=<br>
 +
|sub=<br>
 +
|alt=<br>
 +
<nowiki>}}</nowiki>
 +
</pre>
 +
 
</noinclude>
 
</noinclude>

Revision as of 23:03, July 7, 2007

Taxonomy
Scientific Classification

Template: Taxonomy
Use on Article pages
Use for Scientific Classification
Category template applies to page (none)
Template Parameters
(See using templates).
Name Purpose Required? Comment
name Name of animal or plant no defaults to page name
image Picture of animal or plant no only the file name is required
kingdom Kingdom no
phylum Phylum no if animal
subphylum Subphylum no if animal
division Division no if plant
subdivision Subdivision no if plant
class Class no
subclass Subclass no
order Order no
suborder Suborder no
family Family no
subfamily Subfamily no
genus Genus no
binomialname Binomial name no
sub Subspecies no if one subspecies covered by article
alt Alternative text no eg See article for list of subspecies


Sample Data Block

The following may be copied and pasted at the top of the page being edited

{{President<br>
|name=<br>
|image=<br>
|kingdom=<br>
|phylum=<br>
|subphylum=<br>
|division=<br>
|subdivision=<br>
|class=<br>
|subclass=<br>
|order=<br>
|suborder=<br>
|family=<br>
|subfamily=<br>
|genus=<br>
|binomial name=<br>
|sub=<br>
|alt=<br>
}}