ଛାଞ୍ଚ:Element cell

ଉଇକିପିଡ଼ିଆ ରୁ
Jump to navigation Jump to search
Template documentation[view] [edit] [history] [purge]

Usage[ସମ୍ପାଦନା]

The template produces a content in formatted CSS style for a single element cell (to be used in a periodic table).

Element cell templates
cell cell-compact cell-named cell-large cell property cell image cell-asterisk cell AQ
not in articles
cell-1
not in articles
title="Transition metal; Primordial; Liquid" style="text-align:center; color:green; background:ଛାଞ୍ଚ:Element color/Transition metal; border:2px solid #8811ff;" | 80
Hg
ଛାଞ୍ଚ:Element cell-compact
Mer­cury
80
ଛାଞ୍ଚ:Element cell-large
ଛାଞ୍ଚ:Element cell property
Image: mercury
Hg
80
2 asterisks
ଛାଞ୍ଚ:Element cell AQ
ଛାଞ୍ଚ:Element cell-1
Used in wikitable pattern: {| |- | {{element cell-abc|80|Hg}} |}
All cell templates produce a table cell output in pattern:
style="background:#12abdf; {{{style|}}};" | [[Gold]]
Note that there is the pipe symbol (|) in the middle, 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: 6; 5; 7)
| legend= Legend text in title (overrides text part that was composed from 6; 5; 7)
}}
See also: {{element cell-large/legend}} · {{Element color}} · List element cells

Parameters[ସମ୍ପାଦନା]

Parameters are unnamed.

{{element cell
| 1= atomic number (Z)
| 2= element name
| 3= symbol
| 4= (not used)
| 5= font color*: e.g. state of matter
| 6= background color*: e.g. alkali...noble range name
| 7= cell frame style*: e.g. natural occurrence
| 8= wikipedia page (if deviant from element name)
| 9= background: style (overrides 6)
}}

* marked styles are defined by {{element color}}: they take any recognised Element color/Name.

Example Hg, in wikitable:

 {|
 |-
 | {{element cell|80|mercury|Hg||Liquid|Transition metals|Primordial|mercury (element)}}
 |}
80
Hg

The title is created from params 6; 7; 5 (category; natural occurrence; state of matter)

See also[ସମ୍ପାଦନା]