This is an old revision of this page, as edited by DePiep (talk | contribs) at 22:58, 2 January 2023 (→Usage). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Revision as of 22:58, 2 January 2023 by DePiep (talk | contribs) (→Usage)(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)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,
- options
|format=,letter, wl, wlfirst, bgcolor, ptsort?, pipe?
Formatting options
|format=letter
- Returns bare letter: s, p, d, f, or g: Hg → d
|format=wl
- Returns wikilink, like
]
- 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
- 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
→#7ed9d9
= #ddd not implemented -
i-block
→#e0c880
= #ddd not implemented
Overview blocks