Vorlage:CoordinateSimple: Unterschied zwischen den Versionen

Aus MeinFlöha-Wiki
Zur Navigation springen Zur Suche springen
(Kopie von https://de.wikipedia.org/w/index.php?title=Vorlage:CoordinateSimple&oldid=153309071)
 
 
Zeile 1: Zeile 1:
 
<!-- Alleszusammengeschrieben für optimale Performance und minimalen Parser-Speicherbedarf. Code-Dokumentation: siehe Vorlage:CoordinateSimple/Doku -->
 
<!-- Alleszusammengeschrieben für optimale Performance und minimalen Parser-Speicherbedarf. Code-Dokumentation: siehe Vorlage:CoordinateSimple/Doku -->
<onlyinclude><includeonly>{{#if:{{{EW|}}}{{{NS|}}}|{{#if:{{#ifexpr:abs({{{NS|0}}})>90|1}}{{#if:{{{NS|}}}||1}}{{#titleparts:{{{NS|}}}|1|2}}|{{CoordinateError|NS|1}}}}{{#if:{{#ifexpr:abs({{{EW|0}}})>180|1}}{{#if:{{{EW|}}}||1}}{{#titleparts:{{{EW|}}}|1|2}}|{{CoordinateError|EW|1}}}}{{#if:{{{name|}}}||{{CoordinateError|name|8|1}}}}{{#if:{{{region|}}}||{{CoordinateError|region|6|1}}}}{{#switch:{{{type|}}}|landmark|waterbody|mountain|city|isle|airport|adm2nd|adm1st|state|country|forest=|#default={{CoordinateError|type|3}}}}{{#if:{{{article|}}}{{{map|}}}{{{globe|}}}|{{CoordinateError|article/map/globe|5|0}}}}{{#if:{{{sortkey|}}}|{{CoordinateSort|{{{NS|0}}}|{{{EW|0}}}|key={{{sortkey|}}}}}}}<span id="{{anchorencode:{{{name|}}}}}" class=plainlinks-print title=Koordinate>[//tools.wmflabs.org/geohack/geohack.php?pagename={{FULLPAGENAMEE}}&language=de&params={{{NS|}}}_N_{{{EW|}}}_E_region:{{{region|}}}_type:{{{type|}}}{{#if:{{{dim|}}}|_dim:{{{dim}}}}}&title={{urlencode:{{{name|}}}}} {{#switch:{{{text|}}}|=Lage|DMS|DM|DEC|CH1903|UTM|ICON0|ICON1|ICON2={{CoordinateSimpleText|{{{text|}}}|{{{NS|}}}|{{{EW|}}}}}|#default={{{text|}}}}}]</span>|{{CoordinateNO{{#if:{{NAMESPACE}}|x}}|text=Lage|article=|type={{{type|}}}|region={{{region|}}}|lw={{{lw|}}}|name={{{name|}}}|simple=y}}}}</includeonly><noinclude>{{Dokumentation}}</noinclude></onlyinclude>
+
<onlyinclude><includeonly>{{#if:{{{EW|}}}{{{NS|}}}|{{#if:{{#ifexpr:abs({{{NS|0}}})>90|1}}{{#if:{{{NS|}}}||1}}{{#titleparts:{{{NS|}}}|1|2}}|{{CoordinateError|NS|1}}}}{{#if:{{#ifexpr:abs({{{EW|0}}})>180|1}}{{#if:{{{EW|}}}||1}}{{#titleparts:{{{EW|}}}|1|2}}|{{CoordinateError|EW|1}}}}{{#if:{{{name|}}}||{{CoordinateError|name|8|1}}}}{{#if:{{{region|}}}||{{CoordinateError|region|6|1}}}}{{#switch:{{{type|}}}|landmark|waterbody|mountain|city|isle|airport|adm2nd|adm1st|state|country|forest=|#default={{CoordinateError|type|3}}}}{{#if:{{{article|}}}{{{map|}}}{{{globe|}}}|{{CoordinateError|article/map/globe|5|0}}}}{{#if:{{{sortkey|}}}|{{CoordinateSort|{{{NS|0}}}|{{{EW|0}}}|key={{{sortkey|}}}}}}}<span id="{{anchorencode:{{{name|}}}}}" class=plainlinks-print title=Koordinate>[//tools.wmflabs.org/geohack/geohack.php?pagename={{FULLPAGENAMEE}}&language=de&params={{{NS|}}}_N_{{{EW|}}}_E_region:{{{region|}}}_type:{{{type|}}}{{#if:{{{dim|}}}|_dim:{{{dim}}}}}&title={{urlencode:{{{name|}}}}} {{#switch:{{{text|}}}|=Lage|DMS|DM|DEC|CH1903|UTM|ICON0|ICON1|ICON2={{CoordinateSimpleText|{{{text|}}}|{{{NS|}}}|{{{EW|}}}}}|#default={{{text|}}}}}]</span>{{#if:{{NAMESPACE}}||{{#coordinates:{{{NS}}}|{{{EW}}}|{{#if:{{{article}}}|primary}}|dim={{{dim}}}|name={{{name}}}|region={{{region}}}|type={{{type}}}}}}}|{{CoordinateNO{{#if:{{NAMESPACE}}|x}}|text=Lage|article=|type={{{type|}}}|region={{{region|}}}|lw={{{lw|}}}|name={{{name|}}}|simple=y}}}}</includeonly><noinclude>{{Dokumentation}}</noinclude></onlyinclude>

Aktuelle Version vom 25. Januar 2018, 14:30 Uhr