Revision 623169 of "Vorlage:Location map setLocation" on dewikivoyage

<includeonly>{{#ifexpr: ({{{x}}} < 0) or ({{{x}}} > 1) or ({{{y}}} < 0) or ({{{y}}} > 1)
 | <div style="position: absolute; width: 50%; top: 50%; left: 25%; color: #ff0000; font-weight: bold; text-align: center;">Fehlerhafte Koordinate {{{name}}}</div>
 | <div style="position: absolute; border-style: none; padding: 0; top: {{#expr: {{{y}}} * 100 }}%; left: {{#expr: {{{x}}} * 100 }}%;">{{#ifexpr: {{{marksize}}}= 0 | | {{#ifeq: {{{mark|}}}|none| | <div style="position: absolute; padding: 0; top: -{{#expr: ({{{marksize|5}}}-1) / 2 round0 }}px; left: -{{#expr: ({{{marksize|5}}}-1) / 2 round0 }}px;">[[Image:{{{mark|Reddot.svg}}}|{{{marksize|5}}}x{{{marksize|5}}}px|top|link={{{name}}}|{{{name}}}]]</div>}} }}{{#ifeq: {{{label|}}}|none| | {{#if: {{{label|}}} | <table style="position: absolute; border: none; background-color: transparent; border-collapse: collapse; {{#switch: {{{labelWrap|}}}
 | manual   = white-space: nowrap; width: 10em; 
 | #default = width: 6em; 
}} {{#switch: {{{labelPosition|}}} 
 | 1        = text-align: left; left: 0; bottom: {{#expr: {{{marksize|5}}} / 2 round0 }}px;
 | 2        = text-align: left; left: {{#expr: ({{{marksize|5}}}+3) / 2 round0 }}px; bottom: -2px;
 | 3
 | right    = text-align: left; left: {{#expr: ({{{marksize|5}}}+5) / 2 round0 }}px; top: -2em; height: 4em; 
 | 4        = text-align: left; left: {{#expr: ({{{marksize|5}}}+3) / 2 round0 }}px;  top: -2px; 
 | 5        = text-align: left; left: 0; top: {{#expr: {{{marksize|5}}} / 2 round0 }}px;
 | 6
 | bottom   = text-align: center; {{#ifeq: {{{labelWrap}}} | manual | left: -5em | left: -3em }}; top: {{#expr: ({{{marksize|5}}}+3) / 2 round0 }}px;
 | 7        = text-align: right; right: 0; top: {{#expr: {{{marksize|5}}} / 2 round0 }}px;
 | 8        = text-align: right; right: {{#expr: ({{{marksize|5}}}+3) / 2 round0 }}px; top: -2px; 
 | 9
 | left     = text-align: right; right: {{#expr: ({{{marksize|5}}}+5) / 2 round0 }}px; top: -2em; height: 4em; 
 | 10       = text-align: right; right: {{#expr: ({{{marksize|5}}}+3) / 2 round0 }}px; bottom: -2px;
 | 11       = text-align: right; right: 0; bottom: {{#expr: {{{marksize|5}}} / 2 round0 }}px;
 | 12
 | top      = text-align: center; {{#ifeq: {{{labelWrap}}} | manual | left: -5em | left: -3em }}; bottom: {{#expr: ({{{marksize|5}}}+3) / 2 round0 }}px;
 | center   = text-align: center; top: -2em; height: 4em; {{#ifeq: {{{labelWrap}}} | manual | left: -5em; | left: -3em }}
 | #default = {{#ifexpr: {{{y}}} <= 0.5 | top: {{#expr: ({{{marksize|5}}}+3) / 2 round0 }}px | bottom: {{#expr: ({{{marksize|5}}}+3) / 2 round0 }}px }}; {{Location map horizShift| x= {{{x}}} }}
}}"><tr><td style="border: none; padding: 0; vertical-align: middle; {{#if: {{{labelBackground|}}} | background: {{{labelBackground}}}; }} {{#switch: {{{labelStyle|}}} 
 | = font-weight: normal;
 | bold          = font-weight: bold;
 | fett          = font-weight: bold;
 | italic        = font-style: italic;
 | kursiv        = font-style: italic;
 | underline     = text-decoration: underline;
 | letterspacing = letter-spacing: 0.1em;
 | wordspacing   = word-spacing: 0.5em;
 | smallcaps     = font-variant: small-caps;
 | uppercase     = text-transform: uppercase;
 | region        = font-weight: bold; text-transform: uppercase; color: #646464
 | subregion     = font-weight: bold; color: #646464
 | waterbody     = font-weight: bold; font-style: italic; letter-spacing: 0.1em; text-transform: uppercase; color: #2A6DB5
 | mountain      = font-weight: bold; font-style: italic; letter-spacing: 0.1em; color: #704040
 | #default      = {{{labelStyle}}}
}}">{{{label}}}</td></tr></table> }} }}
</div>
}}</includeonly><noinclude>{{Dokumentation}}</noinclude>