ଛାଞ୍ଚ:Element color/doc

ଉଇକିପିଡ଼ିଆ ରୁ
Jump to navigation Jump to search

This template acts as a container for specific colors:

This color code can be used to set a color in a periodic table.

Alternatively, one can use the plain template with a parameter, like this:

or

See below.

Overview[ସମ୍ପାଦନା]

State of matter[ସମ୍ପାଦନା]

Metal–nonmetal categories[ସମ୍ପାଦନା]

Metal–nonmetal categories, reduced set[ସମ୍ପାଦନା]

Years and eras[ସମ୍ପାଦନା]

Example: {{Periodic table (discovery periods)}}

Blocks[ସମ୍ପାଦନା]

Note: use lowercase blocknames

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 spec is also the first unnamed parameter:
  • {{Element color/Table|header}} → #e0e0e0


ଛାଞ୍ଚ:Element color/Table/Overview

The default value (returned when the first parameter is not recognised) is background:

  • {{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 # but not the ; character.

Template by parameter: {{element color|...}}[ସମ୍ପାଦନା]

All colors are also available via the simple template {{element color|...}}. 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, meaningfull color name. These color names are not used in main space, and most are redirected to an other color.

  •    D Template:Element color/D[[:ଛାଞ୍ଚ:Element color/D]] Note: Historical (previously for years and eras), kept to ensure that old revisions do not appear broken.
  •    E Template:Element color/E[[:ଛାଞ୍ଚ:Element color/E]] Note: Historical (previously for years and eras), kept to ensure that old revisions do not appear broken.
  •    F Template:Element color/F[[:ଛାଞ୍ଚ:Element color/F]] Note: Historical (previously for years and eras), kept to ensure that old revisions do not appear broken.
  •    X Template:Element color/X[[:ଛାଞ୍ଚ:Element color/X]] Note: Unspecific, redirected to Unknown (white)
  •    Disambig Template:Element color/Disambig[[:ଛାଞ୍ଚ:Element color/Disambig]] Note: Not a legend color, unknown intention.
  •    UnknownC Template:Element color/UnknownC[[:ଛାଞ୍ଚ:Element color/UnknownC]] Note: Unclear meaning. Redirected to Unknown phase
  •    veryreactive Template:Element color/veryreactive[[:ଛାଞ୍ଚ:Element color/veryreactive]] Note: Testing or sandbox.

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[ସମ୍ପାଦନା]