• Home
  • Random
  • Recent changes
  • Special pages
  • Settings
  • About MOASSpedia
  • Disclaimers
MOASSpedia
  • 216.73.216.213
  • Talk
  • Watchlist
  • Contributions
  • Log in

Template:Sets taxobox colour

Template Discussion
  • Language
  • Watch
  • History
  • Edit
    • Page information
    • Permanent link
    • What links here
Template documentation[view] [edit] [history] [purge]
WarningThis template is used on approximately 132,000 pages.
To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them.

Contents

  • 1 Purpose
  • 2 Assumption
  • 3 Usage
  • 4 Examples

Purpose

{{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

The template assumes that colours defined in {{Taxobox colour}} use the format rgb(..,..,..).

Usage

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

  • {{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.)
The above documentation is transcluded from Template:Sets taxobox colour/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://moasspedia.org/w/index.php?title=Template:Sets_taxobox_colour&oldid=30683"
Category:
  • Taxobox templates
Last edited on 16 October 2021, at 03:32

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 16 October 2021, at 03:32.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop