Revision 201039 of "Template:Vorlage:Location map X" on itwikivoyage<includeonly>{{#switch: {{Location map data {{{map}}}| which=projection }}
| nonlinear = {{#iferror: {{#expr: {{Location map data {{{map}}} | which=x | param1={{{lat|0}}} | param2={{{long|0}}} }} }} | -1 }}
| #default = {{#ifexpr: {{Location map data {{{map}}}| which=left }} < {{Location map data {{{map}}}| which=right }}
| {{#iferror: {{#expr: ({{{long|0}}} - {{Location map data {{{map}}}| which=left }}) / ({{Location map data {{{map}}}| which=right }} - {{Location map data {{{map}}}| which=left }}) }} | -1 }}
| {{#iferror: {{#expr: ({{#ifexpr: {{{long|0}}} < 0 | 360 | 0 }} + {{{long|0}}} - {{Location map data {{{map}}}| which=left }}) / (360 + {{Location map data {{{map}}}| which=right }} - {{Location map data {{{map}}}| which=left }}) }} | -1 }}
}}
}}</includeonly><noinclude>
<div class="framedBox">
== de: ==
* '''Funktion:''' Die Vorlage berechnet die waagerechte X-Position der Ortsmarkierung. Im Erfolgsfall wird ein Wert zwischen 0 (links) und 1 (rechts) ausgegeben. Bei Fehlern bei der Berechnung wird −1 zurückgegeben. Die nötigen Parameter werden den regionenspezifischen Daten-Vorlagen entnommen. '''Die Vorlage wird üblicherweise nicht direkt aufgerufen.'''
* '''Verwendung:''' <code><nowiki>{{Location map X|map= |lat= |long= }}</nowiki></code>
* '''Erforderliche Parameter:'''
** <code>|map </code> Karte einer Region, üblicherweise nach ISO 3166-1 oder ISO 3166-2.
** <code>|lat</code> Geografische Breite des Orts.
** <code>|long</code> Geografische Länge des Orts.
* '''Siehe auch:'''
** [[Vorlage:Location map Y]]
** [[Vorlage:Location map]]
</div>
__NOTOC__ __NOEDITSECTION__
[[Kategorie:Vorlagen:Positionskarten|0Location map X]]
</noinclude>All content in the above text box is licensed under the Creative Commons Attribution-ShareAlike license Version 4 and was originally sourced from https://it.wikivoyage.org/w/index.php?oldid=201039.
![]() ![]() This site is not affiliated with or endorsed in any way by the Wikimedia Foundation or any of its affiliates. In fact, we fucking despise them.
|