Šablóna:Geobox2 map: Rozdiel medzi revíziami

z Wikipédie, slobodnej encyklopédie
Smazaný obsah Přidaný obsah
Draceane (diskusia | príspevky)
notpageimage
d - explicitná "none" špecifikácia polohy obr., spôsobuje wrapnutie do <figure> elementu namiesto do <span>u, pričom figure má defaultne nenulový margin, čo robí problém so správnym rendrovaním mapiek v mobilnom zobrazení, viď disk.
 
Riadok 3: Riadok 3:
<div style="width: {{#if:{{{3|}}}|{{{3}}}|270}}px; margin-left: auto; margin-right: auto;" class="noviewer">
<div style="width: {{#if:{{{3|}}}|{{{3}}}|270}}px; margin-left: auto; margin-right: auto;" class="noviewer">
<div style="position: relative;">
<div style="position: relative;">
{{#if:{{{7|}}}|<div style="position: absolute;">[[Image:{{{7}}}|{{#if:{{{3|}}}|{{{3}}}px|270px}} |none|class=notpageimage|{{{2|}}}]]</div>}}
{{#if:{{{7|}}}|<div style="position: absolute;">[[Image:{{{7}}}|{{#if:{{{3|}}}|{{{3}}}px|270px}}|class=notpageimage|{{{2|}}}]]</div>}}
{{#if:{{{1|}}}|<div style="position: relative;">[[Image:{{{1}}}|{{#if:{{{3|}}}|{{{3}}}px|270px}} |none|class=notpageimage|{{{2|}}}]]</div>|<div style="position: relative;">[[Image:{{Geobox locator {{{6|}}}|image}}|{{#if:{{{3|}}}|{{{3}}}px|270px}} |none|class=notpageimage|{{{2|}}}]]</div>}}
{{#if:{{{1|}}}|<div style="position: relative;">[[Image:{{{1}}}|{{#if:{{{3|}}}|{{{3}}}px|270px}}|class=notpageimage|{{{2|}}}]]</div>|<div style="position: relative;">[[Image:{{Geobox locator {{{6|}}}|image}}|{{#if:{{{3|}}}|{{{3}}}px|270px}}|class=notpageimage|{{{2|}}}]]</div>}}
{{#if:{{{6|}}}|{{#if:{{{4|}}}|<div style="position:absolute; left:{{#ifeq: {{Geobox locator {{{6|}}}|mapa}}|custom|{{#expr:{{Geobox locator {{{6|}}}|x|{{{5}}}|{{{4}}}}}}}%;|{{#expr: (({{{4|0}}} - {{Geobox locator {{{6|}}}|left}})/({{Geobox locator {{{6|}}}|right}}-{{Geobox locator {{{6|}}}|left}})*{{#if:{{{3|}}}|{{{3}}}|270}}) -4 round 2}}px;}} top:{{#ifeq: {{Geobox locator {{{6|}}}|mapa}}|custom|{{#expr:{{Geobox locator {{{6|}}}|y|{{{5}}}|{{{4}}}}}}}%;|{{#expr: (({{Geobox locator {{{6|}}}|top}} - {{{5|0}}})/({{Geobox locator {{{6}}}|top}}-{{Geobox locator {{{6|}}}|bottom}})*{{#if:{{{3|}}}|{{{3}}}|270}})*{{#ifeq:{{Geobox locator {{{6|}}}|ratio}}||1|{{Geobox locator {{{6|}}}|ratio}}}} -4 round 2}}px;}} padding:0; line-height:0;">{{#ifeq: {{Geobox locator {{{6|}}}|mapa}}|custom|<div style="position: relative; text-align: center; left: -{{#if:{{{9|}}}|{{#expr: (({{{9|}}} / 2) round 0 )+ 1}}|4}}px; top: -{{#if:{{{9|}}}|{{#expr: (({{{9|}}} / 2) round 0 )+ 1}}|4}}px; width: {{#if:{{{9|}}}|{{{9|}}}|7}}px; font-size: {{#if:{{{9|}}}|{{{9|}}}|7}}px;">|}}[[Image:{{Geobox2 map/symbol|{{{symbol|}}}}}|{{#if:{{{9|}}}|{{{9}}}|7}}px |none]]</div></div>}}
{{#if:{{{6|}}}|{{#if:{{{4|}}}|<div style="position:absolute; left:{{#ifeq: {{Geobox locator {{{6|}}}|mapa}}|custom|{{#expr:{{Geobox locator {{{6|}}}|x|{{{5}}}|{{{4}}}}}}}%;|{{#expr: (({{{4|0}}} - {{Geobox locator {{{6|}}}|left}})/({{Geobox locator {{{6|}}}|right}}-{{Geobox locator {{{6|}}}|left}})*{{#if:{{{3|}}}|{{{3}}}|270}}) -4 round 2}}px;}} top:{{#ifeq: {{Geobox locator {{{6|}}}|mapa}}|custom|{{#expr:{{Geobox locator {{{6|}}}|y|{{{5}}}|{{{4}}}}}}}%;|{{#expr: (({{Geobox locator {{{6|}}}|top}} - {{{5|0}}})/({{Geobox locator {{{6}}}|top}}-{{Geobox locator {{{6|}}}|bottom}})*{{#if:{{{3|}}}|{{{3}}}|270}})*{{#ifeq:{{Geobox locator {{{6|}}}|ratio}}||1|{{Geobox locator {{{6|}}}|ratio}}}} -4 round 2}}px;}} padding:0; line-height:0;">{{#ifeq: {{Geobox locator {{{6|}}}|mapa}}|custom|<div style="position: relative; text-align: center; left: -{{#if:{{{9|}}}|{{#expr: (({{{9|}}} / 2) round 0 )+ 1}}|4}}px; top: -{{#if:{{{9|}}}|{{#expr: (({{{9|}}} / 2) round 0 )+ 1}}|4}}px; width: {{#if:{{{9|}}}|{{{9|}}}|7}}px; font-size: {{#if:{{{9|}}}|{{{9|}}}|7}}px;">|}}[[Image:{{Geobox2 map/symbol|{{{symbol|}}}}}|{{#if:{{{9|}}}|{{{9}}}|7}}px]]</div></div>}}
|{{#if:{{{4|}}}|<div style="position:absolute; left:{{#expr:({{{4|0}}}*{{#if:{{{3|}}}|{{{3}}}|270}}/100 round 2) -4}}px; top:{{#expr:({{{5|0}}}*{{#if:{{{3|}}}|{{{3}}}|270}}/100 round 2) -4}}px; padding:0;">{{#ifeq: {{Geobox locator {{{6|}}}|mapa}}|custom|<div style="position: relative; text-align: center; left: -{{#if:{{{9|}}}|{{#expr: (({{{9|}}} / 2) round 0 )+ 1}}|4}}px; top: -{{#if:{{{9|}}}|{{#expr: (({{{9|}}} / 2) round 0 )+ 1}}|4}}px; width: {{#if:{{{9|}}}|{{{9|}}}|7}}px; font-size: {{#if:{{{9|}}}|{{{9|}}}|7}}px;">|}}[[Image:{{Geobox2 map/symbol|{{{symbol|}}}}}|{{#if:{{{9|}}}|{{{9}}}|7}}px |none]]</div></div>}}}}
|{{#if:{{{4|}}}|<div style="position:absolute; left:{{#expr:({{{4|0}}}*{{#if:{{{3|}}}|{{{3}}}|270}}/100 round 2) -4}}px; top:{{#expr:({{{5|0}}}*{{#if:{{{3|}}}|{{{3}}}|270}}/100 round 2) -4}}px; padding:0;">{{#ifeq: {{Geobox locator {{{6|}}}|mapa}}|custom|<div style="position: relative; text-align: center; left: -{{#if:{{{9|}}}|{{#expr: (({{{9|}}} / 2) round 0 )+ 1}}|4}}px; top: -{{#if:{{{9|}}}|{{#expr: (({{{9|}}} / 2) round 0 )+ 1}}|4}}px; width: {{#if:{{{9|}}}|{{{9|}}}|7}}px; font-size: {{#if:{{{9|}}}|{{{9|}}}|7}}px;">|}}[[Image:{{Geobox2 map/symbol|{{{symbol|}}}}}|{{#if:{{{9|}}}|{{{9}}}|7}}px]]</div></div>}}}}
</div>
</div>
{{#if: {{{2|}}}| <div style="padding-top: 0.4em; text-align: center;">{{{2}}}</div>}}
{{#if: {{{2|}}}| <div style="padding-top: 0.4em; text-align: center;">{{{2}}}</div>}}

Aktuálna revízia z 13:21, 28. február 2024