Revision as of 22:58, 2 January 2023 editDePiep (talk | contribs)Extended confirmed users294,285 edits →Usage← Previous edit |
Latest revision as of 07:04, 13 March 2023 edit undoDePiep (talk | contribs)Extended confirmed users294,285 edits →UsageTag: Replaced |
(6 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
|
{{Documentation subpage}} |
|
|
==Usage== |
|
==Usage== |
|
|
==Overview== |
|
:<code><nowiki>{{Infobox element/symbol-to-block|symbol=}}</nowiki></code> |
|
|
|
{{Infobox element/symbol-to--overview-infobox-formats}} |
|
|
|
|
::'''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 |
|
|
! block id |
|
|
! nr |
|
|
! target |
|
|
! wl |
|
|
! infobox element |
|
|
! |
|
|
! note |
|
|
|- |
|
|
! |
|
|
! <nowiki> |
|
|
! |
|
|
! <nowiki>] |
|
|
! {{mono|wl}} |
|
|
! {{mono|infobox element}} |
|
|
! |
|
|
! |
|
|
{{Infobox element/symbol-to-block/overview/row|block=s|note=block=s}} |
|
|
{{Infobox element/symbol-to-block/overview/row|block=s-block|note=block=s-block}} |
|
|
{{Infobox element/symbol-to-block/overview/row|block=f|note=block=f}} |
|
|
{{Infobox element/symbol-to-block/overview/row|block=f-block|note=block=f-block}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=18|note=symbol=f (X)}} |
|
|
<!--- block 1 ---> |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=H}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=He}} |
|
|
<!--- block 2 ---> |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Li}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Be}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=B}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=C}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=N}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=O}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=F}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Ne}} |
|
|
<!--- block 3 ---> |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Na}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Mg}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Al}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Si}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=P}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=S}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Cl}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Ar}} |
|
|
<!--- block 4 ---> |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=K}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Ca}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Sc}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Ti}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=V}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Cr}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Mn}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Fe}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Co}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Ni}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Cu}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Zn}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Ga}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Ge}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=As}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Se}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Br}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Kr}} |
|
|
<!--- block 5 ---> |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Rb}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Sr}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Y}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Zr}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Nb}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Mo}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Tc}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Ru}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Rh}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Pd}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Ag}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Cd}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=In}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Sn}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Sb}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Te}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=I}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Xe}} |
|
|
<!--- block 6 ---> |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Cs}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Ba}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=La}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Ce}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Pr}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Nd}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Pm}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Sm}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Eu}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Gd}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Tb}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Dy}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Ho}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Er}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Tm}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Yb}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Lu}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Hf}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Ta}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=W}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Re}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Os}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Ir}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Pt}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Au}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Hg}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Tl}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Pb}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Bi}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Po}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=At}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Rn}} |
|
|
<!--- block 7 ---> |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Fr}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Ra}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Ac}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Th}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Pa}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=U}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Np}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Pu}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Am}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Cm}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Bk}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Cf}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Es}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Fm}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Md}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=No}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Lr}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Rf}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Db}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Sg}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Bh}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Hs}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Mt}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Ds}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Rg}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Cn}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Nh}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Fl}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Mc}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Lv}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Ts}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Og}} |
|
|
<!--- block 8 ---> |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Uue}}<!--E119--> |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Ubn}}<!--E120--> |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Ubu}}<!--E121--> |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Ubb}}<!--E122--> |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Ubt|note=no article<!-- 2019-06-14 -->}}<!--E123--> |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Ubq}}<!--E124--> |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Ubp|note=no article<!-- 2019-06-14 -->}}<!--E125--> |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Ubh}}<!--E126--> |
|
|
<!--- tests ---> |
|
|
|- |
|
|
| |
|
|
{{Infobox element/symbol-to-block/overview/row|block=block|note=block=block}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Ubs|note=symbol=Ubs }} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=|note=symbol=<blank>}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=Xx|note=symbol=Xx}} |
|
|
{{Infobox element/symbol-to-block/overview/row|symbol=FooBar|note=symbol=Foobar}} |
|
|
|
|
|
|} |
|
|
|
|
|
<includeonly>{{Rootpage other|]}}</includeonly> |
|