Predloga:Infopolje Element/symbol-to-block

Iz Wikipedije, proste enciklopedije
Dokumentacija za predlogo[poglej] [uredi] [zgodovina] [osveži]

Usage[uredi kodo]

{{Infopolje Element/symbol-to-block|symbol=}}
default: returns plain text: blok s, p-block, d-block, f-block, g-block, h-block, i-block

Formatting options[uredi kodo]

  • |format=letter
Returns bare letter: s, p, d, f, or g: Hg → blok d
  • |format=wl
Returns wikilink, like [[Block (periodic table)#s-block|s-block]]
  • |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
{{Infopolje 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.
{{Infopolje 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: → blok d

settings[uredi kodo]

>= E121: | Ubu | Ubb | Ubt | Ubq | Ubp | Ubh = g-block
Background colors returned

{{Barva elementa}} (definition) → {{Infopolje 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[uredi kodo]

{{Infopolje Element/symbol-to--overview-properties}}