Vorlage:CoordinateComplex: Unterschied zwischen den Versionen
Aus KKWiki
Zur Navigation springenZur Suche springen✓ (Diskussion) (Parameterüberprüfung) |
✓ (Diskussion) (Parameterüberprüfung) |
||
Zeile 1: | Zeile 1: | ||
− | <onlyinclude>{{Coordinate/Test/{{#switch: {{{NS|}}} | + | <onlyinclude>{{Coordinate/Test/{{#if:{{{map|}}} |
− | + | | MAP | |
− | + | | {{#switch: {{{NS|}}} | |
− | + | ||/|//|///|///N|///S=NO{{#if: {{NAMESPACE}} | x }} | |
− | + | | {{#switch: {{{EW|}}} | |
− | + | ||/|//|///|///E|///W|///O=NO{{#if: {{NAMESPACE}} | x }} | |
| MAIN | | MAIN | ||
}} | }} | ||
Zeile 41: | Zeile 41: | ||
| {{#iferror: {{#ifexpr: abs trunc({{{pop}}}) = ({{{pop}}}) | | {{#iferror: {{#ifexpr: abs trunc({{{pop}}}) = ({{{pop}}}) | ||
| {{{pop}}} | | {{{pop}}} | ||
− | + | | <span class="error">keine ganze Zahl bei Bevölkerung</span> | |
}} | }} | ||
− | | <span class="error">{{{pop}}}</span> | + | | <span class="error">keine Zahl: {{{pop}}}</span> |
}} | }} | ||
}} | }} | ||
Zeile 51: | Zeile 51: | ||
<!--| <span class="error">zu genaue Höhenangabe</span> ???--> | <!--| <span class="error">zu genaue Höhenangabe</span> ???--> | ||
}} | }} | ||
− | | <span class="error">{{{elevation}}}</span> | + | | <span class="error">keine Zahl: {{{elevation}}}</span> |
}} | }} | ||
}} | }} | ||
− | |dim_save = | + | |dim_save = {{#iferror: {{#expr: 1*({{{dim}}}) = ({{{dim}}}) }} |
− | |||
− | |||
− | |||
− | |||
| {{#switch: {{{type}}} | | {{#switch: {{{type}}} | ||
|country|state|adm1st=500001<!--D--> | |country|state|adm1st=500001<!--D--> | ||
Zeile 64: | Zeile 60: | ||
|landmark= <!-- 250 ??? --> | |landmark= <!-- 250 ??? --> | ||
|#default= 500<!--DMS--> | |#default= 500<!--DMS--> | ||
+ | }} | ||
+ | | {{#ifeq: {{{type}}} | landmark | ||
+ | | {{#ifexpr: 250>{{{dim}}} | ||
+ | | {{{dim}}} | ||
+ | | 250 | ||
+ | }} | ||
+ | | {{{dim}}} | ||
}} | }} | ||
}} | }} | ||
Zeile 93: | Zeile 96: | ||
|mapname = {{{mapname|}}} | |mapname = {{{mapname|}}} | ||
|maplevel = {{{maplevel|}}} | |maplevel = {{{maplevel|}}} | ||
− | |||
|mapfloat = {{{map}}} | |mapfloat = {{{map}}} | ||
|mapsize = {{{mapsize|}}} | |mapsize = {{{mapsize|}}} | ||
|maptype = {{{maptype|}}} | |maptype = {{{maptype|}}} | ||
+ | |mapcaption = {{{mapcaption|auto}}} | ||
+ | |maplayer = {{{maplayer|}}} | ||
}}{{#if:{{{1|}}} | | }}{{#if:{{{1|}}} | | ||
− | {{ | + | {{Coordinate/Test/MSG|4|{{{1}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}}} |
}}</onlyinclude> | }}</onlyinclude> | ||
{{Dokumentation}} | {{Dokumentation}} |