සැකිල්ල:Taxobox colour

විකිපීඩියා, නිදහස් විශ්වකෝෂය වෙතින්
Jump to navigation Jump to search
ප්‍රලේඛනය අයිකොනය සැකිලි ප්‍රලේඛනය[නරඹන්න] [සංස්කරණය] [ඉතිහාසය] [විරේචනය]

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.

Function[සංස්කරණය]

This template 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)
Archaeplastida rgb(180,250,180)
Fungi rgb(145,250,250)
Chromalveolata rgb(200,250,80)
Choanozoa rgb(240,240,120)
Rhizaria transparent; text-align:center; border: 2px solid red; error:colour
Excavata rgb(250,250,100)
Amoebozoa rgb(170,250,205)
Bacteria rgb(220,235,245)
Archaea rgb(195,245,250)
Viruses rgb(250,250,190)
incertae sedis rgb(250,240,230)
Colours not produced by this template:
Ichnotaxa rgb(215,240,210)
Ootaxa rgb(250,250,220)

Tracking categories[සංස්කරණය]

Supporting templates[සංස්කරණය]

"https://si.wikipedia.org/w/index.php?title=සැකිල්ල:Taxobox_colour&oldid=414645" වෙතින් සම්ප්‍රවේශනය කෙරිණි