Šablon:Element cell-1
title="" style="width:2em; text-align:center; background:;"|
This template provides a simple and lean way to build a colored periodic table. Used in a wikitable, it produces a link to an element page and a background color.
Example Hg, in wikitable:
{| |- | {{element cell-1|80|Y}} |}
Hg |
It is suited for talkpages; for article space it may be too simple. Precoded PTs for copy-paste are available:
Usage
urediThis section:
... cell-named See {{PT}} |
cell-large {{Large}} |
cell {{Blocks}} |
cell property {{Electron affinities}} |
cell image {{Group x}} |
/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
- Legend for large cells {{Large cell legend}}
Hydrogen 1.00794(7)
|
→ime elementa atomski broj hemijski simbol |
- 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/black-&-white-named}} in {{PT in black and white, 18-col}}
- {{Element cell/black-&-white-1}} in {{PT in black and white, 32-col}}
- {{Element cell/blind}} in {{PT blind}}
- {{Element cell/index/pt-cell}}
- {{Element cell/group}} → Šablon:Element cell/group
- {{Element cell/period}} → Šablon:Element cell/period
- (more)
The template produces a content in formatted CSS style for a single element cell (to be used in a periodic table).
A simple list can be made easily, with colors set or changed:
C (for Category color, as set in enwiki), R, G, B, Y, grey, pink, alkaline earth metal
So: |2=...
C (for Category color, as set in enwiki) R -> red G -> green B -> blue Y ->yellow grey -> color name pink -> color name alkaline earth metal -> category name
H | H | He | Li | Be | B |
Parameters
urediAll parameters are optional.
{{element cell-1 | 1= atomic number Z | 2= bg color (R,G,B,Y,W,X,C or "#abe5ff", "lightgreen", "post-transition metal" &tc.) }}
Templates used
uredi- Element cell-1 (uredi razgovor istorija [1] # /podstranice /dok /dok uredi /pesak /pesak razl. /test)
- Element cell-1/Table style (uredi razgovor istorija [2] # /podstranice /dok /dok uredi /pesak /pesak razl. /test)
- Element cell-1/Table header (uredi razgovor istorija [3] # /podstranice /dok /dok uredi /pesak /pesak razl. /test)
- Element cell-1/Z-to-page (uredi razgovor istorija [4] # /podstranice /dok /dok uredi /pesak /pesak razl. /test)
- Element cell-1/Z-to-catcolor (uredi razgovor istorija [5] # /podstranice /dok /dok uredi /pesak /pesak razl. /test)
- Element cell-1/PT 18-col (uredi razgovor istorija [6] # /podstranice /dok /dok uredi /pesak /pesak razl. /test)
- Element cell-1/PT 32-col (uredi razgovor istorija [7] # /podstranice /dok /dok uredi /pesak /pesak razl. /test)
- Element cell-1/PT extended (uredi razgovor istorija [8] # /podstranice /dok /dok uredi /pesak /pesak razl. /test)