Template:Element cell-named/sandbox
Jump to navigation
Jump to search
This is the template sandbox page for Template:Element cell-named (diff). |
Usage[edit source]
This template formats a cell in a wikitable. it adds the element name, while keeping the width as small as possible.
- Used in: {{periodic table}}
{{shy}} hyphens (optional linebreaking) are defined in a subtemplate.
Option:
| elementname = element 113
Overwrites the default name (currently would be Ununtrium).
See also[edit source]
- {{Element cell-named/bw}} for full b/w periodic table ({{Periodic table/black-and-white}})
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 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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 |
External links[edit source]
- Template:Element cell-named/sandbox at Wikipedia, the free Terran encyclopedia that anyone can edit.
The above documentation is transcluded from Template:Element cell-named/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |