साँचा:Taxobox colour/doc

मुक्त ज्ञानकोश विकिपीडिया से
नेविगेशन पर जाएँ खोज पर जाएँ

{{

 साँचा:namespace detect

| type = notice | image = | imageright = | class = | style = margin-bottom:1.0em; | textstyle = | text = साँचा:strong for साँचा:terminate sentence
It contains usage information, categories and other content that is not part of the original साँचा page. | small = | smallimage = | smallimageright = | smalltext = | subst = | date = | name = }} साँचा:ombox

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 साँचा:tl, so this may need altering. Colours must be defined using the rgb(..,..,..) format to enable साँचा:tl 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 साँचा:tl, 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 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 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 साँचा:para must be in the switch statement in this template. Thus साँचा:para fails and assigns the error colour.

Taxobox colour scheme

विषाणु transparent; text-align:center; border: 2px solid red; error:colour विषसमाणु भी
जीवाणु transparent; text-align:center; border: 2px solid red; error:colour
प्राच्य transparent; text-align:center; border: 2px solid red; error:colour नैनोप्राच्य, युवप्राच्य, चमत्प्राच्य, उत्सप्राच्य और व्याप्राच्य भी
सुकेन्द्रिक transparent; text-align:center; border: 2px solid red; error:colour उन सुकेन्द्रिकों के लिए जिसमें कोई रंग परिभाषित नहीं किया गया हो, जिसमें Excavata, Amoebozoa और Opisthokonta भी शामिल हैं
प्राणी transparent; text-align:center; border: 2px solid red; error:colour
फफूंद transparent; text-align:center; border: 2px solid red; error:colour
प्राच्यलवक transparent; text-align:center; border: 2px solid red; error:colour पादप और हरितपादप भी
SAR transparent; text-align:center; border: 2px solid red; error:colour also Chromalveolata
अनिश्चितता स्थानस्य transparent; text-align:center; border: 2px solid red; error:colour
इस साँचे द्वारा नहीं निर्मित कियें गएँ रंग:
लक्षवर्ग rgb(215,240,210)
अण्डवर्ग rgb(250,250,220)

Tracking categories

Supporting templates