Szablon:Geobox2 map: Różnice pomiędzy wersjami
Przejdź do nawigacji
Przejdź do wyszukiwania
| Linia 1: | Linia 1: | ||
<includeonly> | <includeonly> | ||
{{#if:{{{8|}}}|<tr><td colspan="2">}} | {{#if:{{{8|}}}|<tr><td colspan="2">}} | ||
| − | <div style="width: {{#if:{{{3|}}}|{{{3}}}| | + | <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| | + | {{#if:{{{7|}}}|<div style="position: absolute;">[[Image:{{{7}}}|{{#if:{{{3|}}}|{{{3}}}px|270px}}|none|{{{2|}}}]]</div>}} |
| − | {{#if:{{{1|}}}|<div style="position: relative;">[[Image:{{{1}}}|{{#if:{{{3|}}}|{{{3}}}px| | + | {{#if:{{{1|}}}|<div style="position: relative;">[[Image:{{{1}}}|{{#if:{{{3|}}}|{{{3}}}px|270px}}|none|{{{2|}}}]]</div>|<div style="position: relative;">[[Image:{{Geobox locator {{{6|}}}|image}}|{{#if:{{{3|}}}|{{{3}}}px|270px}}|none|{{{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}}}| | + | {{#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:{{{4|}}}|<div style="position:absolute; left:{{#expr:({{{4|0}}}*{{#if:{{{3|}}}|{{{3}}}| | + | |{{#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>}}}} |
</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>}} | ||