Editing
Template:Taxobox colour/doc
Jump to navigation
Jump to search
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!
{{Documentation subpage}} {{High-risk}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> <strong>Note to template editors</strong>: Edits to the taxonomic terms (taxa) in this template depend for their effect in manual taxoboxes on the colour-determining taxon being at a rank allowed to change the taxobox colour by {{tl|Taxobox}}, so this may need altering. Colours must be defined using the rgb(..,..,..) format to enable {{tl|Sets taxobox colour}} to work correctly. == Purpose == This template is one of a number of configuration templates used in the taxobox system, in this case in both [[Template:Taxobox|manual]] and [[WP:Automated taxobox system|automated taxoboxes]]. It generates the appropriate colour for a taxobox. It should only be used by other taxobox templates. === Use by taxonomy templates === Manual taxoboxes call this template from {{tl|Taxobox}}, which looks at the values of ranks given in the taxobox from phylum upwards and uses the taxobox colour for the first colour-setting taxon found (or the error colour if none is found). {{tl|Sets taxobox colour}} is used to decide whether a taxon is colour-setting, which it does by using this template. Automated taxoboxes use a function in [[Module:Autotaxobox]], which finds a colour-setting taxon by searching up the taxonomic hierarchy coded in taxonomy templates (i.e. templates with names of the form "Taxonomy/''taxon-name''"). === Setting colour within a taxobox === Both manual and automatic taxoboxes usually generate their colours automatically. If this fails, or if for some reason the automatically generated colour should be over-ridden, {{para|color_as}} can be used to set the colour based on a supplied taxon. Thus: <syntaxhighlight lang="wikitext">| color_as = Animalia </syntaxhighlight> within a taxobox forces its colour to be the one appropriate for animal taxoboxes. The taxon given as the value of {{para|color_as}} must be in the switch statement in this template. Thus {{para|color_as|Felis}} fails and assigns the error colour. ==Taxobox colour scheme== {{Taxobox colour scheme}} == Tracking categories == * {{clc|Taxoboxes with the error color}} * {{clc|Taxoboxes with no color}} == Supporting templates == * [[Template:Sets taxobox colour]] * [[Template:Taxobox/Error colour]] == See also == Other configuration templates include: *{{tl|Anglicise rank}} β converts the Latin form that is used in taxonomy templates to the English equivalent *{{tl|Principal rank}} β defines the Linnaean principal ranks that are shown by default in automated taxoboxes *{{tl|Is italic taxon}} β defines which ranks cause taxon names to be italicized in automated taxoboxes <includeonly>{{Sandbox other|| <!-- Categories below this line, please; interwikis at Wikidata --> [[Category:Taxobox templates]] [[Category:Template implementation details]] [[Category:Templates that add a tracking category]] }}</includeonly>
Summary:
Please note that all contributions to MycoTaxa 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
MycoTaxa:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Category link with count
(
edit
)
Template:Clc
(
edit
)
Template:Delink
(
edit
)
Template:Documentation subpage
(
edit
)
Template:High-risk
(
edit
)
Template:High-use
(
edit
)
Template:Mbox
(
edit
)
Template:Para
(
edit
)
Template:Strong
(
edit
)
Template:Taxobox colour
(
edit
)
Template:Taxobox colour scheme
(
edit
)
Template:Template link
(
edit
)
Template:Terminate sentence
(
edit
)
Template:Tl
(
edit
)
Module:Arguments
(
edit
)
Module:Autotaxobox
(
edit
)
Module:Delink
(
edit
)
Module:High-use
(
edit
)
Module:Message box
(
edit
)
Module:Message box/configuration
(
edit
)
Module:Message box/ombox.css
(
edit
)
Module:String
(
edit
)
Module:TaxonItalics
(
edit
)
Module:Text
(
edit
)
Module:Text/data
(
edit
)
Module:Transclusion count
(
edit
)
Module:Transclusion count/data/T
(
edit
)
Module:Yesno
(
edit
)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Template
Discussion
English
Views
Read
Edit source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information
In other projects