This is the documentation page for ମଡ୍ୟୁଲ:Autotaxobox


Module:Autotaxobox (talk · edit · hist · links · doc · subpages · sandbox · testcases)

The purpose of this module is to provide support for the automated taxobox system (including templates such as {{Speciesbox}} and {{Automatic taxobox}}), avoiding Mediawiki template expansion depth errors in the traversal of the taxonomic hierarchies encoded in taxonomy templates.

Currently, processing is arbitrarily limited to hierarchies containing at most 100 levels.

See the automated taxobox system map for information on how the module's functions are used in the system.

Given a taxon name, this function returns the correct colour of an automated taxobox for that taxon. It does so by searching up the taxonomic hierarchy for a 'real' taxon (i.e. not incertae sedis) that sets the taxobox colour, and then returning that colour. If no 'real' taxon is found, then if an incertae sedis taxon was found, the incertae sedis colour is returned, otherwise "transparent" is returned. (If the taxonomic hierarchy is too deep to process, the error colour is returned.)

Usage:

{{#invoke:Autotaxobox|taxoboxColour|taxon_name}}

Parameters:

The unnamed parameter should be the name of a taxon for which "Template:Taxonomy/taxon_name" exists.

Examples:

{{#invoke:Autotaxobox|taxoboxColour|Felis}} → rgb(235,235,210)
{{#invoke:Autotaxobox|taxoboxColour|Acacia}} → rgb(180,250,180)

Given the name of a taxon, this function returns the rows of taxa in an automated taxobox, based on the taxonomic hierarchy for the supplied taxon. If the lowest taxon displayed in the taxobox is below the rank of genus, the supplied taxon will usually be at a higher rank than the taxobox's target taxon, so that there is an offset to be taken into account.

Usage:

{{#invoke:Autotaxobox|taxoboxList
|the name of taxon upwards from which the taxonomic hierarchy is to be displayed by this function
|display_taxa = the number of taxa above taxon to force to be displayed
|authority = taxonomic authority for the lowest level taxon in the taxobox (the taxobox_target) (see also offset below)
|parent_authority = taxonomic authority for taxobox_target's parent
|gparent_authority = taxonomic authority for taxobox_target's grandparent
|ggparent_authority = taxonomic authority for taxobox_target's greatgrandparent
|gggparent_authority = taxonomic authority for taxobox_target's greatgreatgrandparent
|bold_first = bold to embolden taxon in its row
|offset = the offset of taxon from taxobox_target – the number of steps from taxobox_target to taxon
}}

Parameters:

The unnamed parameter should be the name of a taxon for which "Template:Taxonomy/taxon_name" exists. The others are explained above.

Examples:

{| class="wikitable"
{{#invoke:Autotaxobox|taxoboxList|Felis|authority=Linnaeus, 1758}}
|}

ସାମ୍ରାଜ୍ୟ: ପ୍ରାଣୀ ସାମ୍ରାଜ୍ୟ
ଗୋଷ୍ଠୀ: ବାଇଲାଟେରିଆ
ପର୍ବ: କୋର୍ଡାଟା
ମହାଶ୍ରେଣୀ: ଟେଟ୍ରାପୋଡା
ଗୋଷ୍ଠୀ: ମାମାଲିଆଫୋର୍ମ୍ସ
ଶ୍ରେଣୀ: ମାମାଲିଆ
ବର୍ଗ: କାର୍ନିଭୋରା
Suborder: Feliformia
Family: Felidae
Subfamily: {{{1}}}
Genus: {{{1}}}
Linnaeus, 1758

Given a taxon name, this function returns the rows of the taxonomy table displayed on the "Template:Taxonomy/taxon_name" page, based on the taxonomic hierarchy for the supplied taxon name.

When descending the taxonomic hierarchy, if a rank is found that is at either the same or a higher level than a rank already encountered (e.g. a family is found below a subfamily), the cell displaying the rank is given a reddish background; if it's the supplied taxon, the article is put into the tracking category Category:Taxonomy templates showing anomalous ranks. The numerical values defined in getRankTable() are used to determine the correct sequence of ranks. Ranks without values in this table do not have their order checked.

Usage:

{{#invoke:Autotaxobox|taxonomyList|taxon_name}}

Parameters:

The unnamed parameter should be the name of a taxon for which "Template:Taxonomy/taxon_name" exists.

Examples:

{{#invoke:Autotaxobox|taxonomyList|Felis}}

Bold ranks show taxa that will be shown in taxoboxes
because rank is principal or always_display=yes.

Ancestral taxa
ଜଗତ: ୟୁକାରିଓଟା  [Taxonomy; edit]
ଅବିଭକ୍ତ: ୟୁନିକୋଣ୍ଟା  [Taxonomy; edit]
ଅବିଭକ୍ତ: ଓବାଜୋଆ  [Taxonomy; edit]
ଅବିଭକ୍ତ: ଓପିସ୍ଥୋକୋଣ୍ଟା  [Taxonomy; edit]
ଅବିଭକ୍ତ: ହୋଲୋଜୋଆ  [Taxonomy; edit]
ଅବିଭକ୍ତ: ଫିଲୋଜୋଆ  [Taxonomy; edit]
ସାମ୍ରାଜ୍ୟ: ପ୍ରାଣୀ ସାମ୍ରାଜ୍ୟ  [Taxonomy; edit]
ଉପସାମ୍ରାଜ୍ୟ: ୟୁମେଟାଜୋଆ  [Taxonomy; edit]
ଗୋଷ୍ଠୀ: ପାରାହୋକ୍ସୋଜୋଆ  [Taxonomy; edit]
ଗୋଷ୍ଠୀ: ବାଇଲାଟେରିଆ  [Taxonomy; edit]
ଗୋଷ୍ଠୀ: ନେଫ୍ରୋଜୋଆ  [Taxonomy; edit]
ମହାପର୍ବ: ଡ୍ୟୁଟେରୋଷ୍ଟୋମୀଆ  [Taxonomy; edit]
ପର୍ବ: କୋର୍ଡାଟା  [Taxonomy; edit]
ଗୋଷ୍ଠୀ: ଓଲ୍ଫ୍ଯାକ୍ଟର  [Taxonomy; edit]
ଉପପର୍ବ: ଭର୍ଟିବ୍ରାଟା  [Taxonomy; edit]
ଲଘୁପର୍ବ: ଗ୍ନାଥୋଷ୍ଟୋମାଟା  [Taxonomy; edit]
ଗୋଷ୍ଠୀ: ୟୁଗ୍ନାଥୋଷ୍ଟୋମାଟା  [Taxonomy; edit]
ଗୋଷ୍ଠୀ: ଟେଲିଓଷ୍ଟମୀ  [Taxonomy; edit]
ଗୋଷ୍ଠୀ: ୟୁଟେଲିଓଷ୍ଟମୀ  [Taxonomy; edit]
ଗୋଷ୍ଠୀ: ସାର୍କୋପ୍ଟେରିଗୀ  [Taxonomy; edit]
ଗୋଷ୍ଠୀ: ରିଃପିଡିଷ୍ଟିଆ  [Taxonomy; edit]
ଗୋଷ୍ଠୀ: ଟେଟ୍ରାପୋଡୋମୋର୍ଫା  [Taxonomy; edit]
ଗୋଷ୍ଠୀ: ଏଓଟେଟ୍ରାପୋଡିଫୋର୍ମ୍ସ  [Taxonomy; edit]
ଗୋଷ୍ଠୀ: ଏଲ୍ପିଷ୍ଟୋଷ୍ଟେଗାଲିଆ  [Taxonomy; edit]
ଗୋଷ୍ଠୀ: ଷ୍ଟେଗୋସେଫାଲିଆ  [Taxonomy; edit]
ମହାଶ୍ରେଣୀ: ଟେଟ୍ରାପୋଡା  [Taxonomy; edit]
ଗୋଷ୍ଠୀ: ରେପ୍ଟିଲିଓମୋର୍ଫା  [Taxonomy; edit]
ଗୋଷ୍ଠୀ: ଆମ୍ନିଓଟା  [Taxonomy; edit]
ଗୋଷ୍ଠୀ: ସିନାପ୍ସିଡା  [Taxonomy; edit]
..... .....
ଗୋଷ୍ଠୀ: ମାମାଲିଆଫୋର୍ମ୍ସ /skip  [Taxonomy; edit]
ଶ୍ରେଣୀ: ମାମାଲିଆ  [Taxonomy; edit]
ଗୋଷ୍ଠୀ: ହୋଲୋଥେରିଆ  [Taxonomy; edit]
ଗୋଷ୍ଠୀ: ଟ୍ରେକ୍ନୋଥେରିଆ  [Taxonomy; edit]
ଗୋଷ୍ଠୀ: କ୍ଲାଡୋଥେରିଆ  [Taxonomy; edit]
ଗୋଷ୍ଠୀ: ଜାଥେରିଆ  [Taxonomy; edit]
ଗୋଷ୍ଠୀ: ଟ୍ରାଇବୋସ୍ଫେନିଡା  [Taxonomy; edit]
ଉପଶ୍ରେଣୀ: ଥେରିଆ  [Taxonomy; edit]
ଗୋଷ୍ଠୀ: ୟୁଥେରିଆ  [Taxonomy; edit]
ଲଘୁଶ୍ରେଣୀ: ପ୍ଲାସେଣ୍ଟାଲିଆ  [Taxonomy; edit]
ଗୋଷ୍ଠୀ: ଏକ୍ସାଫ୍ରୋପ୍ଲାସେଣ୍ଟାଲିଆ  [Taxonomy; edit]
ଗୋଷ୍ଠୀ: ବୋରିଓୟୁଥେରିଆ  [Taxonomy; edit]
ଗୋଷ୍ଠୀ: ଲୌରେସିଆଥେରିଆ  [Taxonomy; edit]
ଗୋଷ୍ଠୀ: ଷ୍କ୍ରୋଟିଫେରା  [Taxonomy; edit]
ଗୋଷ୍ଠୀ: ଫେରୁଙ୍ଗୁଲାଟା  [Taxonomy; edit]
ଗୋଷ୍ଠୀ: ଫେରାଏ  [Taxonomy; edit]
ଅବିଭକ୍ତ: କାର୍ନିଭୋରାମର୍ଫା  [Taxonomy; edit]
ଅବିଭକ୍ତ: କାର୍ନିଭୋରାଫର୍ମ୍ସ  [Taxonomy; edit]
ବର୍ଗ: କାର୍ନିଭୋରା  [Taxonomy; edit]
Suborder: Feliformia  [Taxonomy; edit]
Family: Felidae  [Taxonomy; edit]
Subfamily: {{{1}}}  [Taxonomy; edit]
Genus: {{{1}}}  [Taxonomy; edit]

This function prepares for, and then calls, {{Taxonomy key}} to display a taxonomy template page. It does this by building up the information the template requires, following one same_as link if present, and then calling it.

It is used by {{Don't edit this line}}.

Usage:

{{#invoke:Autotaxobox|callTaxonomyKey
|taxon=
|parent=
|rank=
|extinct=
|always_display=
|link_target=value of the 'link' parameter in the taxonomy template
|link_text=value of the unnamed parameter in the taxonomy template
|refs=
|same_as=
}}

Shows the refs field in a taxonomy template, handing incertae sedis taxa and using '–' for absent refs.

Usage:

{{#invoke:Autotaxobox|showRefs|taxon_name|refs}}

Examples:

{{#invoke:Autotaxobox|showRefs|Neoscona|{{Taxon info|Neoscona|refs}}}} → Template:Taxonomy/Neoscona
{{#invoke:Autotaxobox|showRefs|Incertae sedis/Characidae|}} → not applicable (incertae sedis)

Returns a wikilink to a taxon, if required including '†' before it and ' (?)' after it, and optionally italicized or bolded without a wikilink. It can be used externally via {{Taxon link}}. Some parameters can, under some circumstances, be omitted.

Usage:

{{#invoke:Autotaxobox|taxonLink
|taxon=
(having '/?' at the end triggers the output of ' (?)')
|extinct=
('yes' or 'true' triggers the output of '†')
|bold=
('yes' makes the core output bold and not wikilinked)
|italic=
('yes' makes the core output italic)
|link_target=target for the wikilink
|plain_link_text= text of the wikilink
(without †, italics, etc.)
}}

Examples:

{{#invoke:Autotaxobox|taxonLink|taxon=Felis|italic=yes}} → Felis
{{#invoke:Autotaxobox|taxonLink|taxon=Incertae sedis/Animalia}} → incertae sedis
{{#invoke:Autotaxobox|taxonLink|link_target=Pterosaur|plain_link_text=Pterosauromorpha|extinct=yes}} → Pterosauromorpha
{{#invoke:Autotaxobox|taxonLink|taxon=Dinosauria/?|link_target=Dinosaur|plain_link_text=Dinosauria|extinct=yes}} → Dinosauria (?)

These functions are intended to be used only in analysing and understanding the automated taxobox system, including the taxonomic hierarchies encoded in taxonomy templates – for example in testing and debugging. They are not part of the functioning of the automated taxobox system.

Returns a sortable wikitable containing the ranks and corresponding numerical values defined in getRankTable() and used in checking the consistency of a taxonomic hierarchy. If a taxon has a value in the rank table, it should always be lower than one higher in the taxonomic hierarchy.

Usage:

{{#invoke:Autotaxobox|showRankTable}}

Given the names of a taxon and the required item of information stored in the taxon's taxonomy template, this function returns the value of the item, following one "same as" link if available and the value would otherwise be the empty string.

Usage:

{{#invoke:Autotaxobox|taxonInfo|taxon_name|item_name}}

Parameters:

The first unnamed parameter should be the name of a taxon for which "Template:Taxonomy/taxon_name" exists.
The possible values of the second unnamed parameter are given at {{Taxon info/doc}}.

Examples:

{{#invoke:Autotaxobox|taxonInfo|Felis|rank}} → genus
{{#invoke:Autotaxobox|taxonInfo|Aves/skip|same_as}} → Aves
{{#invoke:Autotaxobox|taxonInfo|Aves/skip|parent}} → Chordata

getMaxSearchLevels

ସମ୍ପାଦନା

Returns the maximum number of levels of a taxonomic hierarchy encoded in taxonomy templates that the system will search.

Usage:

{{#invoke:Autotaxobox|getMaxSearchLevels}} → 100

Given a taxon name and a rank, this function returns the taxon's ancestor of the given rank.

Usage:

{{#invoke:Autotaxobox|find|taxon_name|rank}}

Parameters:

The first unnamed parameter should be the name of a taxon for which "Template:Taxonomy/taxon_name" exists.
The second unnamed parameter should be the Latinized name of a rank.

Examples:

{{#invoke:Autotaxobox|find|Felis|ordo}}rank not found
{{#invoke:Autotaxobox|find|Felis|classis}}rank not found
{{#invoke:Autotaxobox|find|Pteranodon|phylum}}rank not found
{{#invoke:Autotaxobox|find|Pteranodon|classis}}rank not found

Given a taxon name, this function returns the nth taxon above it in the taxonomic hierarchy.

Usage:

{{#invoke:Autotaxobox|nth|taxon_name|n=integer}}

Parameters:

The unnamed parameter should be the name of a taxon for which "Template:Taxonomy/taxon_name" exists.
n is the level whose taxon is to be found

Examples:

{{#invoke:Autotaxobox|nth|Felis|n=1}} → Felis
{{#invoke:Autotaxobox|nth|Felis|n=15}} → Eutheria

Given a taxon name, this function returns the number of levels at and above it in the taxonomic hierarchy.

Usage:

{{#invoke:Autotaxobox|nLevels|taxon_name}}

Parameters:

The unnamed parameter should be the name of a taxon for which "Template:Taxonomy/taxon_name" exists.

Examples:

{{#invoke:Autotaxobox|nLevels|Felis}} → 53
{{#invoke:Autotaxobox|nLevels|Pteranodon}} → 50

Given a taxon name, this function returns a comma-separated list of all the levels at and above it in the taxonomic hierarchy.

Usage:

{{#invoke:Autotaxobox|listAll|taxon_name}}

Parameters:

The unnamed parameter should be the name of a taxon for which "Template:Taxonomy/taxon_name" exists.

Examples:

{{#invoke:Autotaxobox|listAll|Plantae}} → Plantae-ସାମ୍ରାଜ୍ୟ, Archaeplastida-ଅବିଭକ୍ତ, Diaphoretickes-ଅବିଭକ୍ତ, Eukaryota-ଜଗତ, Life-
{{#invoke:Autotaxobox|listAll|Felis}} → Felis-genus, Felinae-subfamilia, Felidae-familia, Feliformia-subordo, Carnivora-ବର୍ଗ, Carnivoraformes-ଅବିଭକ୍ତ, Carnivoramorpha-ଅବିଭକ୍ତ, Ferae-ଗୋଷ୍ଠୀ, Ferungulata-ଗୋଷ୍ଠୀ, Scrotifera-ଗୋଷ୍ଠୀ, Laurasiatheria-ଗୋଷ୍ଠୀ, Boreoeutheria-ଗୋଷ୍ଠୀ, Exafroplacentalia-ଗୋଷ୍ଠୀ, Placentalia-ଲଘୁଶ୍ରେଣୀ, Eutheria-ଗୋଷ୍ଠୀ, Theria-ଉପଶ୍ରେଣୀ, Tribosphenida-ଗୋଷ୍ଠୀ, Zatheria-ଗୋଷ୍ଠୀ, Cladotheria-ଗୋଷ୍ଠୀ, Trechnotheria-ଗୋଷ୍ଠୀ, Holotheria-ଗୋଷ୍ଠୀ, Mammalia-ଶ୍ରେଣୀ, Mammaliaformes/skip-ଗୋଷ୍ଠୀ, Synapsida-ଗୋଷ୍ଠୀ, Amniota-ଗୋଷ୍ଠୀ, Reptiliomorpha-ଗୋଷ୍ଠୀ, Tetrapoda-ମହାଶ୍ରେଣୀ, Stegocephalia-ଗୋଷ୍ଠୀ, Elpistostegalia-ଗୋଷ୍ଠୀ, Eotetrapodiformes-ଗୋଷ୍ଠୀ, Tetrapodomorpha-ଗୋଷ୍ଠୀ, Rhipidistia-ଗୋଷ୍ଠୀ, Sarcopterygii-ଗୋଷ୍ଠୀ, Euteleostomi-ଗୋଷ୍ଠୀ, Teleostomi-ଗୋଷ୍ଠୀ, Eugnathostomata-ଗୋଷ୍ଠୀ, Gnathostomata-ଲଘୁପର୍ବ, Vertebrata-ଉପପର୍ବ, Olfactores-ଗୋଷ୍ଠୀ, Chordata-ପର୍ବ, Deuterostomia-ମହାପର୍ବ, Nephrozoa-ଗୋଷ୍ଠୀ, Bilateria-ଗୋଷ୍ଠୀ, ParaHoxozoa-ଗୋଷ୍ଠୀ, Eumetazoa-ଉପସାମ୍ରାଜ୍ୟ, Animalia-ସାମ୍ରାଜ୍ୟ, Filozoa-ଅବିଭକ୍ତ, Holozoa-ଅବିଭକ୍ତ, Opisthokonta-ଅବିଭକ୍ତ, Obazoa-ଅବିଭକ୍ତ, Unikonta-ଅବିଭକ୍ତ, Eukaryota-ଜଗତ, Life-

Given a taxon name, this function returns the name with any qualifier (i.e. any part after a "/") removed.

Usage:

{{#invoke:Autotaxobox|removeQualifier|taxon_name}}

Examples:

{{#invoke:Autotaxobox|removeQualifier|Eukaryota/display}} → Eukaryota
{{#invoke:Autotaxobox|removeQualifier|Felis}} → Felis