Revision as of 22:58, 2 January 2023 editDePiep (talk | contribs)Extended confirmed users294,285 edits →Usage← Previous edit |
Revision as of 19:32, 10 February 2023 edit undoDePiep (talk | contribs)Extended confirmed users294,285 edits "from bad -= still badNext edit → |
Line 1: |
Line 1: |
|
{{Documentation subpage}} |
|
|
==Usage== |
|
==Usage== |
|
:<code><nowiki>{{Infobox element/symbol-to-block|symbol=}}</nowiki></code> |
|
|
|
|
|
|
|
{| class="wikitable |
|
::'''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=== |
|
|
*{{para|format|letter}} |
|
|
::Returns '''bare letter''': s, p, d, f, or g: Hg → {{Infobox element/symbol-to-block|symbol=Hg |format=letter}} |
|
|
|
|
|
* {{para|format|wl}} |
|
|
::Returns '''wikilink''', like <code><nowiki>]</nowiki></code> |
|
|
*{{para|format|wlfirst}} |
|
|
::Returns '''wikilink when first mentioned''' in ''Z''-order (= H, B, Sc, La, Ubu → s, p, d, f, g) |
|
|
|
|
|
*{{para|format|bgcolor}} (tablecell) |
|
|
::Returns '''background color''' for block, used in tablecell |
|
|
:<code><nowiki>{{Infobox element/symbol-to-block|symbol=Hg |format=bgcolor }}</nowiki></code> → {{Infobox element/symbol-to-block|symbol=Hg |format=bgcolor }} |
|
|
|
|
|
*{{para|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''. |
|
|
:<code><nowiki>{{Infobox element/symbol-to-block|symbol=Hg |format=ptsort, pipe}}</nowiki></code> → <code><nowiki>data-sort-value="3080" | d-block</nowiki></code> |
|
|
:Applied in {{slink||Overview}} below. |
|
|
|
|
|
Format parameters can be combined using comma's: |
|
|
*{{para|format|letter, wl}} |
|
|
:for Hg: → {{Infobox element/symbol-to-block|symbol=Hg |format=letter, wl}} |
|
|
|
|
|
==settings== |
|
|
|
|
|
;Background colors returned: |
|
|
{{tl|Element color}} (definition) → {{tlf|Infobox element/symbol-to-block}} (following) |
|
|
* {{Element color/example|s-block}} = {{mono|1={{Infobox element/symbol-to-block|symbol=H|format=bgcolor}}}} |
|
|
* {{Element color/example|p-block}} = {{mono|1={{Infobox element/symbol-to-block|symbol=B|format=bgcolor}}}} |
|
|
* {{Element color/example|d-block}} = {{mono|1={{Infobox element/symbol-to-block|symbol=Sc|format=bgcolor}}}} |
|
|
* {{Element color/example|f-block}} = {{mono|1={{Infobox element/symbol-to-block|symbol=La|format=bgcolor}}}} |
|
|
* {{Element color/example|g-block}} = {{mono|1={{Infobox element/symbol-to-block|symbol=Ubu|format=bgcolor}}}} |
|
|
* {{Element color/example|h-block}} = {{mono|1={{Infobox element/symbol-to-block|symbol=|format=bgcolor}}}} not implemented |
|
|
* {{Element color/example|i-block}} = {{mono|1={{Infobox element/symbol-to-block|symbol=|format=bgcolor}}}} not implemented |
|
|
|
|
|
==Overview blocks== |
|
|
|
|
|
* See also {{tla|Infobox element/symbol-to-block|..-block[}}, {{tla|Infobox element/symbol-to-period|..-period}} |
|
|
|
|
|
{| class="wikitable sortable mw-collapsible mw-{{{state|uncollapsed}}}" style="font-size:85%" |
|
|
|- |
|
|
! colspan="10" | {{navbar-collapsible|] in the periodic table {{nobold|1=(overview; {{tla|Infobox element/symbol-to-block/overview/row|../row}})}}|Template:Infobox element/symbol-to-block/doc}} |
|
|
|- |
|
|- |
|
! Element |
|
! Element |
Line 57: |
Line 12: |
|
! note |
|
! note |
|
|- |
|
|- |
|
! |
|
|
! <nowiki> |
|
|
! |
|
! |
|
! <nowiki>] |
|
! <nowiki>] |
Line 214: |
Line 167: |
|
|
|
|
|
|} |
|
|} |
|
|
|
|
<includeonly>{{Rootpage other|]}}</includeonly> |
|