வார்ப்புரு:Speciesbox/doc
{{Documentation subpage}}
 {{Lua|Module:Autotaxobox}}{{clear}}
 {{Automatic_taxobox/doc/nav/boxed}}
 &lt;!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --&gt;
 
 This template is used to display a taxobox for a species whose parent's taxonomy is stored in the [[Wikipedia:Automated_taxobox_system/taxonomy_templates|taxonomy templates]] of the [[WP:Automated taxobox system|automated taxobox system]]. A requirement is that the name of the species is displayed as a simple binomial (i.e. in the form ''Genus species''). In a few special cases, the name of the species is displayed differently (as for example at ''[[Halictus? savenyei]]''), when [[Template:Automatic taxobox]] is used.
 
 Using this template effectively requires some familiarity with the automated taxobox system; see the [[WP:Automated taxobox system/intro|introduction to the system]].
 
 The Speciesbox template does not require or make use of a taxonomy template for the species; it only uses the taxonomy template for the parent taxon, normally the genus.
 
 == Usage ==
 Usage is basically the same as [[Template:Automatic taxobox]] (with one slight variation noted below).
 
 There are five main cases to consider in using this template:
 * [[#Simple cases|Simple cases]], where the species is not a hybrid so that the × symbol is not present, the genus name is unique and not duplicated between kingdoms, and the species is not the only one in the genus.
 * [[#Hybrid species|Hybrid species names]], where the symbol × is required.
 * [[#Genus names duplicated across kingdoms|Species where the genus name is duplicated between kingdoms]], so the taxonomy for the genus must distinguish between kingdoms (e.g. [[Acanthocarpus (plant)|''Acanthocarpus'' (plant)]] and [[Acanthocarpus (crab)|''Acanthocarpus'' (crab)]]).
 * [[#Monospecific genera|Monospecific genera]], where the species and genus articles are combined, with the article title being the genus name.
 * [[#Parent taxon is not the genus|Parent taxon not the genus]], where the parent taxon must be specified as it cannot be deduced from the binomial.
 
 === Simple cases ===
 If the article is about a species whose binomial and genus name are both straightforward (e.g. no rank between the species and its genus, no hybrid symbol, no parenthesized disambiguation in the genus name), then the minimum requirement is to specify the &lt;code&gt;taxon&lt;/code&gt; parameter:&lt;ref group=note&gt;If the &lt;code&gt;taxon&lt;/code&gt; or &lt;code&gt;genus&lt;/code&gt;/&lt;code&gt;species&lt;/code&gt; parameters are omitted, the template will try to use the page title as the taxon name. This is deprecated, since it is not self-documenting, so is confusing to editors not familiar with the template, and causes problems if the page is moved.&lt;/ref&gt;
 * {{para|taxon|name of the species without any formatting (e.g. Quercus major, Lobatus gigas)}}
 
 :(Alternatively you can use the &lt;code&gt;genus&lt;/code&gt; and &lt;code&gt;species&lt;/code&gt; parameters separately – this is different from {{tl|Automatic taxobox}}:
 :* {{para|genus|name of the genus without any formatting (e.g. Quercus, Lobatus)}}
 :* {{para|species|specific epithet or name without any formatting (e.g. major, gigas)}}
 :This slightly reduces the processing needed.)
 
 If necessary, you can also use:
 * {{para|subgenus|link to subgenus}} – deprecated, use {{para|parent}} – [[#Parent taxon is not the genus|see below]]
 * {{para|extinct|yes}} if the species (but not the genus) is extinct (if the genus is extinct, this should be marked in its taxonomy template, so will be picked up automatically); &lt;code&gt;true&lt;/code&gt; is also accepted.
 
 It's not necessary to include {{tl|italic title}} in the article; this will be added automatically by the Speciesbox template if needed.
 
 For more complicated cases, see the other sections below.
 
 ==== Simple examples ====
 * Page at the binomial name; displayed taxobox to have the binomial name as its title, e.g. ''[[Lobatus gigas]]''.
 
 :&lt;code&gt;&lt;nowiki&gt;{{Speciesbox&lt;/nowiki&gt;
 :| taxon = Lobatus gigas&lt;/code&gt;
 :&lt;code&gt;| authority = (Linnaeus, 1758)&lt;/code&gt; ''--optional; this is the binomial authority''
 :&lt;code&gt;...&lt;/code&gt; ''--other optional parameters, e.g. for an image''
 :&lt;code&gt;&lt;nowiki&gt;}}&lt;/nowiki&gt;&lt;/code&gt;
 
 * Page at the binomial name; displayed taxobox to have the common name as its title, e.g. ''[[Allium moly]]''.
 
 :&lt;code&gt;&lt;nowiki&gt;{{Speciesbox&lt;/nowiki&gt;
 :| name = Golden garlic&lt;/code&gt; ''--required if title of taxobox ≠ taxon name''
 :&lt;code&gt;| taxon = Allium moly&lt;/code&gt;
 :&lt;code&gt;| authority = L.&lt;/code&gt; ''--optional; this is the binomial authority''
 :&lt;code&gt;...&lt;/code&gt; ''--other optional parameters, e.g. for an image''
 :&lt;code&gt;&lt;nowiki&gt;}}&lt;/nowiki&gt;&lt;/code&gt;
 
 * Page at the common name; displayed taxobox to have the same common name as its title, e.g. [[Garlic chives]].
 
 :&lt;code&gt;&lt;nowiki&gt;{{Speciesbox&lt;/nowiki&gt;
 :| name = Garlic chives&lt;/code&gt; ''--optional''
 :&lt;code&gt;| taxon = Allium tuberosum&lt;/code&gt; ''--essential''
 :&lt;code&gt;...&lt;/code&gt; ''--other optional parameters, e.g. for an image''
 :&lt;code&gt;&lt;nowiki&gt;}}&lt;/nowiki&gt;&lt;/code&gt;
 
 === Hybrid species ===
 Care is needed to obtain the correct italicization of hybrid species names in the displayed taxobox since the hybrid sign, ×, should not be italicized, whereas the rest of the binomial should be. The example below shows one way of achieving the desired effect. Assume that the name of the article is &quot;Polygonatum × hybridum&quot;, which should display as the title &quot;[[Polygonatum × hybridum|''Polygonatum'' × ''hybridum'']]&quot;.
 
 :&lt;code&gt;&lt;nowiki&gt;{{DISPLAYTITLE:''Polygonatum'' × ''hybridum''}}&lt;/nowiki&gt;
 :&lt;nowiki&gt;{{Speciesbox&lt;/nowiki&gt;
 :| taxon   = Polygonatum &lt;nowiki&gt;{{hybrid}}&lt;/nowiki&gt; hybridum
 :| ...
 :}}&lt;/code&gt;
 
 Notes:
 * Use &lt;code&gt;&lt;nowiki&gt;{{hybrid}}&lt;/nowiki&gt;&lt;/code&gt; rather than the × character in the value of the &lt;code&gt;&lt;nowiki&gt;taxon&lt;/nowiki&gt;&lt;/code&gt; parameter; this ensures that it will not be italicized in the displayed taxobox.
 * In the article body, you can either use &lt;code&gt;&lt;nowiki&gt;''Polygonatum'' × ''hybridum''&lt;/nowiki&gt;&lt;/code&gt; or &lt;code&gt;&lt;nowiki&gt;''Polygonatum {{hybrid}} hybridum''&lt;/nowiki&gt;&lt;/tt&gt; to obtain the correct italicization.
 
 === Genus names duplicated across kingdoms ===
 A special case is where the name of the genus is duplicated in different kingdoms, e.g. ''Acanthocarpus'', which is used for a plant and a crab. The taxonomy template for the plant has to be at [[Template:Taxonomy/Acanthocarpus (plant)]] to allow there to be a separate page at &quot;Template:Taxonomy/Acanthocarpus (crab)&quot;. Consider the page ''[[Acanthocarpus preissii]]''. The taxobox has to be set up in this way:
 
 :&lt;tt&gt;&lt;nowiki&gt;{{Speciesbox&lt;/nowiki&gt;
 :| genus   = Acanthocarpus (plant)
 :| species = preissii
 :| ...
 :}}&lt;/tt&gt;
 
 The corresponding taxonomy template for the genus, [[:Template:Taxonomy/Acanthocarpus (plant)]], contains the line:
 
 :&lt;tt&gt;| link  = Acanthocarpus (plant)|Acanthocarpus&lt;/tt&gt;
 
 to ensure that wikilinks are to &quot;Acanthocarpus (plant)&quot; whereas the displayed genus name is &quot;''Acanthocarpus''&quot;.
 
 Note that this approach is ''only'' necessary when the disambiguation is needed because genus names are duplicated across kingdoms.&lt;!--Need an example here? Previously used Liriope muscari, but now that there's a jellyfish genus with this name it doesn't work--&gt;
 
 === Monospecific genera ===
 Another special case is where the article is about a genus with only one species. The article will be at the genus name, but the final taxon to be displayed in the taxobox should be the species. An example is ''[[Aphyllanthes]]'', with the sole species ''Aphyllanthes monspeliensis''.
 
 :&lt;tt&gt;&lt;nowiki&gt;{{Speciesbox&lt;/nowiki&gt;
 :|taxon = Aphyllanthes monspeliensis
 :|parent_authority = L. &lt;/tt&gt;''--authority for genus''&lt;tt&gt;
 :|authority = L. &lt;/tt&gt;''--authority for binomial (i.e. the species)''&lt;tt&gt;
 :|... &lt;/tt&gt;''--other optional parameters''&lt;tt&gt;
 :}}&lt;/tt&gt;
 
 The use of the Speciesbox template with the &lt;tt&gt;taxon&lt;/tt&gt; parameter set to the species name ensures that the taxobox ends with the binomial name even though the page title is the genus name. The mediawiki software automatically replaces the generated wikilink &lt;nowiki&gt;[[Aphyllanthes]]&lt;/nowiki&gt; by bold text since it goes to the same page. In this case we want to display the authority for both the species and the genus, since there is no other article. The parameters &lt;tt&gt;parent_authority&lt;/tt&gt;, &lt;tt&gt;grandparent_authority&lt;/tt&gt;, etc. are the way to display authorities up the classification hierarchy.
 
 ===Parent taxon is not the genus===
 By default, the Speciesbox template uses the genus name as the name of the parent taxon. If this is not the case, because the parent taxon is at a rank between the species and its genus, such as subgenus or botanical section, then use:
 *{{para|parent|''parent_taxon''}}
 
 &quot;Template:Taxonomy/''parent_taxon''&quot; must then exist. Conventions for the name of a taxonomy template at a rank between species and genus include:
 *&quot;Template:Taxonomy/''Genus'' (''Subgenus'')&quot; for a zoological subgenus, e.g. [[Template:Taxonomy/Mus (Coelomys)]]
 *&quot;Template:Taxonomy/''Genus'' subg. ''Subgenus''&quot; for a botanical subgenus, e.g. [[Template:Taxonomy/Pinus subg. Pinus]]
 *&quot;Template:Taxonomy/''Genus'' sect. ''Section''&quot; for a botanical section, e.g. [[Template:Taxonomy/Pinus sect. Trifoliae]]
 
 Thus if a zoological subgenus is to be shown, then the taxobox is set up in this way:
 
 :&lt;code&gt;&lt;nowiki&gt;{{Speciesbox&lt;/nowiki&gt;
 :| name = House mouse
 :| parent = Mus (Mus)
 :| taxon = Mus musculus
 :| ...
 :}}&lt;/code&gt;
 
 == Italicizing the article title ==
 The template can normally determine whether the page title matches the species or the genus in the taxobox, and if so outputs {{tl|italic title}}, so usually it is not necessary to add this template. In a very few cases the automatic italicization will be wrong (e.g. if the article is at the English name and this is the same as the genus name). Automatic italicization can be over-ridden by setting {{para|italic_title|no}}.
 
 == Requirement for correct display ==
 The template will generate a taxobox which will display correctly only if the taxonomy for the genus (or {{para|parent}}) has already been created (i.e. &quot;Template:Taxonomy/''genusname''&quot; or &quot;Template:Taxonomy/''parent''&quot; already exists). If it does not, you will be asked to create it. One way is to look for the &quot;fix&quot; link and open it.
 
 == See also ==
 * An example: [[Template:Speciesbox/example]]
 * [[Template:Taxonbar]]
 
 ==Notes==
 {{reflist|group=note}}
 
 ==Template Data==
 {{TemplateDataHeader}}
 &lt;templatedata&gt;
 {
 	&quot;params&quot;: {
 		&quot;taxon&quot;: {
 			&quot;type&quot;: &quot;string&quot;,
 			&quot;suggested&quot;: true
 		},
 		&quot;authority&quot;: {
 			&quot;type&quot;: &quot;string&quot;,
 			&quot;suggested&quot;: true
 		},
 		&quot;genus&quot;: {
 			&quot;type&quot;: &quot;string&quot;
 		},
 		&quot;species&quot;: {
 			&quot;type&quot;: &quot;string&quot;
 		},
 		&quot;subgenus&quot;: {
 			&quot;type&quot;: &quot;string&quot;
 		},
 		&quot;parent&quot;: {
 			&quot;type&quot;: &quot;string&quot;
 		},
 		&quot;extinct&quot;: {
 			&quot;type&quot;: &quot;string&quot;
 		},
 		&quot;name&quot;: {
 			&quot;type&quot;: &quot;string&quot;
 		},
 		&quot;parent_authority&quot;: {
 			&quot;type&quot;: &quot;string&quot;
 		},
 		&quot;image&quot;: {
 			&quot;type&quot;: &quot;wiki-file-name&quot;,
 			&quot;suggested&quot;: true
 		},
 		&quot;image_caption&quot;: {
 			&quot;type&quot;: &quot;string&quot;
 		},
 		&quot;status&quot;: {
 			&quot;type&quot;: &quot;string&quot;
 		},
 		&quot;status_system&quot;: {
 			&quot;type&quot;: &quot;string&quot;
 		},
 		&quot;status_ref&quot;: {
 			&quot;type&quot;: &quot;string&quot;
 		},
 		&quot;fossil_range&quot;: {
 			&quot;type&quot;: &quot;string&quot;
 		},
 		&quot;image_width&quot;: {
 			&quot;deprecated&quot;: &quot;Use image_upright&quot;,
 			&quot;type&quot;: &quot;string&quot;
 		},
 		&quot;synonyms_ref&quot;: {
 			&quot;type&quot;: &quot;string&quot;
 		},
 		&quot;synonyms&quot;: {
 			&quot;type&quot;: &quot;string&quot;
 		},
 		&quot;display_parents&quot;: {
 			&quot;type&quot;: &quot;string&quot;
 		},
 		&quot;range_map&quot;: {
 			&quot;type&quot;: &quot;wiki-file-name&quot;
 		},
 		&quot;image2&quot;: {
 			&quot;type&quot;: &quot;wiki-file-name&quot;
 		},
 		&quot;range_map_caption&quot;: {
 			&quot;type&quot;: &quot;string&quot;
 		},
 		&quot;image2_caption&quot;: {},
 		&quot;subdivision_ranks&quot;: {
 			&quot;type&quot;: &quot;string&quot;
 		},
 		&quot;subdivision&quot;: {
 			&quot;type&quot;: &quot;string&quot;
 		},
 		&quot;status2&quot;: {
 			&quot;type&quot;: &quot;string&quot;
 		},
 		&quot;status2_ref&quot;: {
 			&quot;type&quot;: &quot;string&quot;
 		},
 		&quot;status2_system&quot;: {},
 		&quot;image_upright&quot;: {
 			&quot;type&quot;: &quot;number&quot;
 		},
 		&quot;grandparent_authority&quot;: {
 			&quot;type&quot;: &quot;string&quot;
 		},
 		&quot;image_alt&quot;: {
 			&quot;type&quot;: &quot;string&quot;
 		},
 		&quot;range_map_upright&quot;: {
 			&quot;type&quot;: &quot;number&quot;
 		},
 		&quot;range_map_alt&quot;: {
 			&quot;type&quot;: &quot;string&quot;
 		},
 		&quot;greatgrandparent_authority&quot;: {
 			&quot;type&quot;: &quot;string&quot;
 		},
 		&quot;range_map_width&quot;: {
 			&quot;type&quot;: &quot;string&quot;,
 			&quot;deprecated&quot;: &quot;Use range_map_upright&quot;
 		},
 		&quot;range_map2&quot;: {
 			&quot;type&quot;: &quot;wiki-file-name&quot;
 		},
 		&quot;range_map2_caption&quot;: {
 			&quot;type&quot;: &quot;string&quot;
 		},
 		&quot;range_map2_alt&quot;: {
 			&quot;type&quot;: &quot;string&quot;
 		},
 		&quot;range_map2_width&quot;: {
 			&quot;type&quot;: &quot;string&quot;,
 			&quot;deprecated&quot;: &quot;Use range_map2_upright&quot;
 		},
 		&quot;range_map2_upright&quot;: {
 			&quot;type&quot;: &quot;number&quot;
 		},
 		&quot;image2_alt&quot;: {
 			&quot;type&quot;: &quot;string&quot;
 		},
 		&quot;image2_upright&quot;: {
 			&quot;type&quot;: &quot;number&quot;
 		},
 		&quot;image2_width&quot;: {
 			&quot;type&quot;: &quot;string&quot;,
 			&quot;deprecated&quot;: &quot;Use image2_upright&quot;
 		},
 		&quot;classification_status&quot;: {
 			&quot;type&quot;: &quot;string&quot;
 		},
 		&quot;color_as&quot;: {
 			&quot;type&quot;: &quot;string&quot;
 		},
 	},
 	&quot;description&quot;: &quot;An infobox for species of organisms where {{tl|Automatic taxobox}} is used at the genus and higher ranks&quot;,
 	&quot;paramOrder&quot;: [
 		&quot;color_as&quot;,
 		&quot;name&quot;,
 		&quot;taxon&quot;,
 		&quot;authority&quot;,
 		&quot;parent&quot;,
 		&quot;fossil_range&quot;,
 		&quot;image&quot;,
 		&quot;image_width&quot;,
 		&quot;image_upright&quot;,
 		&quot;image_alt&quot;,
 		&quot;image_caption&quot;,
 		&quot;image2&quot;,
 		&quot;image2_width&quot;,
 		&quot;image2_upright&quot;,
 		&quot;image2_alt&quot;,
 		&quot;image2_caption&quot;,
 		&quot;status&quot;,
 		&quot;status_system&quot;,
 		&quot;status_ref&quot;,
 		&quot;status2&quot;,
 		&quot;status2_system&quot;,
 		&quot;status2_ref&quot;,
 		&quot;extinct&quot;,
 		&quot;classification_status&quot;,
 		&quot;greatgrandparent_authority&quot;,
 		&quot;grandparent_authority&quot;,
 		&quot;parent_authority&quot;,
 		&quot;display_parents&quot;,
 		&quot;genus&quot;,
 		&quot;subgenus&quot;,
 		&quot;species&quot;,
 		&quot;subdivision_ranks&quot;,
 		&quot;subdivision&quot;,
 		&quot;range_map&quot;,
 		&quot;range_map_width&quot;,
 		&quot;range_map_upright&quot;,
 		&quot;range_map_alt&quot;,
 		&quot;range_map_caption&quot;,
 		&quot;range_map2&quot;,
 		&quot;range_map2_width&quot;,
 		&quot;range_map2_upright&quot;,
 		&quot;range_map2_alt&quot;,
 		&quot;range_map2_caption&quot;,
 		&quot;synonyms&quot;,
 		&quot;synonyms_ref&quot;
 	]
 }
 &lt;/templatedata&gt;
 
 &lt;includeonly&gt;{{#ifeq:{{SUBPAGENAME}}|sandbox | |
 &lt;!-- Categories below this line, please; interwikis at Wikidata --&gt;
 [[Category:Taxobox templates]]