Lompat ke isi

Templat:Coord/testcases: Perbedaan antara revisi

Dari Wikipedia bahasa Indonesia, ensiklopedia bebas
Konten dihapus Konten ditambahkan
Farras (bicara | kontrib)
tes
 
k Robot: Perubahan kosmetika
 
(2 revisi perantara oleh 2 pengguna tidak ditampilkan)
Baris 1: Baris 1:
==Infobox ==
== Infobox ==
{{Kotak info kawasan lindung
{{Infobox protected area
| name = Ellis Island<br> Part of Statue of Liberty National Monument
| name = Ellis Island<br> Part of Statue of Liberty National Monument
| width = 300
| width = 300
Baris 35: Baris 35:




==Coord inline ==
== Coord inline ==


===SW===
=== SW ===
;1a: {{coord/sandbox|20.4|S|20.4|W|name=Test case SW-1a: 20.4d S 20.4d W (-20.4, -20.4)}}
;1a: {{coord/sandbox|20.4|S|20.4|W|name=Test case SW-1a: 20.4d S 20.4d W (-20.4, -20.4)}}
;1b: {{coord/sandbox|-20.4|N|-20.4|E|name=Test case SW-1b: -20.4d N -20.4d E (-20.4, -20.4)}}
;1b: {{coord/sandbox|-20.4|N|-20.4|E|name=Test case SW-1b: -20.4d N -20.4d E (-20.4, -20.4)}}
;1c: {{coord/sandbox|-20.4|-20.4|name=Test case SW-1c: -20.4d -20.4d (-20.4, -20.4)}}
;1c: {{coord/sandbox|-20.4|-20.4|name=Test case SW-1c: -20.4d -20.4d (-20.4, -20.4)}}


;2a: {{coord/sandbox|20|20|S|20|20|W|name=Test case SW-2a: 20d 20m S 20d 20m W (-20.3333, -20.3333)}}
;2a: {{coord/sandbox|20|20|S|20|20|W|name=Test case SW-2a: 20d 20m S 20d 20m W (-20.3333, -20.3333)}}
;2b: {{coord/sandbox|-20|20|N|-20|20|E|name=Test case SW-2b: -20d 20m N -20d 20m E (-20.3333, -20.3333)}}
;2b: {{coord/sandbox|-20|20|N|-20|20|E|name=Test case SW-2b: -20d 20m N -20d 20m E (-20.3333, -20.3333)}}
;2c: {{coord/sandbox|-20||N|-20||E|name=Test case SW-2c: -20d N -20d E (-20, -20)}}
;2c: {{coord/sandbox|-20||N|-20||E|name=Test case SW-2c: -20d N -20d E (-20, -20)}}


;3a: {{coord/sandbox|20|20|20|S|20|20|20|W|name=Test case SW-3a: 20d 20m 20s S 20d 20m 20s W (-20.33889, -20.33889)}}
;3a: {{coord/sandbox|20|20|20|S|20|20|20|W|name=Test case SW-3a: 20d 20m 20s S 20d 20m 20s W (-20.33889, -20.33889)}}
;3b:{{coord/sandbox|-20|20|20|N|-20|20|20|E|name=Test case SW-3b: -20d 20m 20s N -20d 20m 20s E (-20.33889, -20.33889)}}
;3b:{{coord/sandbox|-20|20|20|N|-20|20|20|E|name=Test case SW-3b: -20d 20m 20s N -20d 20m 20s E (-20.33889, -20.33889)}}
;3c: {{coord/sandbox|-20||20|N|-20||20|E|name=Test case SW-3c: -20d 20s N -20d 20s E}}
;3c: {{coord/sandbox|-20||20|N|-20||20|E|name=Test case SW-3c: -20d 20s N -20d 20s E}}
;3d: {{coord/sandbox|-20|20||N|-20|20||E|name=Test case SW-3d: -20d 20m N -20d 20m E}}
;3d: {{coord/sandbox|-20|20||N|-20|20||E|name=Test case SW-3d: -20d 20m N -20d 20m E}}
;3e: {{coord/sandbox|-20|||N|-20|||E|name=Test case SW-3e: -20d N -20d E (-20, -20)}}
;3e: {{coord/sandbox|-20|||N|-20|||E|name=Test case SW-3e: -20d N -20d E (-20, -20)}}


===NE===
=== NE ===
;1a: {{coord/sandbox|20.4|N|20.4|E|name=Test case NE-1a: 20.4d N 20.4d E (20.4, 20.4)}}
;1a: {{coord/sandbox|20.4|N|20.4|E|name=Test case NE-1a: 20.4d N 20.4d E (20.4, 20.4)}}
;1b: {{coord/sandbox|-20.4|S|-20.4|W|name=Test case NE-1b: -20.4d S 20.4d W (20.4, 20.4) (rev.1)}}
;1b: {{coord/sandbox|-20.4|S|-20.4|W|name=Test case NE-1b: -20.4d S 20.4d W (20.4, 20.4) (rev.1)}}
;1c: {{coord/sandbox|20.4|20.4|name=Test case NE-1c: 20.4d 20.4d (20.4, 20.4) (rev.1)}}
;1c: {{coord/sandbox|20.4|20.4|name=Test case NE-1c: 20.4d 20.4d (20.4, 20.4) (rev.1)}}


;2a: {{coord/sandbox|20|20|N|20|20|E|name=Test case NE-2a: 20d 20m N 20d 20m E (20.3333, 20.3333)}}
;2a: {{coord/sandbox|20|20|N|20|20|E|name=Test case NE-2a: 20d 20m N 20d 20m E (20.3333, 20.3333)}}
;2b: {{coord/sandbox|-20|20|S|-20|20|W|name=Test case NE-2b: -20d 20m S -20d 20m W (20.3333, 20.3333)}}
;2b: {{coord/sandbox|-20|20|S|-20|20|W|name=Test case NE-2b: -20d 20m S -20d 20m W (20.3333, 20.3333)}}


;3a: {{coord/sandbox|20|20|20|N|20|20|20|E|name=Test case NE-3a: 20d 20m 20s N 20d 20m 20s E (20.33889, 20.33889) (rev.1)}}
;3a: {{coord/sandbox|20|20|20|N|20|20|20|E|name=Test case NE-3a: 20d 20m 20s N 20d 20m 20s E (20.33889, 20.33889) (rev.1)}}
;3b:{{coord/sandbox|-20|20|20|S|-20|20|20|W|name=Test case NE-3b: -20d 20m 20s S -20d 20m 20s W (20.33889, 20.33889)(rev.1)}}
;3b:{{coord/sandbox|-20|20|20|S|-20|20|20|W|name=Test case NE-3b: -20d 20m 20s S -20d 20m 20s W (20.33889, 20.33889)(rev.1)}}


Baris 67: Baris 67:
===Error cases===
===Error cases===
====dec format====
====dec format====
;W>180: {{coord/sandbox|20.4|S|180.4|W|name=Test case W>180: 20.4d S 180.4d W (-20.4, -180.4)}}
;W>180: {{coord/sandbox|20.4|S|180.4|W|name=Test case W>180: 20.4d S 180.4d W (-20.4, -180.4)}}
;E>180: {{coord/sandbox|20.4|N|180.4|E|name=Test case E>180: 20.4d N 180.4d E ( 20.4, 180.4)}}
;E>180: {{coord/sandbox|20.4|N|180.4|E|name=Test case E>180: 20.4d N 180.4d E ( 20.4, 180.4)}}


-->
-->
Baris 74: Baris 74:
<!-- each of the remaining error cases would invoke the maintenance category if this were an article -->
<!-- each of the remaining error cases would invoke the maintenance category if this were an article -->


;N>+90 dec: {{coord/sandbox|90.1|1|name=Test case N>+90 dec}}
;N>+90 dec: {{coord/sandbox|90.1|1|name=Test case N>+90 dec}}
;N<-90 dec: {{coord/sandbox|-90.1|1|name=Test case N<-90 dec}}
;N<-90 dec: {{coord/sandbox|-90.1|1|name=Test case N<-90 dec}}
;E>=+360 dec: {{coord/sandbox|1|360|name=Test case E>=+360 dec}}
;E>=+360 dec: {{coord/sandbox|1|360|name=Test case E>=+360 dec}}
;E<=-360 dec: {{coord/sandbox|1|-360|name=Test case E<=-360 dec}}
;E<=-360 dec: {{coord/sandbox|1|-360|name=Test case E<=-360 dec}}


;dim= dec: {{coord/sandbox|1|2|dim=10000|name=Test case dim= dec}}
;dim= dec: {{coord/sandbox|1|2|dim=10000|name=Test case dim= dec}}
;globe= dec: {{coord/sandbox|1|2|globe=moon|name=Test case globe= dec}}
;globe= dec: {{coord/sandbox|1|2|globe=moon|name=Test case globe= dec}}
;region= dec: {{coord/sandbox|1|2|region=CA-QC|name=Test case region= dec}}
;region= dec: {{coord/sandbox|1|2|region=CA-QC|name=Test case region= dec}}
;scale= dec: {{coord/sandbox|1|2|scale=100000|name=Test case scale= dec}}
;scale= dec: {{coord/sandbox|1|2|scale=100000|name=Test case scale= dec}}
;source= dec: {{coord/sandbox|1|2|source=gnis|name=Test case source= dec}}
;source= dec: {{coord/sandbox|1|2|source=gnis|name=Test case source= dec}}
;type= dec: {{coord/sandbox|1|2|type=city|name=Test case type= dec}}
;type= dec: {{coord/sandbox|1|2|type=city|name=Test case type= dec}}


====d format====
==== d format ====
;S>+90 d: {{coord/sandbox|90.1|S|1|W|name=Test case S>+90 d}}
;S>+90 d: {{coord/sandbox|90.1|S|1|W|name=Test case S>+90 d}}
;N>+90 d: {{coord/sandbox|90.1|N|1|E|name=Test case N>+90 d}}
;N>+90 d: {{coord/sandbox|90.1|N|1|E|name=Test case N>+90 d}}
;N<-90 d: {{coord/sandbox|-90.1|N|1|W|name=Test case N<-90 d}}
;N<-90 d: {{coord/sandbox|-90.1|N|1|W|name=Test case N<-90 d}}
;W>=+360 d: {{coord/sandbox|1|N|360|W|name=Test case W>=+360 d}}
;W>=+360 d: {{coord/sandbox|1|N|360|W|name=Test case W>=+360 d}}
;E<=-360 d: {{coord/sandbox|1|N|-360|E|name=Test case E<=-360 d}}
;E<=-360 d: {{coord/sandbox|1|N|-360|E|name=Test case E<=-360 d}}
;extra d: {{coord/sandbox|1|S|2|W|type:city|region:XZ|name=Test case extra d}}
;extra d: {{coord/sandbox|1|S|2|W|type:city|region:XZ|name=Test case extra d}}


====dm format====
==== dm format ====
;dN>+90 dm: {{coord/sandbox|91|0|N|1|2|E|name=Test case dN>+90 dm}}
;dN>+90 dm: {{coord/sandbox|91|0|N|1|2|E|name=Test case dN>+90 dm}}
;dN<-90 dm: {{coord/sandbox|-91|0|N|1|2|E|name=Test case dN<-90 dm}}
;dN<-90 dm: {{coord/sandbox|-91|0|N|1|2|E|name=Test case dN<-90 dm}}
;dE>=+360 dm: {{coord/sandbox|1|2|S|360|0|E|name=Test case dE>=+360 dm}}
;dE>=+360 dm: {{coord/sandbox|1|2|S|360|0|E|name=Test case dE>=+360 dm}}
;dE<=-360 dm: {{coord/sandbox|1|2|S|-360|0|E|name=Test case dE<=-360 dm}}
;dE<=-360 dm: {{coord/sandbox|1|2|S|-360|0|E|name=Test case dE<=-360 dm}}
;mS>=60 dm: {{coord/sandbox|1|60|S|2|3|W|name=Test case mS>=60 dm}}
;mS>=60 dm: {{coord/sandbox|1|60|S|2|3|W|name=Test case mS>=60 dm}}
;mS<0 dm: {{coord/sandbox|1|-1|S|2|3|W|name=Test case mS<0 dm}}
;mS<0 dm: {{coord/sandbox|1|-1|S|2|3|W|name=Test case mS<0 dm}}
;mW>=60 dm: {{coord/sandbox|1|2|S|3|60|W|name=Test case mW>=60 dm}}
;mW>=60 dm: {{coord/sandbox|1|2|S|3|60|W|name=Test case mW>=60 dm}}
;mW<0 dm: {{coord/sandbox|1|2|S|3|-1|W|name=Test case mW<0 dm}}
;mW<0 dm: {{coord/sandbox|1|2|S|3|-1|W|name=Test case mW<0 dm}}
;extra dm: {{coord/sandbox|1|2|S|3|4|W|type:city|region:XZ|name=Test case extra dm}}
;extra dm: {{coord/sandbox|1|2|S|3|4|W|type:city|region:XZ|name=Test case extra dm}}


====dms format====
==== dms format ====
;dN>+90 dms: {{coord/sandbox|91|0|0|N|1|2|3|E|name=Test case dN>+90 dms}}
;dN>+90 dms: {{coord/sandbox|91|0|0|N|1|2|3|E|name=Test case dN>+90 dms}}
;dN<-90 dms: {{coord/sandbox|-91|0|0|N|1|2|3|E|name=Test case dN<-90 dms}}
;dN<-90 dms: {{coord/sandbox|-91|0|0|N|1|2|3|E|name=Test case dN<-90 dms}}
;dE>=+360 dms: {{coord/sandbox|1|2|3|S|360|0|0|E|name=Test case dE>=+360 dms}}
;dE>=+360 dms: {{coord/sandbox|1|2|3|S|360|0|0|E|name=Test case dE>=+360 dms}}
;dE<=-360 dms: {{coord/sandbox|1|2|3|S|-360|0|0|E|name=Test case dE<=-360 dms}}
;dE<=-360 dms: {{coord/sandbox|1|2|3|S|-360|0|0|E|name=Test case dE<=-360 dms}}
;mS>=60 dms: {{coord/sandbox|1|60|0|S|2|3|4|W|name=Test case mS>=60 dms}}
;mS>=60 dms: {{coord/sandbox|1|60|0|S|2|3|4|W|name=Test case mS>=60 dms}}
;mS<0 dms: {{coord/sandbox|1|-1|2|S|3|4|5|W|name=Test case mS<0 dms}}
;mS<0 dms: {{coord/sandbox|1|-1|2|S|3|4|5|W|name=Test case mS<0 dms}}
;mW>=60 dms: {{coord/sandbox|1|2|3|S|4|60|0|W|name=Test case mW>=60 dms}}
;mW>=60 dms: {{coord/sandbox|1|2|3|S|4|60|0|W|name=Test case mW>=60 dms}}
;mW<0 dms: {{coord/sandbox|1|2|3|S|4|-1|5|W|name=Test case mW<0 dms}}
;mW<0 dms: {{coord/sandbox|1|2|3|S|4|-1|5|W|name=Test case mW<0 dms}}
;sS>=60 dms: {{coord/sandbox|1|2|60|S|3|4|5|W|name=Test case sS>=60 dms}}
;sS>=60 dms: {{coord/sandbox|1|2|60|S|3|4|5|W|name=Test case sS>=60 dms}}
;sS<0 dms: {{coord/sandbox|1|2|-1|S|3|4|5|W|name=Test case sS<0 dms}}
;sS<0 dms: {{coord/sandbox|1|2|-1|S|3|4|5|W|name=Test case sS<0 dms}}
;sW>=60 dms: {{coord/sandbox|1|2|3|S|3|4|60|W|name=Test case sW>=60 dms}}
;sW>=60 dms: {{coord/sandbox|1|2|3|S|3|4|60|W|name=Test case sW>=60 dms}}
;sW<0 dms: {{coord/sandbox|1|2|3|S|3|4|-1|W|name=Test case sW<0 dms}}
;sW<0 dms: {{coord/sandbox|1|2|3|S|3|4|-1|W|name=Test case sW<0 dms}}
;extra dms: {{coord/sandbox|1|2|3|S|3|4|5|W|type:city|region:XZ|name=Test case extra dms}}
;extra dms: {{coord/sandbox|1|2|3|S|3|4|5|W|type:city|region:XZ|name=Test case extra dms}}


====Invalid formats====
==== Invalid formats ====
1. {{coord/sandbox|1|2|3|4}}
1. {{coord/sandbox|1|2|3|4}}


Baris 139: Baris 139:
9. {{coord/sandbox|1|2|3|N||5|6|W}}
9. {{coord/sandbox|1|2|3|N||5|6|W}}


====Blank parameters====
==== Blank parameters ====
;DM blank M: {{Coord/sandbox|1||N|3||E|name=Test case DM blank M}}
;DM blank M: {{Coord/sandbox|1||N|3||E|name=Test case DM blank M}}
;DMS blank S: {{Coord/sandbox|1|2||N|5|6||E|name=Test case DMS blank S}}
;DMS blank S: {{Coord/sandbox|1|2||N|5|6||E|name=Test case DMS blank S}}
;DMS blank M and S: {{Coord/sandbox|1|||N|5|||E|name=Test case DMS blank M and S}}
;DMS blank M and S: {{Coord/sandbox|1|||N|5|||E|name=Test case DMS blank M and S}}
;display=: {{Coord/sandbox|1|2|dispenser=|name=Test case DMS blank M and S}}
;display=: {{Coord/sandbox|1|2|dispenser=|name=Test case DMS blank M and S}}
;extra blanks: {{Coord/sandbox| 51 | 02 | 21 |N| 116 | 26 | 33 |W|name=Test case extra blanks}}
;extra blanks: {{Coord/sandbox| 51 | 02 | 21 |N| 116 | 26 | 33 |W|name=Test case extra blanks}}


===Extreme values===
=== Extreme values ===


* {{coord/sandbox|0|0|N|0|0|E}}
* {{coord/sandbox|0|0|N|0|0|E}}
Baris 155: Baris 155:
* {{coord/sandbox|0|59|59|S|179|59|59|W}}
* {{coord/sandbox|0|59|59|S|179|59|59|W}}


====[[Airy (Martian crater)]]====
==== [[Airy (Martian crater)]] ====
* {{coord/sandbox|5.1|S|359.9|W|globe:mars}}
* {{coord/sandbox|5.1|S|359.9|W|globe:mars}}
* {{coord/sandbox|5|6|S|359|54|W|globe:mars}}
* {{coord/sandbox|5|6|S|359|54|W|globe:mars}}
* {{coord/sandbox|5|6|0|S|359|54|0|W|globe:mars}}
* {{coord/sandbox|5|6|0|S|359|54|0|W|globe:mars}}


====North and south poles====
==== North and south poles ====
* {{coord/sandbox|90|0}}
* {{coord/sandbox|90|0}}
* {{coord/sandbox|-90|0}}
* {{coord/sandbox|-90|0}}
Baris 170: Baris 170:
* {{coord/sandbox|90|0|0|S|0|||E}}
* {{coord/sandbox|90|0|0|S|0|||E}}


===Documented type values===
=== Documented type values ===
* country: {{coord/sandbox|38.328|-122.709|type:country}}
* country: {{coord/sandbox|38.328|-122.709|type:country}}
* satellite: {{coord/sandbox|38.328|-122.709|type:satellite}}
* satellite: {{coord/sandbox|38.328|-122.709|type:satellite}}
Baris 190: Baris 190:
* landmark: {{coord/sandbox|38.328|-122.709|type:landmark}}
* landmark: {{coord/sandbox|38.328|-122.709|type:landmark}}


===globe values===
=== globe values ===
====supported====
==== supported ====
* [[Mercury (planet)|mercury]]: {{coord/sandbox|1|N|2|W|globe:mercury}}
* [[Mercury (planet)|mercury]]: {{coord/sandbox|1|N|2|W|globe:mercury}}
* [[venus]]: {{coord/sandbox|1|N|2|E|globe:venus}}
* [[venus]]: {{coord/sandbox|1|N|2|E|globe:venus}}
Baris 226: Baris 226:
* [[pluto]]: {{coord/sandbox|1|N|2|E|globe:pluto}}
* [[pluto]]: {{coord/sandbox|1|N|2|E|globe:pluto}}


====questionable====
==== questionable ====
* [[Moon]]: {{coord/sandbox|1|2|globe:Moon}}
* [[Moon]]: {{coord/sandbox|1|2|globe:Moon}}
* [[Moon|MOON]]: {{coord/sandbox|1|2|globe:MOON}}
* [[Moon|MOON]]: {{coord/sandbox|1|2|globe:MOON}}


====currently unsupported====
==== currently unsupported ====
[[sun]]: {{coord/sandbox|1|2|globe:sun}}
[[sun]]: {{coord/sandbox|1|2|globe:sun}}
* [[Earth|terra]]: {{coord/sandbox|1|2|globe:terra}}
* [[Earth|terra]]: {{coord/sandbox|1|2|globe:terra}}
Baris 275: Baris 275:
:* [[Charon (moon)|charon]]: {{coord/sandbox|1|2|globe:charon}}
:* [[Charon (moon)|charon]]: {{coord/sandbox|1|2|globe:charon}}


===Examples from [[Template:Coord/doc]]===
=== Examples from [[Templat:Coord/doc]] ===


* {{coord/sandbox|57|18|22|N|4|27|32|W}}
* {{coord/sandbox|57|18|22|N|4|27|32|W}}
Baris 320: Baris 320:
* {{coord/sandbox|8|N|190.5|W|globe:mercury}}
* {{coord/sandbox|8|N|190.5|W|globe:mercury}}


==Tests of subroutines==
== Tests of subroutines ==
* Testing decimal to dms conversion: {{tl|Coord/dec2dms/testcases}}
* Testing decimal to dms conversion: {{tl|Coord/dec2dms/testcases}}


[[Category:Templat koordinat]]
[[Kategori:Templat koordinat]]

Revisi terkini sejak 13 Mei 2016 16.05

Ellis Island
Part of Statue of Liberty National Monument
Ellis Island
Kota terdekatJersey City
Koordinat40°41′56.5″N 74°2′22.2″W / 40.699028°LU 74.039500°BB / 40.699028; -74.039500[1]Koordinat: 40°41′56.5″N 74°2′22.2″W / 40.699028°LU 74.039500°BB / 40.699028; -74.039500[1]
Luas58.38 acres (0.24 km²) (includes Statue of Liberty NM)
DidirikanMay 11, 1965 (as a national monument)
Pengunjung3,618,054 (includes Statue of Liberty NM) (tahun 2004)
Pihak pengelolaNational Park Service
http://www.nps.gov/elis/


Notice the ability to choose different skins in the box above. First try MonoBook which is the default skin. The Coordinates field displays nicely. Then try Simple and the Coordinates field is corrupt. I don't think this is a problem with {{Infobox Protected area}} or {{|Infobox Mountain}} as I've seen the same behavior using other templates. My first guess is that the problem is with {{Coord}} but it might not be since the field name is also displayed twice. The fault also occurs in MySkin but in none of the others. If the problem is not with Coord then it has to be a skin problem. --droll [chat] 23:47, 24 March 2009 (UTC)


Coord inline

[sunting sumber]
1a
20°24′S 20°24′W / 20.4°S 20.4°W / -20.4; -20.4 (Test case SW-1a: 20.4d S 20.4d W (-20.4, -20.4))
1b
20°24′S 20°24′W / -20.4°N -20.4°E / -20.4; -20.4 (Test case SW-1b: -20.4d N -20.4d E (-20.4, -20.4)){{#coordinates:}}: lintang salah
1c
20°24′LS 20°24′BB / 20.4°LS 20.4°BB / -20.4; -20.4 (Test case SW-1c: -20.4d -20.4d (-20.4, -20.4))
2a
20°20′S 20°20′W / 20.333°LS 20.333°BB / -20.333; -20.333 (Test case SW-2a: 20d 20m S 20d 20m W (-20.3333, -20.3333))
2b
-20°20′N -20°20′E / 19.667°LS 19.667°BB / -19.667; -19.667 (Test case SW-2b: -20d 20m N -20d 20m E (-20.3333, -20.3333)){{#coordinates:}}: lintang salah
2c
-20°N -20°E / 20.000°LS 20.000°BB / -20.000; -20.000 (Test case SW-2c: -20d N -20d E (-20, -20)){{#coordinates:}}: lintang salah
3a
20°20′20″S 20°20′20″W / 20.33889°LS 20.33889°BB / -20.33889; -20.33889 (Test case SW-3a: 20d 20m 20s S 20d 20m 20s W (-20.33889, -20.33889))
3b
-20°20′20″N -20°20′20″E / 19.66111°LS 19.66111°BB / -19.66111; -19.66111 (Test case SW-3b: -20d 20m 20s N -20d 20m 20s E (-20.33889, -20.33889)){{#coordinates:}}: lintang salah
3c
-20°20″N -20°20″E / 19.99444°LS 19.99444°BB / -19.99444; -19.99444 (Test case SW-3c: -20d 20s N -20d 20s E){{#coordinates:}}: lintang salah
3d
-20°20′N -20°20′E / 19.66667°LS 19.66667°BB / -19.66667; -19.66667 (Test case SW-3d: -20d 20m N -20d 20m E){{#coordinates:}}: lintang salah
3e
-20°N -20°E / 20.00000°LS 20.00000°BB / -20.00000; -20.00000 (Test case SW-3e: -20d N -20d E (-20, -20)){{#coordinates:}}: lintang salah
1a
20°24′N 20°24′E / 20.4°N 20.4°E / 20.4; 20.4 (Test case NE-1a: 20.4d N 20.4d E (20.4, 20.4))
1b
20°24′N 20°24′E / -20.4°S -20.4°W / --20.4; --20.4 (Test case NE-1b: -20.4d S 20.4d W (20.4, 20.4) (rev.1)){{#coordinates:}}: lintang salah
1c
20°24′LU 20°24′BT / 20.4°LU 20.4°BT / 20.4; 20.4 (Test case NE-1c: 20.4d 20.4d (20.4, 20.4) (rev.1))
2a
20°20′N 20°20′E / 20.333°LU 20.333°BT / 20.333; 20.333 (Test case NE-2a: 20d 20m N 20d 20m E (20.3333, 20.3333))
2b
-20°20′S -20°20′W / 19.667°LU 19.667°BT / 19.667; 19.667 (Test case NE-2b: -20d 20m S -20d 20m W (20.3333, 20.3333)){{#coordinates:}}: lintang salah
3a
20°20′20″N 20°20′20″E / 20.33889°LU 20.33889°BT / 20.33889; 20.33889 (Test case NE-3a: 20d 20m 20s N 20d 20m 20s E (20.33889, 20.33889) (rev.1))
3b
-20°20′20″S -20°20′20″W / 19.66111°LU 19.66111°BT / 19.66111; 19.66111 (Test case NE-3b: -20d 20m 20s S -20d 20m 20s W (20.33889, 20.33889)(rev.1)){{#coordinates:}}: lintang salah


N>+90 dec
90°06′LU 1°00′BT / 90.1°LU 1°BT / 90.1; 1 (Test case N>+90 dec) latd>90 (dec format) di {{Coord}}{{#coordinates:}}: lintang salah
N<-90 dec
90°06′LS 1°00′BT / 90.1°LS 1°BT / -90.1; 1 (Test case N<-90 dec) latd<-90 (dec format) di {{Coord}}{{#coordinates:}}: lintang salah
E>=+360 dec
1°LU 360°BT / 1°LU 360°BT / 1; 360 (Test case E>=+360 dec) longd>=360 (dec format) di {{Coord}}{{#coordinates:}}: bujur salah
E<=-360 dec
1°LU 360°BB / 1°LU 360°BB / 1; -360 (Test case E<=-360 dec) longd<=-360 (dec format) di {{Coord}}{{#coordinates:}}: bujur salah
dim= dec
1°LU 2°BT / 1°LU 2°BT / 1; 2 (Test case dim= dec) dim= should be dim: di {{Coord}}
globe= dec
1°LU 2°BT / 1°LU 2°BT / 1; 2 (Test case globe= dec) globe= should be globe: di {{Coord}}
region= dec
1°LU 2°BT / 1°LU 2°BT / 1; 2 (Test case region= dec) region= should be region: di {{Coord}}
scale= dec
1°LU 2°BT / 1°LU 2°BT / 1; 2 (Test case scale= dec) scale= should be scale: di {{Coord}}
source= dec
1°LU 2°BT / 1°LU 2°BT / 1; 2 (Test case source= dec) source= should be source: di {{Coord}}
type= dec
1°LU 2°BT / 1°LU 2°BT / 1; 2 (Test case type= dec) type= should be type: di {{Coord}}

d format

[sunting sumber]
S>+90 d
90°06′S 1°00′W / 90.1°S 1°W / -90.1; -1 (Test case S>+90 d) latd>90 (d format) di {{Coord}}{{#coordinates:}}: lintang salah
N>+90 d
90°06′N 1°00′E / 90.1°N 1°E / 90.1; 1 (Test case N>+90 d) latd>90 (d format) di {{Coord}}{{#coordinates:}}: lintang salah
N<-90 d
90°06′S 1°00′W / -90.1°N 1°W / -90.1; -1 (Test case N<-90 d) latd<-90 (d format) di {{Coord}}{{#coordinates:}}: lintang salah
W>=+360 d
1°N 360°W / 1°N 360°W / 1; -360 (Test case W>=+360 d) longd>=360 (d format) di {{Coord}}{{#coordinates:}}: bujur salah
E<=-360 d
1°N 360°W / 1°N -360°E / 1; -360 (Test case E<=-360 d) longd<=-360 (d format) di {{Coord}}{{#coordinates:}}: bujur salah
extra d
1°S 2°W / 1°S 2°W / -1; -2 (Test case extra d) parameter tambahan (format d) di {{Coord}}

dm format

[sunting sumber]
dN>+90 dm
91°0′N 1°2′E / 91.000°LU 1.033°BT / 91.000; 1.033 (Test case dN>+90 dm) latd>90 (format dm) di {{Coord}}{{#coordinates:}}: lintang salah
dN<-90 dm
-91°0′N 1°2′E / 91.000°LS 1.033°BT / -91.000; 1.033 (Test case dN<-90 dm) latd<-90 (format dm) di {{Coord}}{{#coordinates:}}: lintang salah
dE>=+360 dm
1°2′S 360°0′E / 1.033°LS 360.000°BT / -1.033; 360.000 (Test case dE>=+360 dm) longd>=360 (format dm) di {{Coord}}{{#coordinates:}}: bujur salah
dE<=-360 dm
1°2′S -360°0′E / 1.033°LS 360.000°BB / -1.033; -360.000 (Test case dE<=-360 dm) longd<=-360 (format dm) di {{Coord}}{{#coordinates:}}: bujur salah
mS>=60 dm
1°60′S 2°3′W / 2.000°LS 2.050°BB / -2.000; -2.050 (Test case mS>=60 dm) latm>=60 (format dm) di {{Coord}}{{#coordinates:}}: lintang salah
mS<0 dm
1°-1′S 2°3′W / 1.000°LS 2.050°BB / -1.000; -2.050 (Test case mS<0 dm) latm<0 (format dm) di {{Coord}}{{#coordinates:}}: lintang salah
mW>=60 dm
1°2′S 3°60′W / 1.033°LS 4.000°BB / -1.033; -4.000 (Test case mW>=60 dm) longm>=60 (format dm) di {{Coord}}{{#coordinates:}}: bujur salah
mW<0 dm
1°2′S 3°-1′W / 1.033°LS 3.000°BB / -1.033; -3.000 (Test case mW<0 dm) longm<0 (format dm) di {{Coord}}{{#coordinates:}}: bujur salah
extra dm
1°2′S 3°4′W / 1.033°LS 3.067°BB / -1.033; -3.067 (Test case extra dm) parameter tambahan (format dm) di {{Coord}}

dms format

[sunting sumber]
dN>+90 dms
91°0′0″N 1°2′3″E / 91.00000°LU 1.03417°BT / 91.00000; 1.03417 (Test case dN>+90 dms) latd>90 (format dms) di {{Coord}}{{#coordinates:}}: lintang salah
dN<-90 dms
-91°0′0″N 1°2′3″E / 91.00000°LS 1.03417°BT / -91.00000; 1.03417 (Test case dN<-90 dms) latd<-90 (format dms) di {{Coord}}{{#coordinates:}}: lintang salah
dE>=+360 dms
1°2′3″S 360°0′0″E / 1.03417°LS 360.00000°BT / -1.03417; 360.00000 (Test case dE>=+360 dms) longd>=360 (format dms) di {{Coord}}{{#coordinates:}}: bujur salah
dE<=-360 dms
1°2′3″S -360°0′0″E / 1.03417°LS 360.00000°BB / -1.03417; -360.00000 (Test case dE<=-360 dms) longd<=-360 (format dms) di {{Coord}}{{#coordinates:}}: bujur salah
mS>=60 dms
1°60′0″S 2°3′4″W / 2.00000°LS 2.05111°BB / -2.00000; -2.05111 (Test case mS>=60 dms) latm>=60 (format dms) di {{Coord}}{{#coordinates:}}: lintang salah
mS<0 dms
1°-1′2″S 3°4′5″W / 1.00056°LS 3.06806°BB / -1.00056; -3.06806 (Test case mS<0 dms) latm<0 (format dms) di {{Coord}}{{#coordinates:}}: lintang salah
mW>=60 dms
1°2′3″S 4°60′0″W / 1.03417°LS 5.00000°BB / -1.03417; -5.00000 (Test case mW>=60 dms) longm>=60 (format dms) di {{Coord}}{{#coordinates:}}: bujur salah
mW<0 dms
1°2′3″S 4°-1′5″W / 1.03417°LS 4.00139°BB / -1.03417; -4.00139 (Test case mW<0 dms) longm<0 (format dms) di {{Coord}}{{#coordinates:}}: bujur salah
sS>=60 dms
1°2′60″S 3°4′5″W / 1.05000°LS 3.06806°BB / -1.05000; -3.06806 (Test case sS>=60 dms) lats>=60 (format dms) di {{Coord}}{{#coordinates:}}: lintang salah
sS<0 dms
1°2′-1″S 3°4′5″W / 1.03333°LS 3.06806°BB / -1.03333; -3.06806 (Test case sS<0 dms) lats<0 (format dms) di {{Coord}}{{#coordinates:}}: lintang salah
sW>=60 dms
1°2′3″S 3°4′60″W / 1.03417°LS 3.08333°BB / -1.03417; -3.08333 (Test case sW>=60 dms) longs>=60 (format dms) di {{Coord}}{{#coordinates:}}: bujur salah
sW<0 dms
1°2′3″S 3°4′-1″W / 1.03417°LS 3.06667°BB / -1.03417; -3.06667 (Test case sW<0 dms) longs<0 (format dms) di {{Coord}}{{#coordinates:}}: bujur salah
extra dms
1°2′3″S 3°4′5″W / 1.03417°LS 3.06806°BB / -1.03417; -3.06806 (Test case extra dms) parameter tambahan (format dms) di {{Coord}}

Invalid formats

[sunting sumber]

1. Format yang tidak diketahui di {{Coord}}. Parameter:

1=1
2=2
3=3
4=4
5=
6=
7=
8=
9=

2. Format yang tidak diketahui di {{Coord}}. Parameter:

1=1
2=2
3=3
4=E
5=4
6=5
7=6
8=N
9={{#coordinates:}}: lintang salah

3. Format yang tidak diketahui di {{Coord}}. Parameter:

1=1
2=2
3=E
4=3
5=4
6=N
7=
8=
9={{#coordinates:}}: lintang salah

4. Argumen-argumen yang tidak sah telah diberikan kepada fungsi {{#coordinates:}}

5. garis lintang tidak ditemukan di {{Coord}}Argumen-argumen yang tidak sah telah diberikan kepada fungsi {{#coordinates:}}

6. garis bujur tidak ditemukan (format desimal) di {{Coord}}Argumen-argumen yang tidak sah telah diberikan kepada fungsi {{#coordinates:}}

7. 1°N Kesalahan ekspresi: Operator < tak terduga°Kesalahan ekspresi: Operator >= tak terduga / 1°N °W / 1; - garis bujur tidak ditemukan (format d) di {{Coord}}Argumen-argumen yang tidak sah telah diberikan kepada fungsi {{#coordinates:}}

8. 1°2′N °4′W / 1.033°LU Kesalahan ekspresi: Operator < tak terduga / 1.033; Lua error in Modul:Coordinates at line 235: attempt to perform arithmetic on local 'degrees' (a nil value). garis bujur tidak ditemukan (format dm) di {{Coord}}Argumen-argumen yang tidak sah telah diberikan kepada fungsi {{#coordinates:}}

9. 1°2′3″N °5′6″W / 1.03417°LU Kesalahan ekspresi: Operator < tak terduga / 1.03417; Lua error in Modul:Coordinates at line 235: attempt to perform arithmetic on local 'degrees' (a nil value). garis bujur tidak ditemukan (format dms) di {{Coord}}Argumen-argumen yang tidak sah telah diberikan kepada fungsi {{#coordinates:}}

Blank parameters

[sunting sumber]
DM blank M
1°N 3°E / 1.000°LU 3.000°BT / 1.000; 3.000 (Test case DM blank M)
DMS blank S
1°2′N 5°6′E / 1.03333°LU 5.10000°BT / 1.03333; 5.10000 (Test case DMS blank S)
DMS blank M and S
1°N 5°E / 1.00000°LU 5.00000°BT / 1.00000; 5.00000 (Test case DMS blank M and S)
display=
1°LU 2°BT / 1°LU 2°BT / 1; 2 (Test case DMS blank M and S)
extra blanks
51°02′21″N 116°26′33″W / 51.03917°LU 116.44250°BB / 51.03917; -116.44250 (Test case extra blanks)

Extreme values

[sunting sumber]

North and south poles

[sunting sumber]

Documented type values

[sunting sumber]

globe values

[sunting sumber]

supported

[sunting sumber]
  • Saturn
  • Uranus
  • Neptune

questionable

[sunting sumber]

currently unsupported

[sunting sumber]

sun: 1°LU 2°BT / 1°LU 2°BT / 1; 2

  • Pluto

Tests of subroutines

[sunting sumber]