Template:Sets taxobox colour/doc
Jump to navigation
Jump to search
This is a documentation subpage for Template:Sets taxobox colour. It contains usage information, categories and other content that is not part of the original template page. |
This template is used on approximately 230,000 pages, so changes to it will be widely noticed. Please test any changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Please consider discussing changes on the talk page before implementing them. |
Purpose[edit source]
{{Sets taxobox colour}} is a utility template used by {{Taxobox}}. It checks whether its argument, which should be a taxon name, has a taxobox colour defined in {{Taxobox colour}} but is not "incertae sedis". If this condition is true, it returns the taxon name, otherwise it returns blank.
Assumption[edit source]
The template assumes that colours defined in {{Taxobox colour}} use the format rgb(..,..,..)
.
Usage[edit source]
The template should only be used from within other taxobox templates.
{{Sets taxobox colour|taxon_name}}
It returns the taxon name if the condition is met, otherwise blank.
Examples[edit source]
- {{Sets taxobox colour|Animalia}} → Animalia,
- A taxobox colour is explicitly defined for Animalia.
- {{Sets taxobox colour|plantae}} → plantae,
- The taxon name can have an initial capital or not.
- {{Sets taxobox colour|Acacia}} →
- Although Acacia is a plant genus, the taxobox colour is not explicitly defined in {{Taxobox colour}}; in an actual taxobox it is set by finding that Acacia is a member of Plantae.
- {{Sets taxobox colour|incertae sedis}} →
- Although "incertae sedis" has a taxobox colour defined in {{Taxobox colour}}, it is ignored. (This is so that templates that use this one can continue to look higher up the taxonomic hierarchy to see if there is a more appropriate colour; an incertae sedis family, for example, may be known to be an animal, when the Animalia colour should be used.)
External links[edit source]
- Template:Sets taxobox colour/doc at Wikipedia, the free Terran encyclopedia that anyone can edit.