This template produces a color code legend for periodic table templates. Legend of State of matter and natural occurrence are present always. The background-color legend can be set, the default option is the Category color legend.

To get the same background-color legend solely, see {{Element color legend}}.

Alkali metal–noble gas range (default)

កែប្រែ
or {{Periodic tables key}}
Example article: Chemical element
uses {{Element color legend/alkali metal–noble gas range}}
ទំព័រគំរូ:Element color legend/alkali metal–noble gas range
Color of the atomic number shows state of matter
(at standard conditions: 0 °C and 1 atm):
black=Solid green=Liquid red=Gas grey=Unknown
Border shows natural occurrence:
 
Primordial From decay Synthetic

Alkali metal–noble gas range, including superactinides

កែប្រែ
Example article: Extended periodic table (large version)
uses {{Element color legend/categories including superactinides}}
ទំព័រគំរូ:Element color legend/categories including superactinides
Color of the atomic number shows state of matter
(at standard conditions: 0 °C and 1 atm):
black=Solid green=Liquid red=Gas grey=Unknown
Border shows natural occurrence:
 
Primordial From decay Synthetic width="24%" style="border:ទំព័រគំរូ:Element frame/Undiscovered; background:#eee;" | (Undiscovered)

Metals and nonmetals

កែប្រែ
Example page: Template:Periodic table (metals and nonmetals)
uses {{Element color legend/metals nonmetals}}
ទំព័រគំរូ:Element color legend/metals nonmetals
Color of the atomic number shows state of matter
(at standard conditions: 0 °C and 1 atm):
black=Solid green=Liquid red=Gas grey=Unknown
Border shows natural occurrence:
 
Primordial From decay Synthetic
Example article: Block (periodic table)
uses {{Element color legend/spdf blocks}}
ទំព័រគំរូ:Element color legend/spdf blocks
Color of the atomic number shows state of matter
(at standard conditions: 0 °C and 1 atm):
black=Solid green=Liquid red=Gas grey=Unknown
Border shows natural occurrence:
 
Primordial From decay Synthetic
Example article: Superactinide
uses {{Element color legend/spdfg blocks}}
ទំព័រគំរូ:Element color legend/spdfg blocks
Color of the atomic number shows state of matter
(at standard conditions: 0 °C and 1 atm):
black=Solid green=Liquid red=Gas grey=Unknown
Border shows natural occurrence:
 
Primordial From decay Synthetic
Example article: Valence (chemistry)
uses {{Element color legend/valences}}
ទំព័រគំរូ:Element color legend/valences
Color of the atomic number shows state of matter
(at standard conditions: 0 °C and 1 atm):
black=Solid green=Liquid red=Gas grey=Unknown
Border shows natural occurrence:
 
Primordial From decay Synthetic
uses {{Element color legend/vertical}}
ទំព័រគំរូ:Element color legend/vertical
Color of the atomic number shows state of matter
(at standard conditions: 0 °C and 1 atm):
black=Solid green=Liquid red=Gas grey=Unknown
Border shows natural occurrence:
 
Primordial From decay Synthetic