Lompat ke isi

Templat:Coord/testcases

Dari Wikipedia bahasa Indonesia, ensiklopedia bebas
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]