Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Purpose  



1.1  Use by taxonomy templates  





1.2  Setting colour within a taxobox  







2 Taxobox colour scheme  





3 Tracking categories  





4 Supporting templates  





5 See also  














Template:Taxobox/Error colour






Afrikaans
ि
العربية
تۆرکجه
Basa Bali

 / Bân-lâm-gú

Bikol Central
Bosanski
Euskara
فارسی

/Hak-kâ-ngî

Igbo
Ilokano
Jawa
Kurdî

Māori

Bahasa Melayu
Мокшень


Oʻzbekcha / ўзбекча


Português
Română
Русиньскый

Scots
Simple English
Slovenščina
Soomaaliga
کوردی
Српски / srpski
Sunda
Tagalog
ி
 


اردو
Vahcuengh


 

Edit links
 









Template
Talk
 

















Read
View source
View history
 








Tools
   


Actions  



Read
View source
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 





Permanently protected template

From Wikipedia, the free encyclopedia
 

< Template:Taxobox

Note to template editors: 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 {{Taxobox}}, so this may need altering. Colours must be defined using the rgb(..,..,..) format to enable {{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 manual and 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 {{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). {{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, |color_as= can be used to set the colour based on a supplied taxon. Thus:

| color_as = Animalia

within a taxobox forces its colour to be the one appropriate for animal taxoboxes. The taxon given as the value of |color_as= must be in the switch statement in this template. Thus |color_as=Felis fails and assigns the error colour.

Taxobox colour scheme

Animalia rgb(235,235,210)
Archaea rgb(195,245,250) also Nanoarchaeota (Nanarchaeota), Korarchaeota, Thaumarchaeota, Crenarchaeota and Euryarchaeota
Archaeplastida rgb(180,250,180) also Plantae and Viridiplantae
Bacteria rgb(220,235,245)
Eukaryota rgb(245,215,255) For eukaryotes with no other colour defined, including Excavata, Amoebozoa and Opisthokonta
Fungi rgb(145,250,250)
Ichnotaxa rgb(230,222,214)
incertae sedis rgb(250,240,230)
SAR rgb(200,250,80) also Harosa, Chromalveolata
Ootaxa rgb(250,250,220)
Viruses rgb(250,250,190) also Viroids

Tracking categories

Supporting templates

See also

Other configuration templates include:


Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Taxobox/Error_colour&oldid=758431105"

Categories: 
Taxobox templates
Template implementation details
Hidden categories: 
Wikipedia template-protected templates
Templates that add a tracking category
 



This page was last edited on 5 January 2017, at 11:32 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki