This template returns the element's legend color, to be used in HTML makeup:

  • {{Element color|f-block}}#9bff99
  • Some color codes are designed as fontcolor.
  • Some return values are designed as full border settings:
  • {{Element color|Synthetic}}2px dotted #6e6e8e

Note: the true code returned is like: #ffc0c0; (# being "#"). This way, any HTML page will not use "#" to start a numbered list.

Background color options

ပလေဝ်ဒါန်
style=background attribute value
In code: style="background:{{element color|alkali metals}};"

Theoretical elements (option, usually full color is used. See g-block):

Standard atomic weight

ပလေဝ်ဒါန်
msi = most stable isotope

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


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

Metalloid cite classes

ပလေဝ်ဒါန်

See Template:Periodic table (list of metalloid lists)

style=border attribute value
In code: style="border:{{element color|synthetic}};"

Occurrence (cell border)

ပလေဝ်ဒါန်
style=color attribute value
In code: style="color:{{element color|gas}};"

State of matter (font color)

ပလေဝ်ဒါန်


Setting a default color

ပလေဝ်ဒါန်
|1=not a color name |default=#aabbcc → #aabbcc (use # not #)
|1=not a color name |default=thistle → thistle


Usable in mainspace

Wikipedia article quality

ပလေဝ်ဒါန်

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

Wikipedia article importance

ပလေဝ်ဒါန်

ထာမ်ပလိက်:Element color/table/overview

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

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Element color

This template returns an RGB color number, for usage in css style setting (style="background:#ab23a6"). For certain input, a css fontcolor or border style is returned.

ပါရာမဳတာထာမ်ပလိက်ဂမၠိုၚ်

ပါရာမဳတာတၚ်ထမံက်ထ္ၜးဂကူအကာဲအရာ
Color class name1

Predefined class name to return its legend color

သာဓကဥပမာ
alkali metal
ဇုက်နွံပၟိက်

Deprecated and experimental parameters

ပလေဝ်ဒါန်

Those not for mainspace are kept in {{Element color/secondary}}