မာတိကာသို့ ခုန်သွားရန်

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

နူ ဝဳကဳပဳဒဳယာ

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.

style=background attribute value
In code: style="background:{{element color|alkali metals}};"

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

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

See Template:Periodic table (list of metalloid lists)

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


|1=not a color name |default=#aabbcc → #aabbcc (use # not #)
|1=not a color name |default=thistle → thistle


Usable in mainspace

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

ထာမ်ပလိက်: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}}