Revision as of 22:54, 2 January 2023 editDePiep (talk | contribs)Extended confirmed users294,285 edits →Overview blocks← Previous edit | Revision as of 22:58, 2 January 2023 edit undoDePiep (talk | contribs)Extended confirmed users294,285 edits →UsageNext edit → | ||
Line 5: | Line 5: | ||
::'''default''': returns plain text: {{mono|1={{Infobox element/symbol-to-block|symbol=H}}, p-block, d-block, f-block, g-block, <s>h-block, i-block</s>}} | ::'''default''': returns plain text: {{mono|1={{Infobox element/symbol-to-block|symbol=H}}, p-block, d-block, f-block, g-block, <s>h-block, i-block</s>}} | ||
:options {{para|format|,letter, wl, wlfirst, bgcolor, ptsort?, pipe?}} | |||
===Formatting options=== | ===Formatting options=== | ||
*{{para|format|letter}} | *{{para|format|letter}} |
Revision as of 22:58, 2 January 2023
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