قالب:Element cell
title=", " style="text-align:center; color:#000000; background-color:#ffffff; border:none; ;"|
Usage
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.
Element cell templates
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
cell | cell-named | cell-large | cell property | cell image | cell-asterisk | cell AQ not in articles |
cell-1 not in articles | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|
|
|
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Pattern:{| |- | {{element cell-...}} |}
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
All cells produce text like: style="background:#12abdf; {{{style|}}};" | [[ذهب]] So there is a pipe symbol (|) in the middle, separating cell style and cell content. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
انظر أيضاً: Template:Element color • Template:Element frame |
Parameters
All parameters are optional.
{| |- | {{element cell|80|mercury|Hg||Liquid|Transition metals|Primordial|link=mercury (element)}} |}
80 Hg |
- 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
tags in parameter #1 like this:
<nowiki>
| {{element cell|<nowiki>*</nowiki>|Lanthanides}}
- Page link
The cell links to parameter 2, usually the element name. If the page name is not the element name, as with
, the correct pagename can be set through [[Mercury (element)]]
.
link=Mercury (element)
- Label
The link is labeled with parameter 3 (usually the symbol):
.
If there is no link provided (no parameter 2, no link=), parameter 3 will show as unlinked text.
link=[[Aluminium|Al]]
- Background
The background color is set by parameter 6, usually the category name. It can be set by parameter bg:
. Parameter bg is used for just a color, with no legend meaning (no text in the title).
bg=#aabbcc
- Frame (cell border)
The frame style is set via parameter 7, usually the occurrence. It can be overridden by using
. This sets the border (frame), but does not have a legend meaning (no text in the title).
{{{1}}}
- Style
All style can be set (and overridden) by using the style parameter:
. Do not add quotes ("").
style=width:5em;
- Title
The title (mousehover text) is created from params 1: 6; 7; 5. (name: category; occurrence; state of matter).
The emercury example will give: Mercury: transition metals; primordeal; liquid
When parameters
or bg
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 border
title=...
- Legend
The legend is composed from parameters 6, 5 and 7. It can be overridden by using
. (This can be useful in combination with setting legend=Special meaning
).
bg=...
- Example using parameters
{| |- | {{element cell|one|two|three|bg=yellow|border=3px solid red|link=Main page|title=Some example}} |}
one three |
Deprecated
Deprecated parameters: unnamed parameter number 8, unnamed parameter number 9.
See also
Element cell templates
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
cell | cell-named | cell-large | cell property | cell image | cell-asterisk | cell AQ not in articles |
cell-1 not in articles | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|
|
|
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Pattern:{| |- | {{element cell-...}} |}
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
All cells produce text like: style="background:#12abdf; {{{style|}}};" | [[ذهب]] So there is a pipe symbol (|) in the middle, separating cell style and cell content. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
انظر أيضاً: Template:Element color • Template:Element frame |
المجموعة | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
الهيدروجين والفلزات القلوية |
الفلزات الأرضية القلوية | Pnictogens | Chalcogens | Halogens | Noble gases | ||||||||||||||
الدورة |
|||||||||||||||||||
2 | |||||||||||||||||||
3 | |||||||||||||||||||
4 | |||||||||||||||||||
5 | |||||||||||||||||||
6 | |||||||||||||||||||
7 | |||||||||||||||||||
1 (أحمر)=غاز | 3 (أسود)=صلب | 80 (أخضر)=سائل | 109 (رمادي)=غير معروفة | لون الرقم الذري يبين حالة المادة (عند 0 °س و 1 atm) |
بدائي | من اضمحلال | اصطناعي | الإطار يبين التوافر الطبيعي للعنصر |
- Ca: 40.078 — Abridged value (uncertainty omitted here)[2]
- Po: [209] — mass number of the most stable isotope
s-block | p-block | d-block | f-block | لون الخلفية يبين مستوى فرعي بالجدول الدوري |
The above documentation is transcluded from قالب:Element cell/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |
- ^ 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.
- ^ 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 (in الإنجليزية). doi:10.1515/pac-2019-0603. ISSN 1365-3075.