Template:Element cell-large

From Wikipedia, the free encyclopedia
Jump to: navigation, search

title="" style="text-align:center; padding:2px; line-height:normal;background:#000000; border:2px solid transparent; ;" |{{{2}}}
{{{1}}}
[[{{{2}}}|{{{3}}}]]


 

Documentation icon Template documentation[view] [edit] [history] [purge]

Usage[edit]

This element cell formatting allows more data than in basic periodic tables. On the other hand, it takes more space and may exceed page width, so the reader may have to scroll horizontally.

{{element cell-large
| 1= atomic number
| 2= element name
| 3= symbol
| 4= atomic weight
| 5= state of matter (sets font color)
| 6= metal–nonmetal category name (sets background color)
| 7= occurrence (sets cell border style)
| link= sets page link for {{{2}}}, to create a link like [[Mercury (element)|mercury]]
| bg= background color (overrides {{{6}}}, could look like |bg=#aabbcc)
| border = cell border (overrides {{{7}}}; could look like: |border=1px solid purple)
| style= adds or overrides any of the style settings (do not add the "" quotes)
| title= (mouseover text, overrides title composed from 2, 6, 5, 7)
| legend = (overrides legend part of the title that was composed from 6, 5, 7)
}}
Note: parameters link=, bg= and border= will not show in the title text.

The larger periodic tables using this template are:

See also[edit]

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
80
Hg
Hg
Mer­cury
80
mercury
80
Hg

200.59(2)
isotopes
Hg
200.59(2)
Image: mercury
Hg
80
1 asterisk
80
Hg
Hg
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}} · {{Element frame}} · List element cells