Questa è la pagina di documentazione per Modulo:GeoData
Funzione nospace[modifica]
Esempio
|
Input
|
Risultato
|
{{#invoke:GeoData|nospace|}}
|
|
|
{{#invoke:GeoData|nospace|5° N}}
|
5° N
|
5°N
|
{{#invoke:GeoData|nospace|5° 10' N}}
|
5° 10' N
|
5°10'N
|
{{#invoke:GeoData|nospace|5° 01' 20" N}}
|
5° 01' 20" N
|
5°01'20"N
|
{{#invoke:GeoData|nospace|{{#dd2dms: 14.58|precision=0}}}}
|
15°
|
15°
|
{{#invoke:GeoData|nospace|{{#dd2dms: 14.58|precision=2}}}}
|
14° 35'
|
14°35'
|
{{#invoke:GeoData|nospace|{{#dd2dms: 14.58|precision=4}}}}
|
14° 34' 48"
|
14°34'48"
|
{{#invoke:GeoData|nospace|{{#dd2dms: 14.58}}}}
|
14° 34' 48"
|
14°34'48"
|
{{#invoke:GeoData|nospace|{{#dd2dms: 14.58N}}}}
|
14° 34' 48" N
|
14°34'48"N
|
{{#invoke:GeoData|nospace|{{#dd2dms: 14.58X}}}}
|
Input non corretto
|
Inputnoncorretto
|
{{#invoke:GeoData|nospace|{{#dd2dms:}}}}
|
Input non corretto
|
Inputnoncorretto
|
Funzione nozeros[modifica]
Esempio
|
Input
|
Risultato
|
{{#invoke:GeoData|nozeros|}}
|
no lat, no long
|
|
{{#invoke:GeoData|nozeros|5° N}}
|
5° N, no long
|
|
{{#invoke:GeoData|nozeros||10° E}}
|
no lat, 10° E
|
|
{{#invoke:GeoData|nozeros|5° 10' 00" N|10° 20' 40" E}}
|
5° 10' 00" N, 10° 20' 40" E
|
5° 10' 00" N 10° 20' 40" E
|
{{#invoke:GeoData|nozeros|5° 01' 20" N|10° 20' 00" E}}
|
5° 01' 20" N, 10° 20' 00" E
|
5° 01' 20" N 10° 20' 00" E
|
{{#invoke:GeoData|nozeros|5° 00' 20" N|10° 00' 00" E}}
|
5° 00' 20" N, 10° 00' 00" E
|
5° 00' 20" N 10° 00' 00" E
|
{{#invoke:GeoData|nozeros|5° 10' 00" N|10° 20' 00" E}}
|
5° 10' 00" N, 10° 20' 00" E
|
5° 10' N 10° 20' E
|
{{#invoke:GeoData|nozeros|5° 00' 00" N|10° 00' 00" E}}
|
5° 00' 00" N, 10° 00' 00" E
|
5° N 10° E
|
{{#invoke:GeoData|nozeros|5° 0' 0" N|10° 0' 0" E}}
|
5° 0' 0" N, 10° 0' 0" E
|
5° N 10° E
|
{{#invoke:GeoData|nozeros|{{#dd2dms: {{Dms2dec|5.005555N|4}} N|precision=4}}|{{#dd2dms: {{Dms2dec|10.333333E|4}}|precision=4}} E}}
|
5° 0' 20" N, 10° 20' 0" E
|
5° 0' 20" N 10° 20' 0" E
|
{{#invoke:GeoData|nozeros|{{#dd2dms: {{Dms2dec|5.033333N|4}}|precision=4}} N|{{#dd2dms: {{Dms2dec|10.333333E|4}}|precision=4}} E}}
|
5° 2' 0" N, 10° 20' 0" E
|
5° 2' N 10° 20' E
|
{{#invoke:GeoData|nozeros|{{#dd2dms: 15N|precision=4}}|{{#dd2dms: 16E|precision=4}}}}
|
15° 0' 0" N, 16° 0' 0" E
|
15° N 16° E
|
Funzione dd2dms[modifica]
Esempio
|
Input
|
Risultato
|
{{#invoke:GeoData|dd2dms||10° E}}
|
no lat, 10° E
|
|
{{#invoke:GeoData|dd2dms|xyz|10° E}}
|
xyz, 10° E
|
xyz 10°E
|
{{#invoke:GeoData|dd2dms|{{#dd2dms: {{Dms2dec|5.000555N|4}} N|precision=4}}|{{#dd2dms: {{Dms2dec|10.333333E|4}}|precision=4}} E}}
|
5° 0' 2" N, 10° 20' 0" E
|
5°00'02"N 10°20'00"E
|
{{#invoke:GeoData|dd2dms|{{#dd2dms: {{Dms2dec|5.033333N|4}}|precision=4|plus=N|minus=S}}|{{#dd2dms: {{Dms2dec|10.333333E|4}}|precision=4|plus=E|minus=W}}}}
|
5° 2' 0" N, 10° 20' 0" E
|
5°02'N 10°20'E
|
{{#invoke:GeoData|dd2dms|{{#dd2dms: 15N|precision=4}}|{{#dd2dms: 16E|precision=4}}}}
|
15° 0' 0" N, 16° 0' 0" E
|
15°N 16°E
|
Per forzare il controllo sulla correttezza delle coordinare e ritornare una stringa vuota se errate, utilizzare la seguente sintassi:
{{#ifeq:{{#dd2dms:LAT}}|Input non corretto||{{#ifeq:{{#dd2dms:LONG}}|Input non corretto||{{#invoke:GeoData|dd2dms|LAT|LONG}}}}}}