Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Humanipedia
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Module:Autotaxobox/doc
(section)
Module
Discussion
English
Read
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Utilities== 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. ===getMaxSearchLevels=== Returns the maximum number of levels of a taxonomic hierarchy encoded in taxonomy templates that the system will search. Usage: :<code><nowiki>{{</nowiki>#invoke:Autotaxobox|getMaxSearchLevels}}</code> β {{#invoke:Autotaxobox|getMaxSearchLevels}} ===showRankTable=== Returns a sortable wikitable containing the ranks and corresponding numerical values defined in <code>getRankTable()</code> 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: :<code><nowiki>{{</nowiki>#invoke:Autotaxobox|showRankTable}}</code> ===find=== Given a taxon name and a rank, this function returns the taxon's ancestor of the given rank. Usage: :<code><nowiki>{{</nowiki>#invoke:Autotaxobox|find|''taxon_name''|''rank''}}</code> 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: :<code><nowiki>{{</nowiki>#invoke:Autotaxobox|find|Felis|ordo}}</code> β {{#invoke:Autotaxobox|find|Felis|ordo}} :<code><nowiki>{{</nowiki>#invoke:Autotaxobox|find|Felis|classis}}</code> β {{#invoke:Autotaxobox|find|Felis|classis}} :<code><nowiki>{{</nowiki>#invoke:Autotaxobox|find|Pteranodon|phylum}}</code> β {{#invoke:Autotaxobox|find|Pteranodon|phylum}} :<code><nowiki>{{</nowiki>#invoke:Autotaxobox|find|Pteranodon|classis}}</code> β {{#invoke:Autotaxobox|find|Pteranodon|classis}} ===nth=== Given a taxon name, this function returns the ''n''th taxon above it in the taxonomic hierarchy. Usage: :<code><nowiki>{{</nowiki>#invoke:Autotaxobox|nth|''taxon_name''|n=''integer''}}</code> 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: :<nowiki>{{#invoke:Autotaxobox|nth|Felis|n=1}}</nowiki> β {{#invoke:Autotaxobox|nth|Felis|n=1}} :<nowiki>{{#invoke:Autotaxobox|nth|Felis|n=15}}</nowiki> β {{#invoke:Autotaxobox|nth|Felis|n=15}} ===nLevels=== Given a taxon name, this function returns the number of levels at and above it in the taxonomic hierarchy. Usage: :<code><nowiki>{{</nowiki>#invoke:Autotaxobox|nLevels|''taxon_name''}}</code> Parameters: :The unnamed parameter should be the name of a taxon for which "Template:Taxonomy/''taxon_name''" exists. Examples: :<nowiki>{{#invoke:Autotaxobox|nLevels|Felis}}</nowiki> β {{#invoke:Autotaxobox|nLevels|Felis}} :<nowiki>{{#invoke:Autotaxobox|nLevels|Pteranodon}}</nowiki> β {{#invoke:Autotaxobox|nLevels|Pteranodon}} ===listAll=== Given a taxon name, this function returns a comma-separated list of all the levels at and above it in the taxonomic hierarchy. Usage: :<code><nowiki>{{</nowiki>#invoke:Autotaxobox|listAll|''taxon_name''}}</code> Parameters: :The unnamed parameter should be the name of a taxon for which "Template:Taxonomy/''taxon_name''" exists. Examples: :<nowiki>{{#invoke:Autotaxobox|listAll|Plantae}}</nowiki> β {{#invoke:Autotaxobox|listAll|Plantae}} :<nowiki>{{#invoke:Autotaxobox|listAll|Felis}}</nowiki> β {{#invoke:Autotaxobox|listAll|Felis}} ===removeQualifier=== Given a taxon name, this function returns the name with any qualifier (i.e. any part after a "/") removed. Usage: :<code><nowiki>{{</nowiki>#invoke:Autotaxobox|removeQualifier|''taxon_name''}}</code> Examples: :<nowiki>{{#invoke:Autotaxobox|removeQualifier|Eukaryota/display}}</nowiki> β {{#invoke:Autotaxobox|removeQualifier|Eukaryota/display}} :<nowiki>{{#invoke:Autotaxobox|removeQualifier|Felis}}</nowiki> β {{#invoke:Autotaxobox|removeQualifier|Felis}} <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | <!-- Categories below this line, please; interwikis at Wikidata --> [[Category:Taxobox templates]] }}</includeonly> <noinclude> [[Category:Module documentation pages]] </noinclude>
Summary:
Please note that all contributions to Humanipedia may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Humanipedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)