साँचा:Element color/doc

मुक्त ज्ञानकोश विकिपीडिया से
< साँचा:Element color
imported>Fluxbot द्वारा परिवर्तित १६:०९, १६ जून २०१८ का अवतरण ((Task1) HTML मरम्मत विशेष:LintErrors)
(अन्तर) ← पुराना अवतरण | वर्तमान अवतरण (अन्तर) | नया अवतरण → (अन्तर)
नेविगेशन पर जाएँ खोज पर जाएँ

{{

 साँचा: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 = }} This template returns the element's legend color, to be used in HTML makeup:

or

See below.

Alternatively, one can use the subtemplates as a direct name like this:

These साँचा:code options are deprecated, and incomplete.

Overview

State of matter

Metal–nonmetal categories

Metal–nonmetal categories, reduced set

Year and era

Example: साँचा:tl

Blocks

In period 8, theoretical elements:

Numbers

Used in: Valence (chemistry)#Maximum valences of the elements These colors correspond to the Alkali metal–noble gases range

"Unknown" variants

Wikipedia article quality

Used in: Wikipedia:WikiProject Elements/Articles/Periodic Table by Quality

Wikipedia article importance

Color names

Table background

Notes:

  1. This table background template requires a parameter.
  2. Different from element cell backgrounds, they are not intended to be in a legend.

Usage:

  • {{Element color/Table|header}} → #e0e0e0
The parameter साँचा:code is also the first unnamed parameter:
  • {{Element color/Table|header}} → #e0e0e0


Available background colors for periodic tables
Usage: साँचा:tlx
Specification
(1st parameter)
Alternative
specification
Returns color Note
title caption #d8d8d8
header #e0e0e0
colheader rowheader, subheader, colh, rowh, subh #e8e8e8
mark #f0f0f0
background bg #f8f8f8 Also the default return value
border   #a9a9a9 Equals predefined color "grey"

The default value (returned when the first parameter is not recognised) is साँचा:code:

  • {{Element color/Table|}} → #f8f8f8.
This default can be overridden by parameter:
  • {{Element color/Table|default=#a0f4c0}} → #f8f8f8

The return values are complete color values to be used as a CSS style, including the साँचा:code but not the साँचा:code character.

Template by parameter: साँचा:tlx

All colors are also available via the simple template साँचा:tlx. That is, enter the color's meaningful name as a parameter to the template:

The outcome (color id) is the same. The template is a bit more lax for the input (any capitalisation accepted, also singular accepted).

Deprecated or unknown meaning

Do not use these color names. In general, it is advised to use a more specific, meaningful color name. These color names are not used in main space, and most are redirected to another color.

Colors hardcoded

The same colors, with the same key, may be hardcoded in templates and pages:

Infoboxes with hardcoded series color (header background color):

See also

साँचा:periodic table templates