Template:Speciesbox: Difference between revisions

From WikiMD's Wellness Encyclopedia

m 1 revision imported
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<noinclude> {{noindex-template}}<!--
<includeonly>
-====================================================================
{| class="infobox biota" style="width:22em; text-align:left; font-size:90%;"
- Template:Speciesbox - Generate a taxobox infobox for species
|-
-====================================================================
! colspan="2" style="text-align:center; font-size:125%; background:#d4e3ef;" | {{{name|''{{{genus|}}} {{{species|}}}''}}}
--
|-
--  This template chooses parameters to send to {Taxobox/core}, to
| colspan="2" style="text-align:center;" | {{#if:{{{image|}}}
--  generate a right-side taxobox infobox.  Most parameters are just
  | [[File:{{{image}}}|250px|alt={{{image_alt|}}}|{{{image_caption|}}}]]
--  passed directly; some are explained with a comment.  When run as
  | <!-- No image provided -->
--  stand-alone, the template shows Acacia aemula as sample output.
}}
--
{{#if:{{{image_caption|}}}|{{{image_caption}}}|}}
--  The genus name of the species is found by looking in order at
|-
--  (1) the genus parameter
| colspan="2" style="text-align:center; font-style:italic;" | ''{{{genus|}}} {{{species|}}}''
--  (2) the first word of the taxon parameter
|-
--  (3) the first word of the page name.
| '''Scientific classification'''
--  The species name/specific epithet is found by looking in order at
|-
--  (1) the species parameter
| Kingdom
--  (2) the rest of the taxon parameter after removing the first word
| {{{kingdom|}}}
--  (3) the rest of the page name after removing any final part in
|-
--      parentheses and then removing the first word.
| Phylum
--
| {{{phylum|}}}
--  The genus name is then the entry into the taxonomic hierarchy.
|-
--
| Class
--  A complication is that if the taxonomy template for the genus needs
| {{{class|}}}
--  disambiguation (i.e. is "Template:Taxonomy/GENUS (DISAMBIG)") then
|-
--  the parameters will be genus=GENUS (DISAMBIG) | species=EPITHET
| Order
--  Can also have genus=GENUS/QUALIFIER
| {{{order|}}}
--
|-
-------------------------------- Invoke {Taxobox/core}
| Family
The nowiki that follows is needed because of parser bug T18700--></noinclude><nowiki/>{{Taxobox/core<includeonly>
| {{{family|}}}
| edit link = {{{edit link|{{{edit_link|edit}}} }}}</includeonly> <noinclude> {{noindex-template}}<!--
|-
  --
| Genus
  -- fossil_range: If the specified fossil range is a period supported
| ''{{{genus|}}}''
  -- by templates {period_start} and {next_period}, then it incorporates
|-
  -- the specified range in template {geological range}, but checking
| Species
  -- to display properly. Otherwise, just passes parameter.
| ''{{{species|}}}''
  --></noinclude>
|-
| temporal_range = {{#if:{{{fossil_range|{{{fossil range|}}} }}}|{{#iferror:{{geological range|{{{temporal_range|{{{temporal range|{{{fossil_range|{{{fossil range|}}} }}} }}} }}} }}|{{{temporal_range|{{{temporal range|{{{fossil_range|{{{fossil range|}}} }}} }}} }}}|{{geological range|{{{temporal_range|{{{temporal range|{{{fossil_range|{{{fossil range|}}} }}} }}} }}} }} }} | {{#if:{{{oldest fossil|{{{oldest_fossil|}}} }}}|{{geological range|{{{oldest fossil|{{{oldest_fossil}}} }}}|{{{youngest fossil|{{{youngest_fossil|Recent}}} }}} }} }} }} <noinclude> {{noindex-template}}<!--
| Binomial name
PARENT: this is the taxon whose taxonomy template is used to find the taxonomic hierarchy; if
| {{#if:{{{binomial|}}}|''{{{binomial}}}''|''{{{genus|}}} {{{species|}}}''}}
not supplied as a parameter value, it defaults to the genus name.
|-
Template:Taxonomy/PARENT must exist. --></noinclude>
| Binomial authority
| parent = <includeonly>{{{parent|{{Speciesbox/getGenus|{{{taxon|}}}|{{{genus|}}}}}}}}</includeonly> <noinclude> {{noindex-template}}Acacia<!--
| {{{binomial_authority|}}}
DISPLAY PARENTS:
|-
Number of immediate parents to display. Defaults to 1 above species, normally the genus (which is displayed as
| Synonyms
a major rank, anyway).
| {{{synonyms|}}}
--></noinclude>
|}
| display_taxa = {{#expr:{{{display parents|{{{display_parents|1}}} }}}-1}} <noinclude> {{noindex-template}}<!--
</includeonly><noinclude>
AUTHORITY (etc):
== Usage ==
In the format "author, year". 
This template creates an infobox for species classification. To use it, insert the following code into an article:
Species-authority is redundant to binomial_authority; we'll just list it the once.  (This avoids reference-duplication errors, too.
 
| species_authority = {{{authority|{{{binomial authority|{{{binomial_authority|}}} }}} }}}--></noinclude>
<nowiki>{{Speciesbox
| authority = {{{authority|}}}
| name =
| parent_authority = {{{parent_authority|{{{parent authority|}}}}}}
| image =  
| grandparent_authority = {{{grandparent_authority|{{{grandparent authority|}}}}}}
| image_alt =
| greatgrandparent_authority = {{{greatgrandparent_authority|{{{greatgrandparent authority|}}}}}}
| image_caption =
| greatgreatgrandparent_authority = {{{greatgreatgrandparent_authority|{{{greatgreatgrandparent authority|}}}}}}
| genus =
| greatgreatgreatgrandparent_authority = {{{greatgreatgreatgrandparent_authority|{{{greatgreatgreatgrandparent authority|}}}}}}
| species =
| offset = 1
  | kingdom =
<noinclude> {{noindex-template}}<!--
| phylum =
NAME:
| class =
{{Speciesbox/name}} both determines the taxobox name and whether the page title should be italicized by
| order =
adding the {{italic title}} template.
| family =  
--></noinclude>
| binomial =
| name = {{Speciesbox/name|{{{name| <noinclude> {{noindex-template}}''Acacia aemula''</noinclude>}}}|{{{taxon|}}}|{{{genus|}}}|{{{species|}}}|{{PAGENAMEBASE}}|{{{italic_title|{{{italic title|yes}}}}}}}} <noinclude> {{noindex-template}}<!--
| binomial_authority =
-- colour:  (Note UK spelling here) There are two cases:
| synonyms =
1) the parameter color_as has a value – the colour is found directly using {{Taxobox colour|color_as}}
}}</nowiki>
2) otherwise – Module:Autotaxobox|taxoboxColour searches up the taxonomic hierarchy to try to find a taxon that
 
    determines the taxobox colour
== Parameters ==
--></noinclude>
* '''name''': Common name of the species.
| colour  = {{#if:{{{color_as|{{{colour_as|{{{color as|{{{colour as|}}}}}}}}}}}}|{{Taxobox colour|{{{color_as|{{{colour_as|{{{color as|{{{colour as|}}}}}}}}}}}}}}|{{#invoke:Autotaxobox|taxoboxColour|<includeonly>{{{parent|{{Speciesbox/getGenus|{{{taxon|}}}|{{{genus|}}}}}}}}</includeonly> <noinclude> {{noindex-template}}Acacia</noinclude> }} }}
* '''image''': File name of an image for the species.
| status  = {{{status|}}}
* '''image_alt''': Alternative text for the image (used for accessibility).
| status_system = {{{status system|{{{status_system|}}} }}}
* '''image_caption''': Caption for the image.
| status_ref = {{{status ref|{{{status_ref|}}} }}}
* '''genus''': Genus of the species.
| status2  = {{{status2|}}}
* '''species''': Species name (specific epithet).
| status2_system = {{{status2 system|{{{status2_system|}}} }}}
* '''kingdom''': Kingdom to which the species belongs.
| status2_ref = {{{status2 ref|{{{status2_ref|}}} }}}
* '''phylum''': Phylum to which the species belongs.
| trend = {{{trend|}}}
* '''class''': Class to which the species belongs.
| image = {{{image|}}}
* '''order''': Order to which the species belongs.
| upright = {{{image_upright|{{{image upright|}}} }}}
* '''family''': Family to which the species belongs.
| image_alt = {{{image alt|{{{image_alt|}}} }}}
* '''binomial''': Full binomial name (overrides the ''genus'' and ''species'' parameters if provided).
| image_caption = {{{image caption|{{{image_caption|}}} }}}
* '''binomial_authority''': Authority who named the species.
| image2 = {{{image2|}}}
* '''synonyms''': Any synonyms for the species.
| upright2 = {{{image2_upright|{{{image2 upright|}}} }}}
 
| image2_alt = {{{image2 alt|{{{image2_alt|}}} }}}
== Example ==
| image2_caption = {{{image2 caption|{{{image2_caption|}}} }}}
{{Speciesbox
| classification_status = {{{classification status|{{{classification_status|}}} }}}
| name = Example species
| diversity = {{{diversity|}}}
| image = Example_image.jpg
| diversity_ref = {{{diversity ref|{{{diversity_ref|}}} }}}
| image_alt = An example species image
| diversity_link = {{{diversity link|{{{diversity_link|}}} }}}
| image_caption = This is an example species.
| extinct = {{{extinct|}}}
| genus = Examplegenus
| species = {{#if:{{{extinct|}}}|&dagger;|{{#ifeq:{{{status|}}}|EX|&dagger;|{{Taxon info|<includeonly>{{Speciesbox/getGenus|{{{taxon|}}}|{{{genus|}}}}}</includeonly> <noinclude> {{noindex-template}}Acacia</noinclude>|dagger}}}}}}<!--
| species = examplespecies
-->'''{{taxon italics|abbreviated=yes|<includeonly>{{Speciesbox/trim|{{Speciesbox/getGenus|{{{taxon|}}}|{{{genus|}}}}}}} {{Speciesbox/getSpecies|{{{taxon|}}}|{{{species|}}}}}</includeonly> <noinclude> {{noindex-template}}Acacia aemula</noinclude>}}'''
| kingdom = Animalia
| binomial = <span style="font-weight:normal;">{{#if:{{{extinct|}}}|&dagger;|{{#ifeq:{{{status|}}}|EX|&dagger;|{{Taxon info|<includeonly>{{Speciesbox/getGenus|{{{taxon|}}}|{{{genus|}}}}}</includeonly> <noinclude> {{noindex-template}}Acacia</noinclude>|dagger}}}}}}</span><!--
| phylum = Chordata
-->{{taxon italics|<includeonly>{{Speciesbox/trim|{{Speciesbox/getGenus|{{{taxon|}}}|{{{genus|}}}}}}} {{Speciesbox/getSpecies|{{{taxon|}}}|{{{species|}}}}}</includeonly> <noinclude> {{noindex-template}}Acacia aemula</noinclude>}}
| class = Mammalia
| binomial_authority = {{{authority|{{{binomial authority|{{{binomial_authority|}}} }}} }}}
| order = Carnivora
| subdivision = {{{subdivision|}}}
| family = Felidae
| subdivision_ranks = {{{subdivision ranks|{{{subdivision_ranks|Subspecies}}} }}}
| binomial = ''Examplegenus examplespecies''
| subdivision_ref = {{{subdivision_ref|{{{subdivision ref|}}} }}}
| binomial_authority = Author, 2025
| type_strain = {{{type strain|{{{type_strain|}}} }}}
| synonyms = ''Examplegenus synonymspecies''
| type_strain_ref = {{{type_strain_ref|{{{type strain ref|}}} }}}
}}
| range_map = {{{range map|{{{range_map|}}} }}}
 
| range_map_upright = {{{range_map_upright|{{{range map upright|}}}}}}
</noinclude>
| range_map_alt = {{{range map alt|{{{range_map_alt|}}} }}}
| range_map_caption = {{{range map caption|{{{range_map_caption|}}} }}}
| range_map2 = {{{range map2|{{{range_map2|}}} }}}
| range_map2_upright = {{{range_map2_upright|{{{range map2 upright|}}}}}}
| range_map2_alt = {{{range map2 alt|{{{range_map2_alt|}}} }}}
| range_map2_caption = {{{range map2 caption|{{{range_map2_caption|}}} }}}
| range_map3 = {{{range map3|{{{range_map3|}}} }}}
| range_map3_upright = {{{range_map3_upright|{{{range map3 upright|}}}}}}
| range_map3_alt = {{{range map3 alt|{{{range_map3_alt|}}} }}}
| range_map3_caption = {{{range map3 caption|{{{range_map3_caption|}}} }}}
| range_map4 = {{{range map4|{{{range_map4|}}} }}}
| range_map4_upright = {{{range_map4_upright|{{{range map4 upright|}}}}}}
| range_map4_alt = {{{range map4 alt|{{{range_map4_alt|}}} }}}
| range_map4_caption = {{{range map4 caption|{{{range_map4_caption|}}} }}}
| synonyms_ref = {{{synonyms ref|{{{synonyms_ref|}}} }}}
| synonyms = {{{synonyms|}}}
}}{{Speciesbox/parameterCheck|{{{taxon|}}}|{{{genus|}}}|{{{species|}}}}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using speciesbox with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview = unknown parameter "_VALUE_"|ignoreblank=y|authority|binomial authority||binomial_authority|classification status|classification_status|color as|color_as|colour as|colour_as|display parents|display_parents|diversity|diversity link|diversity ref|diversity_link|diversity_ref|edit link|edit_link|extinct|fossil range|fossil_range|genus|grandparent authority|grandparent_authority|greatgrandparent authority|greatgrandparent_authority|greatgreatgrandparent authority|greatgreatgrandparent_authority|greatgreatgreatgrandparent authority|greatgreatgreatgrandparent_authority|image|image alt|image caption|image upright|image2|image2 alt|image2 caption|image2 upright|image2_alt|image2_caption|image2_upright|image_alt|image_caption|image_upright|italic title|italic_title|name|oldest fossil|oldest_fossil|parent|parent authority|parent_authority|range map|range map alt|range map caption|range map upright|range map2|range map2 alt|range map2 caption|range map2 upright|range map3|range map3 alt|range map3 caption|range map3 upright|range map4|range map4 alt|range map4 caption|range map4 upright|range_map|range_map2|range_map2_alt|range_map2_caption|range_map2_upright|range_map3|range_map3_alt|range_map3_caption|range_map3_caption|range_map3_upright|range_map4|range_map4_alt|range_map4_caption|range_map4_upright|range_map4_upright|range_map_alt|range_map_caption|range_map_upright|species|status|status ref|status system|status2|status2 ref|status2 system|status2_ref|status2_system|status_ref|status_system|subdivision|subdivision ranks|subdivision ref|subdivision_ranks|subdivision_ref|synonyms|synonyms ref|synonyms_ref|taxon|temporal range|temporal_range|trend|type strain|type_strain|type strain ref|type_strain_ref|youngest fossil|youngest_fossil}} <noinclude> {{noindex-template}}
{{documentation}}</noinclude>

Latest revision as of 04:46, 12 January 2025

Usage[edit]

This template creates an infobox for species classification. To use it, insert the following code into an article:

{{Speciesbox
 | name = 
 | image = 
 | image_alt = 
 | image_caption = 
 | genus = 
 | species = 
 | kingdom = 
 | phylum = 
 | class = 
 | order = 
 | family = 
 | binomial = 
 | binomial_authority = 
 | synonyms = 
 }}

Parameters[edit]

  • name: Common name of the species.
  • image: File name of an image for the species.
  • image_alt: Alternative text for the image (used for accessibility).
  • image_caption: Caption for the image.
  • genus: Genus of the species.
  • species: Species name (specific epithet).
  • kingdom: Kingdom to which the species belongs.
  • phylum: Phylum to which the species belongs.
  • class: Class to which the species belongs.
  • order: Order to which the species belongs.
  • family: Family to which the species belongs.
  • binomial: Full binomial name (overrides the genus and species parameters if provided).
  • binomial_authority: Authority who named the species.
  • synonyms: Any synonyms for the species.

Example[edit]

Example species
An example species image

This is an example species.

Examplegenus examplespecies
Scientific classification
Kingdom Animalia
Phylum Chordata
Class Mammalia
Order Carnivora
Family Felidae
Genus Examplegenus
Species examplespecies
Binomial name 'Examplegenus examplespecies'
Binomial authority Author, 2025
Synonyms Examplegenus synonymspecies