Predloga:Taksonomka barva
Predloga se uporablja na številnih straneh. Z urejanjem te predloge lahko zelo obremenite strežnike, zato pred uvedbo vse spremembe, ki jih želite uvesti, preizkusite na njenih podstraneh (/peskovnik oziroma /testniprimeri) ali na svojih lastnih podstraneh. Preizkusite jih lahko tudi v posebnem peskovniku za predloge. Preizkušene spremembe se lahko v predlogo dodajo z enim samim urejanjem. Preden predlogo spremenite, se o spremembah rajši pogovorite na njeni pogovorni strani. |
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.
Namen
urediThis 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
urediManual 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
urediBoth 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
urediAnimalia (živali) | FFC0CB | |
---|---|---|
Archaea (arheje) | C3F5FA | tudi Nanoarchaeota (Nanarchaeota), Korarchaeota, Thaumarchaeota, Crenarchaeota in Euryarchaeota |
Archaeplastida (arheplastidi) | 90EE90 | tudi Plantae in Viridiplantae |
Bacteria (bakterije) | D3D3D3 | |
Eukaryota (evkarionti) | transparent | Za evkarionte brez določene druge barve, vključno z Excavata, Amoebozoa in Opisthokonta |
Fungi (glive) | ADD8E6 | |
Ichnotaxa | transparent | |
incertae sedis | E0D0B0 | |
SAR | transparent | tudi Chromalveolata |
Ootaxa | transparent | |
Viruses (virusi) | EE82EE | tudi Viroidi |
Tracking categories
urediSupporting templates
urediGlej tudi
urediOther configuration templates include:
- {{Anglicise rank}} – converts the Latin form that is used in taxonomy templates to the English equivalent
- {{Principal rank}} – defines the Linnaean principal ranks that are shown by default in automated taxoboxes
- {{Is italic taxon}} – defines which ranks cause taxon names to be italicized in automated taxoboxes