Jump to content

Wikipedia:WikiProject Elements/Templates

From Wikipedia, the free encyclopedia
 Main
talk
 Templates
RELC
 Articles
RELC
Stats
 Periodic Table by Quality
other PTQs
 Pictures Isotopes Periodic Table Graphics (PTG) Participants
WikiChem IRC
 Links
 

Templates overview

[edit]
Recent changes in
WP:Elements
List overview · Updated: 2021-12-23 · This box:

Elementbox infobox templates

[edit]

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
1 asterisk
1 asterisk
3 asterisks
1 asterisk
1 asterisk
3 asterisks
Article quality: 

Element cell templates

[edit]
This section:
... cell-named
See {{PT}}
cell cell property
cell image
/navbox
{{/navbox}}
/isotopes
{{isotopes (navbox)}}
Mer­cury80Hg200.59
80
Hg
Hg200.592±0.003
Image: mercury
Hg
80
Hg
80
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}}
1 asterisk 2 asterisks 1 asterisk 3 asterisks
PyMOL colors {{Element cell-PyMOL}}
Simplified Chinese characters {{Element cell property/Hans}}
Not mainspace

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

[edit]
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
Group 1 2   3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Hydrogen &
alkali metals
Alkaline earth metals Triels Tetrels Pnicto­gens Chal­co­gens Halo­gens Noble
gases
Period

1

Hydro­gen1H1.0080 He­lium2He4.0026
2 Lith­ium3Li6.94 Beryl­lium4Be9.0122 Boron5B10.81 Carbon6C12.011 Nitro­gen7N14.007 Oxy­gen8O15.999 Fluor­ine9F18.998 Neon10Ne20.180
3 So­dium11Na22.990 Magne­sium12Mg24.305 Alumin­ium13Al26.982 Sili­con14Si28.085 Phos­phorus15P30.974 Sulfur16S32.06 Chlor­ine17Cl35.45 Argon18Ar39.95
4 Potas­sium19K39.098 Cal­cium20Ca40.078 Scan­dium21Sc44.956 Tita­nium22Ti47.867 Vana­dium23V50.942 Chrom­ium24Cr51.996 Manga­nese25Mn54.938 Iron26Fe55.845 Cobalt27Co58.933 Nickel28Ni58.693 Copper29Cu63.546 Zinc30Zn65.38 Gallium31Ga69.723 Germa­nium32Ge72.630 Arsenic33As74.922 Sele­nium34Se78.971 Bromine35Br79.904 Kryp­ton36Kr83.798
5 Rubid­ium37Rb85.468 Stront­ium38Sr87.62 Yttrium39Y88.906 Zirco­nium40Zr91.224 Nio­bium41Nb92.906 Molyb­denum42Mo95.95 Tech­netium43Tc​[97] Ruthe­nium44Ru101.07 Rho­dium45Rh102.91 Pallad­ium46Pd106.42 Silver47Ag107.87 Cad­mium48Cd112.41 Indium49In114.82 Tin50Sn118.71 Anti­mony51Sb121.76 Tellur­ium52Te127.60 Iodine53I126.90 Xenon54Xe131.29
6 Cae­sium55Cs132.91 Ba­rium56Ba137.33 1 asterisk Lute­tium71Lu174.97 Haf­nium72Hf178.49 Tanta­lum73Ta180.95 Tung­sten74W183.84 Rhe­nium75Re186.21 Os­mium76Os190.23 Iridium77Ir192.22 Plat­inum78Pt195.08 Gold79Au196.97 Mer­cury80Hg200.59 Thallium81Tl204.38 Lead82Pb207.2 Bis­muth83Bi208.98 Polo­nium84Po​[209] Asta­tine85At​[210] Radon86Rn​[222]
7 Fran­cium87Fr​[223] Ra­dium88Ra​[226] 1 asterisk Lawren­cium103Lr​[266] Ruther­fordium104Rf​[267] Dub­nium105Db​[268] Sea­borgium106Sg​[269] Bohr­ium107Bh​[270] Has­sium108Hs​[269] Meit­nerium109Mt​[278] Darm­stadtium110Ds​[281] Roent­genium111Rg​[282] Coper­nicium112Cn​[285] Nihon­ium113Nh​[286] Flerov­ium114Fl​[289] Moscov­ium115Mc​[290] Liver­morium116Lv​[293] Tenness­ine117Ts​[294] Oga­nesson118Og​[294]
1 asterisk Lan­thanum57La138.91 Cerium58Ce140.12 Praseo­dymium59Pr140.91 Neo­dymium60Nd144.24 Prome­thium61Pm​[145] Sama­rium62Sm150.36 Europ­ium63Eu151.96 Gadolin­ium64Gd157.25 Ter­bium65Tb158.93 Dyspro­sium66Dy162.50 Hol­mium67Ho164.93 Erbium68Er167.26 Thulium69Tm168.93 Ytter­bium70Yb173.05  
1 asterisk Actin­ium89Ac​[227] Thor­ium90Th232.04 Protac­tinium91Pa231.04 Ura­nium92U238.03 Neptu­nium93Np​[237] Pluto­nium94Pu​[244] Ameri­cium95Am​[243] Curium96Cm​[247] Berkel­ium97Bk​[247] Califor­nium98Cf​[251] Einstei­nium99Es​[252] Fer­mium100Fm​[257] Mende­levium101Md​[258] Nobel­ium102No​[259]
[edit]

See also

[edit]
  1. ^ Meija, Juris; et al. (2016). "Atomic weights of the elements 2013 (IUPAC Technical Report)". Pure and Applied Chemistry. 88 (3): 265–91. doi:10.1515/pac-2015-0305.
  2. ^ Prohaska, Thomas; Irrgeher, Johanna; Benefield, Jacqueline; Böhlke, John K.; Chesson, Lesley A.; Coplen, Tyler B.; Ding, Tiping; Dunn, Philip J. H.; Gröning, Manfred; Holden, Norman E.; Meijer, Harro A. J. (2022-05-04). "Standard atomic weights of the elements 2021 (IUPAC Technical Report)". Pure and Applied Chemistry. doi:10.1515/pac-2019-0603. ISSN 1365-3075.