Wikipedia:WikiProject Elements/Templates
From Wikipedia, the free encyclopedia
Templates overview
WP:Elements |
|---|
|
| List overview · Updated: 2021-12-23 · This box: |
{{periodic table templates}}→
Elementbox infobox templates
Element cell templates
| ... cell-named See {{PT}} |
cell | cell property |
cell image |
/navbox {{/navbox}} |
/isotopes {{isotopes (navbox)}} | ||||||
|
|
|
|
|
|
| ||||||
Used in wikitable pattern: {| |- | {{element cell-abc|80|Hg}} |} | |||||||||||
All cell templates produce a table cell output in pattern: style="background:#12abdf;" | [[Gold]]Note that there is the pipe symbol (|) in the middle (added by the template), separating cell style and cell content. | |||||||||||
{{element cell
|
|
|
|
|
|
|
| link=
| border=
| bg=
| style=
| title=
| legend=
}}
|
{{element cell
| 1= Atomic number
| 2= Element name (and default page link; see also 'link=' parameter)
| 3= Symbol
| 4= (not used)
| 5= State of matter (sets font color)
| 6= Metal–nonmetal category name (sets background color, see also bg=)
| 7= Occurrence (sets cell border style)
| link= Wikipedia page (links 2 different, like [[Mercury (element)|mercury]])
| border= Sets border style (overrides 7. Like: border=3px solid red)
| bg= Background color (overrides 6; can look like bg=#aabbcc)
| style= Adds or overrides style settings (do not add the "" quotes)
| title= Mousehover text (overrides title composed from 2, 3, ...)
| legend= Legend text in title (overrides text part that was composed from 6; 5; 7)
}}
| ||||||||||
- Specials
- Asterisks {{Element cell-asterisk}}
- PyMOL colors {{Element cell-PyMOL}}
- Simplified Chinese characters {{Element cell property/Hans}}
- Not mainspace
- {{element cell/aq}}, see {{Periodic table by article quality}}
- {{Element cell/blind}}
- {{Element cell/index/pt-cell}}
- {{Element cell/period}} → ①
To simplify the rendering of various periodic tables, or parts of the periodic table, several templates are available. They take the same arguments but render the data differently. See examples to the right. All the templates allow an article name (parameter 8) different from the element name (parameter 2); this defaults to element name.
The templates are: {{element cell}}, {{element cell-named}}, {{element cell-large}}, {{element cell property}}, {{element cell AQ}} and {{element cell image}}. For some examples of use, see the periodic table (standard), periodic table (big), periodic table (detailed) and periodic table (large version). For further details and instructions for use, see Template:Element cell/doc.
Other templates are possible, displaying the data as one wishes. The neat things are the reader-friendly coding of the table cells, and the ability to copy an entire table code to another article and leave the data intact, just change the name of the template, and voila – there's another periodic table.
Periodic table, standard form
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | H | He | ||||||||||||||||||||||||||||||
| 2 | Li | Be | B | C | N | O | F | Ne | ||||||||||||||||||||||||
| 3 | Na | Mg | Al | Si | P | S | Cl | Ar | ||||||||||||||||||||||||
| 4 | K | Ca | Sc | Ti | V | Cr | Mn | Fe | Co | Ni | Cu | Zn | Ga | Ge | As | Se | Br | Kr | ||||||||||||||
| 5 | Rb | Sr | Y | Zr | Nb | Mo | Tc | Ru | Rh | Pd | Ag | Cd | In | Sn | Sb | Te | I | Xe | ||||||||||||||
| 6 | Cs | Ba | La | Ce | Pr | Nd | Pm | Sm | Eu | Gd | Tb | Dy | Ho | Er | Tm | Yb | Lu | Hf | Ta | W | Re | Os | Ir | Pt | Au | Hg | Tl | Pb | Bi | Po | At | Rn |
| 7 | Fr | Ra | Ac | Th | Pa | U | Np | Pu | Am | Cm | Bk | Cf | Es | Fm | Md | No | Lr | Rf | Db | Sg | Bh | Hs | Mt | Ds | Rg | Cn | Nh | Fl | Mc | Lv | Ts | Og |
|
| ||||||||||||||||||||||||||||||||
{{periodic table}}→
Primordial From decay Synthetic Border shows natural occurrence of the element
- Ca: 40.078 — Abridged value (uncertainty omitted here)[2]
- Po: [209] — mass number of the most stable isotope
Navbox periodic table
{{Navbox periodic table}}→
