Content deleted Content added
padding top 2px not 0 |
Undid revision 1167255877 by Jonesey95 (talk). We can go this small, but no smaller. |
||
(8 intermediate revisions by 4 users not shown) | |||
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|{{{3|}}}, {{lc:{{{2|}}}}}}}}"<!-- |
|||
--> title="{{{title|{{ucfirst:{{trim|{{#if:{{{2|}}}|{{{2}}}|{{{3|}}}}}}}}}{{#if:{{{6|{{{legend|}}}{{{5|}}}{{{7|}}}}}}|:}}{{#if:{{{legend|}}}| {{{legend}}}|{{lc:{{#if:{{{6|}}}| {{trim|{{{6}}}}}{{#if:{{{5|}}}{{{7|}}}|;}}}}{{#if:{{{7|}}}| {{trim|{{{7}}}}};}}{{#if:{{{5|}}}| {{trim|{{{5}}}}}}}}}}}}}}"<!-- |
|||
CELL STYLE: |
CELL STYLE: |
||
--> style="<!-- |
--> style="<!-- |
||
-->background: {{{bg|{{element color|{{{6|white}}}}}|}}}; <!-- |
-->background-color: {{{bg|{{element color|{{{6|white}}}}}|}}}; <!-- |
||
-->border-top: {{element color|{{{7|}}}}}; <!-- e.g. "2px solid #8811ff" for primordial |
-->border-top: {{element color|{{{7|}}}}}; <!-- e.g. "2px solid #8811ff" for primordial |
||
-->border-bottom: {{element color|{{{7|}}}}}; <!-- |
-->border-bottom: {{element color|{{{7|}}}}}; <!-- |
||
Line 18: | Line 18: | ||
CELL CONTENT: |
CELL CONTENT: |
||
NAME softhyphened (SHY) |
NAME softhyphened (SHY) |
||
--><span style="display:block; color:black; font-size: |
--><span style="display:block; color:black; font-size:95%; height:2.2em; line-height:1.1em; vertical-align:top;">{{ucfirst:{{{elementname|{{Infobox element/symbol-to-shyphen-name|symbol={{{3|}}}}}}}}}}</span><!-- |
||
NR |
NR |
||
-->{{#if:{{{1|}}}|<span style="color: {{#if:{{{5|}}}|{{element color|{{{5|}}}}}|black}}; display:block;">{{trim|{{{1|}}}}}</span>}}<!-- |
-->{{#if:{{{1|}}}|<span style="color: {{#if:{{{5|}}}|{{element color|{{{5|}}}}}|black}}; display:block;">{{trim|{{{1|}}}}}</span>}}<!-- |
||
Line 24: | Line 24: | ||
--><span style="display:block; font-size:112%; font-weight:bold;">{{trim|{{{3|}}}}}</span><!-- |
--><span style="display:block; font-size:112%; font-weight:bold;">{{trim|{{{3|}}}}}</span><!-- |
||
STD ATOMIC WEIGHT or MASS NR |
STD ATOMIC WEIGHT or MASS NR |
||
--><span style="display:block; color:black; font-size: |
--><span style="display:block; color:black; font-size:95%; height:1.1em; line-height:1.1em;">​{{#if:{{{4|}}} |
||
|{{{4|}}} |
|{{{4|}}} |
||
|{{Infobox element/symbol-to-saw|symbol={{{3|}}}|format=formal-short-rounded}}}}</span><!-- |
|{{Infobox element/symbol-to-saw|symbol={{{3|}}}|format=formal-short-rounded}}}}</span><!-- |
Latest revision as of 17:33, 26 July 2023
![](https://upload.wikimedia.org/wikipedia/commons/thumb/4/43/Test_Template_Info-Icon_-_Version_%282%29.svg/50px-Test_Template_Info-Icon_-_Version_%282%29.svg.png)
Usage[edit]
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]
This section:
... cell-named See {{PT}} |
cell | cell property |
cell image |
/navbox {{/navbox}} |
/isotopes {{isotopes (navbox)}} | ||||||
|
|
|
|
|
| ||||||
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
- Asterisks {{Element cell-asterisk}}
![]() |
![]() |
![]() |
![]() |
- PyMOL colors {{Element cell-PyMOL}}
- Simplified Chinese characters {{Element cell property/Hans}}
- Not mainspace
- {{element cell/aq}}, see {{Periodic table by article quality}}
- {{Element cell/blind}}
- {{Element cell/index/pt-cell}}
- {{Element cell/period}} → ①
- (more)