The template produces a content in formatted CSS style for a single element cell (to be used in a periodic table). It is part of a series.
T:Element cell ...
templates
(mainspace)
|
...
cell-named
See {{
PT
}}
|
cell-large
{{
Large
}}
|
cell
{{
Blocks
}}
|
cell property
{{
Electron affinities
}}
|
cell image
{{
Group x
}}
|
/navbox
{{
/navbox
}}
|
/isotopes
{{
isotopes (navbox)
}}
|
|
?ivo srebro
- 7002200590000000000♠
200,59
- 7002200592000000000♠
200,592(3)
|
|
|
Hg
7002200592000000000♠
200,592(3)
|
|
|
|
|
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 [[?ivo srebro]])
| 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
- Legend for large cells
{{
Large cell legend
}}
- Asterisks
{{
Asterisks
}}
- Not mainspace
All parameters are optional.
{|
|-
| {{element cell|80|?ivo srebro|Hg||Kapljevina|Prehodni element|Prvobitno|link=?ivo srebro}}
|}
- Top row
Parameter 1, usually the atomic number, is put in the top row unlinked. If this parameter is present, a <br/> is added. The font color is set by parameter 5, usually the state of matter key.
- Asterisk (*)
To add a plain asterisk, as is done to mark lanthanides and actinides, add them in
<nowiki>
tags in parameter #1 like this:
| {{element cell|<nowiki>*</nowiki>|Lantanidi}}
- Page link
The cell links to parameter 2, usually the element name. If the page name is not the element name, as with
[[?ivo srebro]]
, the correct pagename can be set through
link=?ivo srebro
.
- Label
The link is
labeled
with parameter 3 (usually the symbol):
link=[[Aluminium|Al]]
.
If there is no link provided (no parameter 2, no link=), parameter 3 will show as unlinked text.
- Background
The background color is set by parameter 6, usually the category name. It can be set by parameter bg:
bg=#aabbcc
. Parameter bg is used for just a color, with no legend meaning (no text in the title).
- Frame (cell border)
The frame style is set via parameter 7, usually the occurrence. It can be overridden by using
{{{1}}}
. This sets the border (frame), but does not have a legend meaning (no text in the title).
- Style
All style can be set (and overridden) by using the style parameter:
style=width:5em;
. Do not add quotes ("").
- Title
The title (mousehover text) is created from params 1: 6; 7; 5. (name: category; occurrence; state of matter).
The emercury example will give:
?ivo srebro: prehodni element; primordeal; teko?ina
When parameters
bg
or
border
are used, their setting is not added to the title (they are meaningless).
The title can be set (overridden) to any text, including a blank, by using
title=...
- Legend
The legend is composed from parameters 6, 5 and 7. It can be overridden by using
legend=Special meaning
. (This can be useful in combination with setting
bg=...
).
- Example using parameters
{|
|-
| {{element cell|one|two|three|bg=yellow|border=3px solid red|link=Main page|title=Some example}}
|}
Deprecated parameters: unnamed parameter number 8, unnamed parameter number 9.
{{
Element cell/isotopes
}}
T:Element cell ...
templates
(mainspace)
|
...
cell-named
See {{
PT
}}
|
cell-large
{{
Large
}}
|
cell
{{
Blocks
}}
|
cell property
{{
Electron affinities
}}
|
cell image
{{
Group x
}}
|
/navbox
{{
/navbox
}}
|
/isotopes
{{
isotopes (navbox)
}}
|
|
?ivo srebro
- 7002200590000000000♠
200,59
- 7002200592000000000♠
200,592(3)
|
|
|
Hg
7002200592000000000♠
200,592(3)
|
|
|
|
|
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 [[?ivo srebro]])
| 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
- Legend for large cells
{{
Large cell legend
}}
- Asterisks
{{
Asterisks
}}
- Not mainspace
|
---|
|
Column counts are columns only that contain elements. "Compact cells" denote cells with element symbol only, have navbox style and the table fits basic wiki page width (
1024×768
). "Detailed cells" have more data, and may cause page width excess (scroll bar added). "Extended" periodic tables are about theoretical periods 8 and higher (element 119 and higher).
|
Oblike tabel
| Standardno
| |
---|
Raz?irjeno
| |
---|
Alternativna
struktura
| |
---|
|
---|
Lastnosti elementov
| Data
| |
---|
Variante
| |
---|
Konfiguracija
elektronov
| |
---|
|
---|
Skupine
| |
---|
Bloki
| |
---|
Periode
|
- {{
3
}}
- {{
5
}}
- {{
6
}}
- {{
7
}}
|
---|
Metal–metalloid–nonmetal
| |
---|
Teme
| |
---|
|
Kemijske spojine
| |
---|
Legende
| |
---|
Formatiranje
| |
---|
Navigacija
| |
---|
WikiProjekt
in vzdr?evanje
| |
---|
Not normalised
| |
---|
Slike (zbirka)
| |
---|
Infopolja
| |
---|
Izotopi
| |
---|
Razno
| |
---|
Datoteke in slike
| |
---|
|