Difference between revisions of "Template:Infraspeciesbox"
imported>Matt Fitzpatrick (expanded alt/title text on pencil icon from letter "e" to more descriptive "edit") |
imported>Peter coxhead (updated to tested sandbox version) |
||
| Line 17: | Line 17: | ||
-- | -- | ||
-------------------------------- Invoke {Taxobox/core} | -------------------------------- Invoke {Taxobox/core} | ||
| − | The nowiki that follows is needed because of parser bug T18700--></noinclude><nowiki/>{{Taxobox/core | + | The nowiki that follows is needed because of parser bug T18700--></noinclude><nowiki/>{{Taxobox/core/sandbox |
<includeonly>| edit link = {{{edit link|{{{edit_link|edit}}} }}}</includeonly><noinclude><!-- | <includeonly>| edit link = {{{edit link|{{{edit_link|edit}}} }}}</includeonly><noinclude><!-- | ||
FOSSIL RANGE: | FOSSIL RANGE: | ||
| Line 34: | Line 34: | ||
In the format "author, year". | In the format "author, year". | ||
--> | --> | ||
| − | | trinomial_authority = {{{authority|{{{trinomial authority|{{{ | + | | trinomial_authority = {{{authority|{{{trinomial_authority|{{{trinomial authority|{{{varietas_authority|{{{varietas authority|{{{variety_authority|{{{variety authority|{{{subspecies_authority|{{{subspecies authority|}}}}}}}}}}}}}}}}}}}}}}}}}}} |
| − | | | + | | subspecies_authority = {{#if:{{{varietas|{{{variety|}}}}}}|{{{subspecies_authority|{{{subspecies authority|{{{parent_authority|{{{parent authority|}}}}}}}}}}}}}} |
| − | | | + | | species_authority = {{{species_authority|{{{species authority|{{{binomial_authority|{{{binomial authority|{{#switch:{{#expr:{{#if:{{{subspecies|}}}|1|0}}+{{#if:{{{varietas|{{{variety|}}}}}}|1|0}}}}|1={{{parent_authority|{{{parent authority|}}}}}}|2={{{grandparent_authority|{{{grandparent authority|}}}}}}}}}}}}}}}}}}}} |
| − | | | + | | subgenus_authority = {{{subgenus_authority|{{{subgenus authority|{{#switch:{{#expr:{{#if:{{{subspecies|}}}|1|0}}+{{#if:{{{varietas|{{{variety|}}}}}}|1|0}}}}|1={{{grandparent_authority|{{{grandparent authority|}}}}}}|2={{{greatgrandparent_authority|{{{greatgrandparent authority|}}}}}}}}}}}}}}<!-- |
| − | + | The following are used by the automated taxobox system: --> | |
| − | + | | authority = {{{authority|}}} | |
| − | | | + | | parent_authority = {{{parent_authority|{{{parent authority|}}}}}} |
| − | | | + | | grandparent_authority = {{{grandparent_authority|{{{grandparent authority|}}}}}} |
| − | | | + | | greatgrandparent_authority = {{{greatgrandparent_authority|{{{greatgrandparent authority|}}}}}} |
| + | | greatgreatgrandparent_authority = {{{greatgreatgrandparent_authority|{{{greatgreatgrandparent authority|}}}}}} | ||
| + | | offset = {{#expr:1+{{#if:{{{subgenus|}}}|1|0}}+{{#if:{{{subspecies|}}}|1|0}}+{{#if:{{{varietas|{{{variety|}}}}}}|1|0}}}} | ||
| + | <noinclude><!-- | ||
-- colour: (Note UK spelling here) There are two cases: | -- colour: (Note UK spelling here) There are two cases: | ||
1) the parameter color_as has a value – the colour is found directly using {{Taxobox colour|color_as}} | 1) the parameter color_as has a value – the colour is found directly using {{Taxobox colour|color_as}} | ||
Revision as of 18:23, 31 December 2018
| 30px | This template uses Lua: |
Taxonomy templates
Taxobox templates
- Which should be used?
- Changing the taxa displayed
- Convert a taxobox to an automated taxobox
- Glossary of automated taxobox parameters
- Automatic taxobox – mainly for genera and higher taxa
- Speciesbox – for a species
- Subspeciesbox – for an animal subspecies
- Infraspeciesbox – for a plant subspecies or variety
- Hybridbox – for an animal hybrid within a genus
- Ichnobox – for a trace fossil
- Oobox – for a fossil egg
- Virusbox – for viruses and non-cellular life
- Paraphyletic group – for concepts that do not correspond to a monophyletic clade
Template:Infraspeciesbox displays an automatic taxobox for a rank lower than species (an infraspecific rank) for taxa governed by the ICN (the botanical code). For taxa governed by the ICZN (the zoological code), see Template:Subspeciesbox.
At present it can only handle the ranks subspecies and variety (varietas) or the combination of the two.
Contents
Usage
The parameters are generally the same as Template:Subspeciesbox, which handles subspecies whose names are governed by the Zoological Code.
Subspecies only
Suppose that a species called Yucca grandiflora has a subspecies Y. g. subsp. laxifolia. Then:
{{Infraspeciesbox
| genus = Yucca
| species = grandiflora
| subspecies = laxifolia
| authority = A.Anon
}}
generates →Variety only
Suppose that the species Yucca grandiflora has a variety Y. g. var. tenuifolia, with no intervening subspecies. Then:
{{Infraspeciesbox
| genus = Yucca
| species = grandiflora
| varietas = tenuifolia
| authority = B.Anon
}}
generates →
(The parameter "variety" can be used in place of "varietas".)Subspecies and variety
Finally suppose that Y. g. var. tenuifolia is actually within Y. g. subsp. laxifolia. Then:
{{Infraspeciesbox
|genus = Yucca
|species = grandiflora
|subspecies = laxifolia
|varietas = tenuifolia
|authority = B.Anon
}}
generates →
Note that the ICN does not allow Y. g. subsp. laxifolia var. tenuifolia as a name.Authorities
If for some reason it is desired to attach authorities, this is done by working upwards from the lowest level taxon:
{{Infraspeciesbox
|genus = Rhododendron
|greatgrandparent_authority = L.
|subgenus = R. ''subg.'' Hymenanthes
|grandparent_authority = (Blume) K. Koch
|species = irroratum
|parent_authority = Franch.
|subspecies = pogonostylum
|authority = (Balf.f. & W.W.Sm.) D.F.Chamb.
}}
generates →Performance considerations
As of November 2017, this template had not been tested with many of the other possible parameters.
Template Data
TemplateData for Infraspeciesbox
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Name | name | no description | String | optional |
| Image | image | no description | File | suggested |
| Image_caption | image_caption | no description | String | optional |
| Image_alt | image_alt | no description | String | optional |
| Status | status | no description | String | optional |
| Status_system | status_system | no description | String | optional |
| Status_ref | status_ref | no description | String | optional |
| Genus | genus | no description | String | required |
| Species | species | no description | String | required |
| Species_authority | species_authority | no description | String | optional |
| Species_link | species_link | no description | String | optional |
| Subspecies | subspecies | no description | String | optional |
| Varietas | varietas | no description | String | optional |
| Authority | authority | no description | String | suggested |
| Subdivision_ranks | subdivision_ranks | no description | String | optional |
| Subdivision | subdivision | no description | String | optional |
| Range_map | range_map | no description | File | optional |
| Range_map_alt | range_map_alt | no description | String | optional |
| Range_map_caption | range_map_caption | no description | String | optional |
| Synonyms | synonyms | no description | String | optional |
| Synonyms_ref | synonyms_ref | no description | String | optional |
}}
| The above documentation is transcluded from Template:Infraspeciesbox/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |