Template:Coord/testcases

Infobox 编辑

Bullet Tree Falls
Bullet Tree Falls在伯利兹的位置
Bullet Tree Falls
Bullet Tree Falls
坐标:17°10′05″N 89°06′40″W / 17.168°N 89.111°W / 17.168; -89.111
Country 伯利兹
DistrictCayo District
ConstituencyCayo North
海拔69 公尺(226 英尺)
人口(2010)
 • 總計2,124[1]
时区CentralUTC-6
ClimateAm
Bullet Tree Falls
Bullet Tree Falls在伯利兹的位置
Bullet Tree Falls
Bullet Tree Falls
坐标:17°10′04.8″N 89°06′39.6″W / 17.168000°N 89.111000°W / 17.168000; -89.111000
Country 伯利兹
DistrictCayo District
ConstituencyCayo North
海拔69 公尺(226 英尺)
人口(2010)
 • 總計2,124[1]
时区CentralUTC-6
ClimateAm
Ellis Island
Part of Statue of Liberty National Monument
Ellis Island
最近城市Jersey City
坐标40°41′56.5″N 74°2′22.2″W / 40.699028°N 74.039500°W / 40.699028; -74.039500[2]
宽度300
面积58.38 acres (0.24 km²) (includes Statue of Liberty NM)
建立May 11, 1965 (as a national monument)
访客量3,618,054 (includes Statue of Liberty NM)   (2004)
主管团体National Park Service
www.nps.gov/elis/
  1. ^ 1.0 1.1 Belize Population and Housing Census: 2010 Country Report (PDF). Statistical Institute of Belize. [25 July 2015]. (原始内容 (PDF)存档于27 January 2016). 
  2. ^ 美國地質調查局地名資訊系統:Ellis Island


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.

Coord inline 编辑

