வார்ப்புரு:Taxobox colour/doc

கட்டற்ற கலைக்களஞ்சியமான விக்கிப்பீடியாவில் இருந்து.

Note to template editors: Edits to the taxonomic terms (taxa) used in this template must be reflected by {{Autotaxobox colour}}, {{Is reg()}}, and {{Taxobox colour scheme}}. The colour-determining taxon must also be 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 either by other taxobox templates or within a taxobox.

Use 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, then this template can be used within a taxobox to set the colour based on a supplied taxon. Thus:

| color = {{Taxobox colour|Animalia}}

within a taxobox forces its colour to be the one appropriate for animal taxoboxes. Colours should not be declared directly in taxoboxes; using this template ensures that taxobox colours remain consistent.

Examples:

  • {{Taxobox colour|Animalia}} → rgb(235,235,210)
  • {{Taxobox colour|Felis}} → transparent; text-align:center; border: 2px solid red; error:colour

Use by taxonomy templates[தொகு]

Manual taxoboxes call this template from {{Taxobox/core}}, using the format {{Taxobox colour|taxon-name}}. It returns the colour defined in the template for that taxon name, if there is one, or the error colour and styling if not.

Automated taxoboxes call this template themselves, passing the colour obtained to {{Taxobox/core}}. They use the format {{Taxobox colour|taxon=taxon-name}}. This format causes an upwards search in the taxonomic hierarchy specified by the taxonomy templates (templates with names like "Template:Taxonomy/...") using {{Is_reg()}} to decide whether a taxon can determine the colour of a taxobox. Thus it is essential that {{Is_reg()}} is kept in step with this template.

Examples:

  • {{Taxobox colour|taxon=Animalia}} → transparent
  • {{Taxobox colour|taxon=Felis}} → transparent

Notice the difference in behaviour between {{Taxobox colour|Felis}} and {{Taxobox colour|taxon=Felis}}.

Taxobox colour scheme[தொகு]

Eukaryota rgb(245,215,255) under development for eukaryotes with no other colour defined
விலங்குia transparent; text-align:center; border: 2px solid red; error:colour
Archaeplastida rgb(180,250,180) also தாவரம்ae and Viridiplantae
Fungi rgb(145,250,250)
SAR rgb(200,250,80) also Chromalveolata
Choanozoa rgb(245,215,255) also Opisthokonta
Excavata rgb(245,215,255) also Protista
Amoebozoa rgb(245,215,255)
பாக்டீரியா transparent; text-align:center; border: 2px solid red; error:colour also Firmicutes; many Bacteria taxoboxes are actually light grey
ஆர்க்கீயா transparent; text-align:center; border: 2px solid red; error:colour also Nanoarchaeota (Nanarchaeota), Korarchaeota, Thaumarchaeota, Crenarchaeota and Euryarchaeota
தீ நுண்மம்es transparent; text-align:center; border: 2px solid red; error:colour
incertae sedis rgb(250,240,230)
Colours not produced by this template:
Ichnotaxa rgb(215,240,210)
Ootaxa rgb(250,250,220)

Supporting templates[தொகு]

Tracking category[தொகு]


"https://ta.wikipedia.org/w/index.php?title=வார்ப்புரு:Taxobox_colour/doc&oldid=2143954" இலிருந்து மீள்விக்கப்பட்டது