Difference between revisions of "Template:Element cell-named"

From blackwiki
Jump to navigation Jump to search
imported>DePiep
imported>DePiep
(No descriptions in title, just name/id (see this RfD))
Line 3: Line 3:
 
  -->{{#if:{{{link|{{{2|}}}}}}|<span class="nounderlines">{{!((}}{{{link|{{{2|}}}}}}{{!}}}}<span <!-- span the title + cellstyle attributes:
 
  -->{{#if:{{{link|{{{2|}}}}}}|<span class="nounderlines">{{!((}}{{{link|{{{2|}}}}}}{{!}}}}<span <!-- span the title + cellstyle attributes:
 
TITLE:
 
TITLE:
--> title="{{{title|{{ucfirst:{{trim|{{#if:{{{2|}}}|{{{2}}}|{{{3|}}}}}}}}}{{#if:{{{6|{{{legend|}}}{{{5|}}}{{{7|}}}}}}|&#x3a;}}{{#if:{{{legend|}}}|&#x20;{{{legend}}}|{{lc:{{#if:{{{6|}}}|&#x20;{{trim|{{{6}}}}}{{#if:{{{5|}}}{{{7|}}}|&#x3b;}}}}{{#if:{{{7|}}}|&#x20;{{trim|{{{7}}}}};}}{{#if:{{{5|}}}|&#x20;{{trim|{{{5}}}}}}}}}}}}}}"<!--
+
--> title="{{{title|{{{3|}}}, {{lc:{{{2|}}}}}}}}"<!--
 
CELL STYLE:
 
CELL STYLE:
 
--> style="<!--
 
--> style="<!--

Revision as of 10:35, 17 August 2019

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

Usage

This template formats a cell in a wikitable. it adds the element name, while keeping the width as small as possible.

{{shy}} hyphens (optional linebreaking) are defined in a subtemplate.

Option:

| elementname = element 113

Overwrites the default name (currently would be Ununtrium).

See also

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)}}
[[mercury (element)|MerTemplate:Shycury80HgTemplate:Val]]
mercury
80
Hg
HgTemplate:Val
Image: mercury
Hg
80
Hg
80
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 [[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, 3, ...)
| legend= Legend text in title (overrides text part that was composed from 6; 5; 7)
}}
Specials
Legend for large cells {{Large cell legend}}
Hydrogen
1.00794(7)
element name
atomic number
chemical symbol

Asterisks {{Asterisks}}
1 asterisk 2 asterisks 1 asterisk 3 asterisks
Not mainspace

Template:Periodic table templates