Template:Infobox element/symbol-to-block/doc
From HandWiki
< Template:Infobox element | symbol-to-block
Revision as of 20:35, 14 October 2021 by imported>MainEditor (Created page with "{{Documentation subpage}} ==Usage== :<code><nowiki>{{Infobox element/symbol-to-block|symbol=}}</nowiki></code> ::'''default''': returns plain text: {{mono|1={{Infobox element...")
![]() | This is a documentation subpage for Template:Infobox element/symbol-to-block It may contain usage information, categories and other content that is not part of the original template page. |
Usage
{{Infobox element/symbol-to-block|symbol=}}
- default: returns plain text: s-block, p-block, d-block, f-block, g-block,
h-block, i-block
- default: returns plain text: s-block, p-block, d-block, f-block, g-block,
Formatting options
|format=letter
- Returns bare letter: s, p, d, f, or g: Hg → d
|format=wl
- Returns wikilink, like
[[Block (periodic table)#s-block|s-block]]
- Returns wikilink, like
|format=wlfirst
- Returns wikilink when first mentioned in Z-order (= H, B, Sc, La, Ubu → s, p, d, f, g)
|format=bgcolor
(tablecell)
- Returns background color for block, used in tablecell
{{Infobox element/symbol-to-block|symbol=Hg |format=bgcolor }}
→ #99ccff
|format=ptsort, pipe
(in tablecell)
- Adds a hidden sort-key to order: 1. by block s<p<d<f<g, 2. per block: by Z.
{{Infobox element/symbol-to-block|symbol=Hg |format=ptsort, pipe}}
→data-sort-value="3080" | d-block
- Applied in § Overview below.
Format parameters can be combined using comma's:
|format=letter, wl
- for Hg: → d
settings
>= E121: | Ubu | Ubb | Ubt | Ubq | Ubp | Ubh = g-block
- Background colors returned
{{Element color}} (definition) → {{Infobox element/symbol-to-block}} (following)
-
s-block
→#ff9999
= #ff9999 -
p-block
→#fdff8c
= #fdff8c -
d-block
→#99ccff
= #99ccff -
f-block
→#9bff99
= #9bff99 -
g-block
→#fd99ff
= #fd99ff -
h-block
→transparent
= #ddd not implemented -
i-block
→transparent
= #ddd not implemented
Overview
{{Infobox element/symbol-to--overview-properties}}