SW 编辑

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.4°N -20.4°E / 20.4°S 20.4°W / -20.4; -20.4 (Test case SW-1b: -20.4d N -20.4d E (-20.4, -20.4)) 坐标:指定了半球名称,但纬度 < 0
坐标:指定了半球名称,但经度 < 0
{{#coordinates:}}:无效的纬度
1c
20°24′S 20°24′W / 20.4°S 20.4°W / -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°S 20.333°W / -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°S 19.667°W / -19.667; -19.667 (Test case SW-2b: -20d 20m N -20d 20m E (-20.3333, -20.3333)) 坐标:指定了半球名称,但纬度 < 0
坐标:指定了半球名称,但经度 < 0
{{#coordinates:}}:无效的纬度
2c
-20°N -20°E / 20°S 20°W / -20; -20 (Test case SW-2c: -20d N -20d E (-20, -20)) 坐标:指定了半球名称,但纬度 < 0
坐标:指定了半球名称,但经度 < 0
{{#coordinates:}}:无效的纬度
3a
20°20′20″S 20°20′20″W / 20.33889°S 20.33889°W / -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°S 19.66111°W / -19.66111; -19.66111 (Test case SW-3b: -20d 20m 20s N -20d 20m 20s E (-20.33889, -20.33889)) 坐标:指定了半球名称,但纬度 < 0
坐标:指定了半球名称,但经度 < 0
{{#coordinates:}}:无效的纬度
3c
-20°20″N -20°20″E / 19.99444°S 19.99444°W / -19.99444; -19.99444 (Test case SW-3c: -20d 20s N -20d 20s E) 坐标:指定了半球名称,但纬度 < 0
坐标:指定了半球名称,但经度 < 0
{{#coordinates:}}:无效的纬度
3d
-20°20′N -20°20′E / 19.667°S 19.667°W / -19.667; -19.667 (Test case SW-3d: -20d 20m N -20d 20m E) 坐标:指定了半球名称,但纬度 < 0
坐标:指定了半球名称,但经度 < 0
{{#coordinates:}}:无效的纬度
3e
-20°N -20°E / 20°S 20°W / -20; -20 (Test case SW-3e: -20d N -20d E (-20, -20)) 坐标:指定了半球名称,但纬度 < 0
坐标:指定了半球名称,但经度 < 0
{{#coordinates:}}:无效的纬度

NE 编辑

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.4°S -20.4°W / 20.4°N 20.4°E / 20.4; 20.4 (Test case NE-1b: -20.4d S 20.4d W (20.4, 20.4) (rev.1)) 坐标:指定了半球名称,但纬度 < 0
坐标:指定了半球名称,但经度 < 0
{{#coordinates:}}:无效的纬度
1c
20°24′N 20°24′E / 20.4°N 20.4°E / 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°N 20.333°E / 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°N 19.667°E / 19.667; 19.667 (Test case NE-2b: -20d 20m S -20d 20m W (20.3333, 20.3333)) 坐标:指定了半球名称,但纬度 < 0
坐标:指定了半球名称,但经度 < 0
{{#coordinates:}}:无效的纬度
3a
20°20′20″N 20°20′20″E / 20.33889°N 20.33889°E / 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°N 19.66111°E / 19.66111; 19.66111 (Test case NE-3b: -20d 20m 20s S -20d 20m 20s W (20.33889, 20.33889)(rev.1)) 坐标:指定了半球名称,但纬度 < 0
坐标:指定了半球名称,但经度 < 0
{{#coordinates:}}:无效的纬度


N>+90 dec
90°06′N 1°00′E / 90.1°N 1°E / 90.1; 1 (Test case N>+90 dec) 坐标:纬度 > 90
{{#coordinates:}}:无效的纬度
N<-90 dec
90°06′S 1°00′E / 90.1°S 1°E / -90.1; 1 (Test case N<-90 dec) 坐标:纬度 < -90
{{#coordinates:}}:无效的纬度
E>=+360 dec
1°N 360°E / 1°N 360°E / 1; 360 (Test case E>=+360 dec) 坐标:经度 >= 360
{{#coordinates:}}:无效的经度
E<=-360 dec
1°N 360°W / 1°N 360°W / 1; -360 (Test case E<=-360 dec) 坐标:经度 <= -360
{{#coordinates:}}:无效的经度
dim= dec
1°N 2°E / 1°N 2°E / 1; 2 (Test case dim= dec) 坐标:参数:"dim=" 应为 "dim:"
globe= dec
1°N 2°E / 1°N 2°E / 1; 2 (Test case globe= dec) 坐标:参数:"globe=" 应为 "globe:"
region= dec
1°N 2°E / 1°N 2°E / 1; 2 (Test case region= dec) 坐标:参数:"region=" 应为 "region:"
scale= dec
1°N 2°E / 1°N 2°E / 1; 2 (Test case scale= dec) 坐标:参数:"scale=" 应为 "scale:"
source= dec
1°N 2°E / 1°N 2°E / 1; 2 (Test case source= dec) 坐标:参数:"source=" 应为 "source:"
type= dec
1°N 2°E / 1°N 2°E / 1; 2 (Test case type= dec) 坐标:参数:"type=" 应为 "type:"

d format 编辑

S>+90 d
90.1°S 1°W / 90.1°S 1°W / -90.1; -1 (Test case S>+90 d) 坐标:纬度 > 90
{{#coordinates:}}:无效的纬度
N>+90 d
90.1°N 1°E / 90.1°N 1°E / 90.1; 1 (Test case N>+90 d) 坐标:纬度 > 90
{{#coordinates:}}:无效的纬度
N<-90 d
-90.1°N 1°W / 90.1°S 1°W / -90.1; -1 (Test case N<-90 d) 坐标:指定了半球名称,但纬度 < 0
坐标:纬度 < -90
{{#coordinates:}}:无效的纬度
W>=+360 d
1°N 360°W / 1°N 360°W / 1; -360 (Test case W>=+360 d) 坐标:经度 >= 360
{{#coordinates:}}:无效的经度
E<=-360 d
1°N -360°E / 1°N 360°W / 1; -360 (Test case E<=-360 d) 坐标:指定了半球名称,但经度 < 0
坐标:经度 <= -360
{{#coordinates:}}:无效的经度
extra d
1°S 2°W / 1°S 2°W / -1; -2 (Test case extra d) 坐标:额外的未知参数

dm format 编辑

dN>+90 dm
91°0′N 1°2′E / 91.000°N 1.033°E / 91.000; 1.033 (Test case dN>+90 dm) 坐标:纬度 > 90
{{#coordinates:}}:无效的纬度
dN<-90 dm
-91°0′N 1°2′E / 91.000°S 1.033°E / -91.000; 1.033 (Test case dN<-90 dm) 坐标:指定了半球名称,但纬度 < 0
坐标:纬度 < -90
{{#coordinates:}}:无效的纬度
dE>=+360 dm
1°2′S 360°0′E / 1.033°S 360.000°E / -1.033; 360.000 (Test case dE>=+360 dm) 坐标:经度 >= 360
{{#coordinates:}}:无效的经度
dE<=-360 dm
1°2′S -360°0′E / 1.033°S 360.000°W / -1.033; -360.000 (Test case dE<=-360 dm) 坐标:指定了半球名称,但经度 < 0
坐标:经度 <= -360
{{#coordinates:}}:无效的经度
mS>=60 dm
1°60′S 2°3′W / 2.000°S 2.050°W / -2.000; -2.050 (Test case mS>=60 dm) 坐标:纬度分 >= 60
{{#coordinates:}}:无效的纬度
mS<0 dm
1°-1′S 2°3′W / 0.983°S 2.050°W / -0.983; -2.050 (Test case mS<0 dm) 坐标:纬度分 < 0
{{#coordinates:}}:无效的纬度
mW>=60 dm
1°2′S 3°60′W / 1.033°S 4.000°W / -1.033; -4.000 (Test case mW>=60 dm) 坐标:经度分 >= 60
{{#coordinates:}}:无效的经度
mW<0 dm
1°2′S 3°-1′W / 1.033°S 2.983°W / -1.033; -2.983 (Test case mW<0 dm) 坐标:经度分 < 0
{{#coordinates:}}:无效的经度
extra dm
1°2′S 3°4′W / 1.033°S 3.067°W / -1.033; -3.067 (Test case extra dm) 坐标:额外的未知参数

dms format 编辑

dN>+90 dms
91°0′0″N 1°2′3″E / 91.00000°N 1.03417°E / 91.00000; 1.03417 (Test case dN>+90 dms) 坐标:纬度 > 90
{{#coordinates:}}:无效的纬度
dN<-90 dms
-91°0′0″N 1°2′3″E / 91.00000°S 1.03417°E / -91.00000; 1.03417 (Test case dN<-90 dms) 坐标:指定了半球名称,但纬度 < 0
坐标:纬度 < -90
{{#coordinates:}}:无效的纬度
dE>=+360 dms
1°2′3″S 360°0′0″E / 1.03417°S 360.00000°E / -1.03417; 360.00000 (Test case dE>=+360 dms) 坐标:经度 >= 360
{{#coordinates:}}:无效的经度
dE<=-360 dms
1°2′3″S -360°0′0″E / 1.03417°S 360.00000°W / -1.03417; -360.00000 (Test case dE<=-360 dms) 坐标:指定了半球名称,但经度 < 0
坐标:经度 <= -360
{{#coordinates:}}:无效的经度
mS>=60 dms
1°60′0″S 2°3′4″W / 2.00000°S 2.05111°W / -2.00000; -2.05111 (Test case mS>=60 dms) 坐标:纬度分 >= 60
{{#coordinates:}}:无效的纬度
mS<0 dms
1°-1′2″S 3°4′5″W / 0.98389°S 3.06806°W / -0.98389; -3.06806 (Test case mS<0 dms) 坐标:纬度分 < 0
{{#coordinates:}}:无效的纬度
mW>=60 dms
1°2′3″S 4°60′0″W / 1.03417°S 5.00000°W / -1.03417; -5.00000 (Test case mW>=60 dms) 坐标:经度分 >= 60
{{#coordinates:}}:无效的经度
mW<0 dms
1°2′3″S 4°-1′5″W / 1.03417°S 3.98472°W / -1.03417; -3.98472 (Test case mW<0 dms) 坐标:经度分 < 0
{{#coordinates:}}:无效的经度
sS>=60 dms
1°2′60″S 3°4′5″W / 1.05000°S 3.06806°W / -1.05000; -3.06806 (Test case sS>=60 dms) 坐标:纬度秒 >= 60
{{#coordinates:}}:无效的纬度
sS<0 dms
1°2′-1″S 3°4′5″W / 1.03306°S 3.06806°W / -1.03306; -3.06806 (Test case sS<0 dms) 坐标:纬度秒 < 0
{{#coordinates:}}:无效的纬度
sW>=60 dms
1°2′3″S 3°4′60″W / 1.03417°S 3.08333°W / -1.03417; -3.08333 (Test case sW>=60 dms) 坐标:经度秒 >= 60
{{#coordinates:}}:无效的经度
sW<0 dms
1°2′3″S 3°4′-1″W / 1.03417°S 3.06639°W / -1.03417; -3.06639 (Test case sW<0 dms) 坐标:经度秒 < 0
{{#coordinates:}}:无效的经度
extra dms
1°2′3″S 3°4′5″W / 1.03417°S 3.06806°W / -1.03417; -3.06806 (Test case extra dms) 坐标:额外的未知参数

Errors 编辑

  1. 坐标:参数格式不明
  2. 4°5′6″N 1°2′3″E / 4.08500°N 1.03417°E / 4.08500; 1.03417
  3. 3°4′N 1°2′E / 3.067°N 1.033°E / 3.067; 1.033
  4. 坐标:缺少纬度
    无效参数传递至{{#coordinates:}}函数
  5. 坐标:缺少纬度
    无效参数传递至{{#coordinates:}}函数
  6. 坐标:缺少经度
    无效参数传递至{{#coordinates:}}函数
  7. 坐标:缺少经度
    无效参数传递至{{#coordinates:}}函数
  8. 坐标:缺少经度
    无效参数传递至{{#coordinates:}}函数
  9. 坐标:缺少经度
    无效参数传递至{{#coordinates:}}函数
  10. 1°2′3″S 3°4′5″W / 1.03417°S 3.06806°W / -1.03417; -3.06806 (Type-word missing) 坐标:额外的未知参数
    无效参数传递至{{#coordinates:}}函数

Blank parameters 编辑

DM blank M
1°N 3°E / 1°N 3°E / 1; 3 (Test case DM blank M)
DMS blank S
1°2′N 5°6′E / 1.033°N 5.100°E / 1.033; 5.100 (Test case DMS blank S)
DMS blank M and S
1°N 5°E / 1°N 5°E / 1; 5 (Test case DMS blank M and S)
display=
1°N 2°E / 1°N 2°E / 1; 2 (Test case DMS blank M and S)
extra blanks
51°02′21″N 116°26′33″W / 51.03917°N 116.44250°W / 51.03917; -116.44250 (Test case extra blanks)

Extreme values 编辑

Airy (Martian crater) 编辑

North and south poles 编辑

Documented type values 编辑

globe values 编辑

supported 编辑

  • Saturn
  • Uranus
  • Neptune

questionable 编辑

currently unsupported 编辑

sun: 1°N 2°E / 1°N 2°E / 1; 2

  • Pluto

Examples from Template:Coord/doc 编辑

Don't invoke #coordinates 编辑

10°N 20°E / 10°N 20°E / 10; 20

Tests of subroutines 编辑

Coord2text 编辑

Using Module:Coordinates and Template:Coord:

  • coord2text lat dms: 57.30611
  • coord2text long dms: 4.45889
  • coord2text lat decimal: 57.1822
  • coord2text long decimal: 4.2732

Using Module:Coordinates and Template:Coord/sandbox:

  • coord2text lat dms: 57.30611
  • coord2text long dms: 4.45889
  • coord2text lat decimal: 57.1822
  • coord2text long decimal: 4.2732

Using Module:Coordinates/sandbox2 and Template:Coord/sandbox:

  • coord2text lat dms: 脚本错误:没有“coordinates/sandbox2”这个模块。
  • coord2text long dms: 脚本错误:没有“coordinates/sandbox2”这个模块。
  • coord2text lat decimal: 脚本错误:没有“coordinates/sandbox2”这个模块。
  • coord2text long decimal: 脚本错误:没有“coordinates/sandbox2”这个模块。

Tests of qid 编辑