Teamplaid:Taxobox/taxonomy cell/documentation
This is a documentation subpage for Teamplaid:Taxobox/taxonomy cell. It contains usage information, categories and other content that is not part of the original teamplaid page. |
This page is not a sandbox. It should not be used for test editing. To experiment, please use the Wikipedia sandbox, your user sandbox, or the other sandboxes. |
This template is currently protected from editing. See the protection policy and protection log for more details. Please discuss any changes on the talk page; you may submit an edit request to ask an administrator to make an edit if it is uncontroversial or supported by consensus. You may also request that this page be unprotected. |
Input
|1=Taxon name
- mandatory|force=true
- force display, see below
Output
This template will produce a cell to appear in an Automatic taxobox. The cell will be displayed if:
- The parameter
|force=true
- The taxon is at a major taxonomic level (kingdom, phylum, class ... genus, species)
- The page at Teamplaid:Taxonomy/TAXONNAME contains
|always_display=true
(verbatim).
The cell itself is produced using Teamplaid:Taxonomy.
Template logic
if the taxon does not exist, or has no parent listed (i.e. taxonomy/TAXON|parent does not start with [A-z]) :
If there's no parent listed :
: return null;
Else, if the page doesn't exist
: return an error message (generated by Teamplaid:Create taxonomy);
Else (i.e. taxon exists and has parent listed)
if force parameter is sent,
or if taxonomy/TAXON|always_display is set to true,
or if taxonomy/TAXON|rank is a major rank worthy of display
: return a taxobox cell.