模板:Coord/testcases
這是Template:Coord及其沙盒的測試樣例。刷新本頁以更新內容。 如果這裡有許多複雜的模板的用例,可能會因為MediaWiki的技術限制而出錯。 您還可以用Special:展開模板來測試模板的使用效果。 您可以通過以下鏈接測試本模板在不同外觀下的效果: |
icon
{{Coord}} | {{Coord/sandbox}} |
---|---|
43°39′N 79°23′W / 43.65°N 79.38°W | 43°39′N 79°23′W / 43.65°N 79.38°W |
Infobox
Bullet Tree Falls | |
---|---|
坐標:17°10′05″N 89°06′40″W / 17.168°N 89.111°W | |
Country | 伯利茲 |
District | Cayo District |
Constituency | Cayo North |
海拔 | 69 公尺(226 英尺) |
人口(2010) | |
• 總計 | 2,124[1]人 |
時區 | Central(UTC-6) |
Climate | Am |
Bullet Tree Falls | |
---|---|
坐標:17°10′04.8″N 89°06′39.6″W / 17.168000°N 89.111000°W | |
Country | 伯利茲 |
District | Cayo District |
Constituency | Cayo North |
海拔 | 69 公尺(226 英尺) |
人口(2010) | |
• 總計 | 2,124[1]人 |
時區 | Central(UTC-6) |
Climate | Am |
Ellis Island Part of Statue of Liberty National Monument | |
---|---|
最近城市 | Jersey City |
座標 | 40°41′56.5″N 74°2′22.2″W / 40.699028°N 74.039500°W[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 |
- ^ 1.0 1.1 Belize Population and Housing Census: 2010 Country Report (PDF). Statistical Institute of Belize. [25 July 2015]. (原始內容 (PDF)存檔於27 January 2016).
- ^ 美國地質調查局地名資訊系統: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
- 1b
- -20.4°N -20.4°E / 20.4°S 20.4°W Coordinates: latitude degrees < 0 with hemisphere flag
Coordinates: longitude degrees < 0 with hemisphere flag
{{#coordinates:}}:無效的緯度 - 1c
- 20°24′S 20°24′W / 20.4°S 20.4°W
- 2a
- 20°20′S 20°20′W / 20.333°S 20.333°W
- 2b
- -20°20′N -20°20′E / 19.667°S 19.667°W Coordinates: latitude degrees < 0 with hemisphere flag
Coordinates: longitude degrees < 0 with hemisphere flag
{{#coordinates:}}:無效的緯度 - 2c
- -20°N -20°E / 20°S 20°W Coordinates: latitude degrees < 0 with hemisphere flag
Coordinates: longitude degrees < 0 with hemisphere flag
{{#coordinates:}}:無效的緯度
- 3a
- 20°20′20″S 20°20′20″W / 20.33889°S 20.33889°W
- 3b
- -20°20′20″N -20°20′20″E / 19.66111°S 19.66111°W Coordinates: latitude degrees < 0 with hemisphere flag
Coordinates: longitude degrees < 0 with hemisphere flag
{{#coordinates:}}:無效的緯度 - 3c
- -20°20″N -20°20″E / 19.99444°S 19.99444°W Coordinates: latitude degrees < 0 with hemisphere flag
Coordinates: longitude degrees < 0 with hemisphere flag
{{#coordinates:}}:無效的緯度 - 3d
- -20°20′N -20°20′E / 19.667°S 19.667°W Coordinates: latitude degrees < 0 with hemisphere flag
Coordinates: longitude degrees < 0 with hemisphere flag
{{#coordinates:}}:無效的緯度 - 3e
- -20°N -20°E / 20°S 20°W Coordinates: latitude degrees < 0 with hemisphere flag
Coordinates: longitude degrees < 0 with hemisphere flag
{{#coordinates:}}:無效的緯度
NE
- 1a
- 20°24′N 20°24′E / 20.4°N 20.4°E
- 1b
- -20.4°S -20.4°W / 20.4°N 20.4°E Coordinates: latitude degrees < 0 with hemisphere flag
Coordinates: longitude degrees < 0 with hemisphere flag
{{#coordinates:}}:無效的緯度 - 1c
- 20°24′N 20°24′E / 20.4°N 20.4°E
- 2a
- 20°20′N 20°20′E / 20.333°N 20.333°E
- 2b
- -20°20′S -20°20′W / 19.667°N 19.667°E Coordinates: latitude degrees < 0 with hemisphere flag
Coordinates: longitude degrees < 0 with hemisphere flag
{{#coordinates:}}:無效的緯度
- 3a
- 20°20′20″N 20°20′20″E / 20.33889°N 20.33889°E
- 3b
- -20°20′20″S -20°20′20″W / 19.66111°N 19.66111°E Coordinates: latitude degrees < 0 with hemisphere flag
Coordinates: longitude degrees < 0 with hemisphere flag
{{#coordinates:}}:無效的緯度
- N>+90 dec
- 90°06′N 1°00′E / 90.1°N 1°E Coordinates: latitude degrees > 90
{{#coordinates:}}:無效的緯度 - N<-90 dec
- 90°06′S 1°00′E / 90.1°S 1°E Coordinates: latitude degrees < -90
{{#coordinates:}}:無效的緯度 - E>=+360 dec
- 1°N 360°E / 1°N 360°E Coordinates: longitude degrees >= 360
{{#coordinates:}}:無效的經度 - E<=-360 dec
- 1°N 360°W / 1°N 360°W Coordinates: longitude degrees <= -360
{{#coordinates:}}:無效的經度
- dim= dec
- 1°N 2°E / 1°N 2°E Coordinates: Parameter: "dim=" should be "dim:"
- globe= dec
- 1°N 2°E / 1°N 2°E Coordinates: Parameter: "globe=" should be "globe:"
- region= dec
- 1°N 2°E / 1°N 2°E Coordinates: Parameter: "region=" should be "region:"
- scale= dec
- 1°N 2°E / 1°N 2°E Coordinates: Parameter: "scale=" should be "scale:"
- source= dec
- 1°N 2°E / 1°N 2°E Coordinates: Parameter: "source=" should be "source:"
- type= dec
- 1°N 2°E / 1°N 2°E Coordinates: Parameter: "type=" should be "type:"
d format
- S>+90 d
- 90.1°S 1°W / 90.1°S 1°W Coordinates: latitude degrees > 90
{{#coordinates:}}:無效的緯度 - N>+90 d
- 90.1°N 1°E / 90.1°N 1°E Coordinates: latitude degrees > 90
{{#coordinates:}}:無效的緯度 - N<-90 d
- -90.1°N 1°W / 90.1°S 1°W Coordinates: latitude degrees < 0 with hemisphere flag
Coordinates: latitude degrees < -90
{{#coordinates:}}:無效的緯度 - W>=+360 d
- 1°N 360°W / 1°N 360°W Coordinates: longitude degrees >= 360
{{#coordinates:}}:無效的經度 - E<=-360 d
- 1°N -360°E / 1°N 360°W Coordinates: longitude degrees < 0 with hemisphere flag
Coordinates: longitude degrees <= -360
{{#coordinates:}}:無效的經度 - extra d
- 1°S 2°W / 1°S 2°W Coordinates: Extra unexpected parameters
dm format
- dN>+90 dm
- 91°0′N 1°2′E / 91.000°N 1.033°E Coordinates: latitude degrees > 90
{{#coordinates:}}:無效的緯度 - dN<-90 dm
- -91°0′N 1°2′E / 91.000°S 1.033°E Coordinates: latitude degrees < 0 with hemisphere flag
Coordinates: latitude degrees < -90
{{#coordinates:}}:無效的緯度 - dE>=+360 dm
- 1°2′S 360°0′E / 1.033°S 360.000°E Coordinates: longitude degrees >= 360
{{#coordinates:}}:無效的經度 - dE<=-360 dm
- 1°2′S -360°0′E / 1.033°S 360.000°W Coordinates: longitude degrees < 0 with hemisphere flag
Coordinates: longitude degrees <= -360
{{#coordinates:}}:無效的經度 - mS>=60 dm
- 1°60′S 2°3′W / 2.000°S 2.050°W Coordinates: latitude minutes >= 60
{{#coordinates:}}:無效的緯度 - mS<0 dm
- 1°-1′S 2°3′W / 0.983°S 2.050°W Coordinates: latitude minutes < 0
{{#coordinates:}}:無效的緯度 - mW>=60 dm
- 1°2′S 3°60′W / 1.033°S 4.000°W Coordinates: longitude minutes >= 60
{{#coordinates:}}:無效的經度 - mW<0 dm
- 1°2′S 3°-1′W / 1.033°S 2.983°W Coordinates: longitude minutes < 0
{{#coordinates:}}:無效的經度 - extra dm
- 1°2′S 3°4′W / 1.033°S 3.067°W Coordinates: Extra unexpected parameters
dms format
- dN>+90 dms
- 91°0′0″N 1°2′3″E / 91.00000°N 1.03417°E Coordinates: latitude degrees > 90
{{#coordinates:}}:無效的緯度 - dN<-90 dms
- -91°0′0″N 1°2′3″E / 91.00000°S 1.03417°E Coordinates: latitude degrees < 0 with hemisphere flag
Coordinates: latitude degrees < -90
{{#coordinates:}}:無效的緯度 - dE>=+360 dms
- 1°2′3″S 360°0′0″E / 1.03417°S 360.00000°E Coordinates: longitude degrees >= 360
{{#coordinates:}}:無效的經度 - dE<=-360 dms
- 1°2′3″S -360°0′0″E / 1.03417°S 360.00000°W Coordinates: longitude degrees < 0 with hemisphere flag
Coordinates: longitude degrees <= -360
{{#coordinates:}}:無效的經度 - mS>=60 dms
- 1°60′0″S 2°3′4″W / 2.00000°S 2.05111°W Coordinates: latitude minutes >= 60
{{#coordinates:}}:無效的緯度 - mS<0 dms
- 1°-1′2″S 3°4′5″W / 0.98389°S 3.06806°W Coordinates: latitude minutes < 0
{{#coordinates:}}:無效的緯度 - mW>=60 dms
- 1°2′3″S 4°60′0″W / 1.03417°S 5.00000°W Coordinates: longitude minutes >= 60
{{#coordinates:}}:無效的經度 - mW<0 dms
- 1°2′3″S 4°-1′5″W / 1.03417°S 3.98472°W Coordinates: longitude minutes < 0
{{#coordinates:}}:無效的經度 - sS>=60 dms
- 1°2′60″S 3°4′5″W / 1.05000°S 3.06806°W Coordinates: latitude seconds >= 60
{{#coordinates:}}:無效的緯度 - sS<0 dms
- 1°2′-1″S 3°4′5″W / 1.03306°S 3.06806°W Coordinates: latitude seconds < 0
{{#coordinates:}}:無效的緯度 - sW>=60 dms
- 1°2′3″S 3°4′60″W / 1.03417°S 3.08333°W Coordinates: longitude seconds >= 60
{{#coordinates:}}:無效的經度 - sW<0 dms
- 1°2′3″S 3°4′-1″W / 1.03417°S 3.06639°W Coordinates: longitude seconds < 0
{{#coordinates:}}:無效的經度 - extra dms
- 1°2′3″S 3°4′5″W / 1.03417°S 3.06806°W Coordinates: Extra unexpected parameters
Errors
- Coordinates: Unknown argument format
- 4°5′6″N 1°2′3″E / 4.08500°N 1.03417°E
- 3°4′N 1°2′E / 3.067°N 1.033°E
- Coordinates: Missing latitude
無效參數傳遞至{{#coordinates:}}函數 - Coordinates: Missing latitude
無效參數傳遞至{{#coordinates:}}函數 - Coordinates: Missing longitude
無效參數傳遞至{{#coordinates:}}函數 - Coordinates: Missing longitude
無效參數傳遞至{{#coordinates:}}函數 - Coordinates: Missing longitude
無效參數傳遞至{{#coordinates:}}函數 - Coordinates: Missing longitude
無效參數傳遞至{{#coordinates:}}函數 - 1°2′3″S 3°4′5″W / 1.03417°S 3.06806°W Coordinates: Extra unexpected parameters
無效參數傳遞至{{#coordinates:}}函數
Blank parameters
- DM blank M
- 1°N 3°E / 1°N 3°E
- DMS blank S
- 1°2′N 5°6′E / 1.033°N 5.100°E
- DMS blank M and S
- 1°N 5°E / 1°N 5°E
- display=
- 1°N 2°E / 1°N 2°E
- extra blanks
- 51°02′21″N 116°26′33″W / 51.03917°N 116.44250°W
Extreme values
- 0°0′N 0°0′E / 0.000°N 0.000°E
- 0°0′0″N 0°0′0″E / 0.00000°N 0.00000°E
- 0°0′N 180°0′E / 0.000°N 180.000°E
- 0°0′0″N 180°0′0″E / 0.00000°N 180.00000°E
- 0°59′N 179°59′W / 0.983°N 179.983°W
- 0°59′59″S 179°59′59″W / 0.99972°S 179.99972°W
- 5°06′S 359°54′W / 5.1°S 359.9°W
- 5°6′S 359°54′W / 5.100°S 359.900°W
- 5°6′0″S 359°54′0″W / 5.10000°S 359.90000°W
North and south poles
- 90°N 0°E / 90°N 0°E
- 90°S 0°E / 90°S 0°E
- 90°N 0°E / 90°N 0°E
- 90°S 0°E / 90°S 0°E
- 90°0′N 0°E / 90.000°N 0°E無效參數傳遞至{{#coordinates:}}函數
- 90°0′S 0°E / 90.000°S 0°E無效參數傳遞至{{#coordinates:}}函數
- 90°0′0″N 0°E / 90.00000°N 0°E{{#coordinates:}}:無效的經度
- 90°0′0″S 0°E / 90.00000°S 0°E{{#coordinates:}}:無效的經度
Documented type values
- country: 38°19′41″N 122°42′32″W / 38.328°N 122.709°W
- satellite: 38°19′41″N 122°42′32″W / 38.328°N 122.709°W
- adm1st: 38°19′41″N 122°42′32″W / 38.328°N 122.709°W
- adm2nd: 38°19′41″N 122°42′32″W / 38.328°N 122.709°W
- adm3rd: 38°19′41″N 122°42′32″W / 38.328°N 122.709°W
- city: 38°19′41″N 122°42′32″W / 38.328°N 122.709°W
- city (9999): 38°19′41″N 122°42′32″W / 38.328°N 122.709°W
- city (10000): 38°19′41″N 122°42′32″W / 38.328°N 122.709°W
- city (99999): 38°19′41″N 122°42′32″W / 38.328°N 122.709°W
- city (100000): 38°19′41″N 122°42′32″W / 38.328°N 122.709°W
- city (1000000): 38°19′41″N 122°42′32″W / 38.328°N 122.709°W
- airport: 38°19′41″N 122°42′32″W / 38.328°N 122.709°W
- mountain: 38°19′41″N 122°42′32″W / 38.328°N 122.709°W
- isle: 38°19′41″N 122°42′32″W / 38.328°N 122.709°W
- waterbody: 38°19′41″N 122°42′32″W / 38.328°N 122.709°W
- forest: 38°19′41″N 122°42′32″W / 38.328°N 122.709°W
- river: 38°19′41″N 122°42′32″W / 38.328°N 122.709°W
- glacier: 38°19′41″N 122°42′32″W / 38.328°N 122.709°W
- event: 38°19′41″N 122°42′32″W / 38.328°N 122.709°W
- edu: 38°19′41″N 122°42′32″W / 38.328°N 122.709°W
- pass: 38°19′41″N 122°42′32″W / 38.328°N 122.709°W
- railwaystation: 38°19′41″N 122°42′32″W / 38.328°N 122.709°W
- landmark: 38°19′41″N 122°42′32″W / 38.328°N 122.709°W
globe values
supported
- ceres: 1°N 2°E / 1°N 2°E
- vesta: 1°N 2°E / 1°N 2°E
- Jupiter
- Saturn
- Uranus
- Neptune
questionable
currently unsupported
- ida: 1°N 2°E / 1°N 2°E
- gaspra: 1°N 2°E / 1°N 2°E
- eros: 1°N 2°E / 1°N 2°E
- golevka: 1°N 2°E / 1°N 2°E
- borrelly: 1°N 2°E / 1°N 2°E
- jupiter: 1°N 2°E / 1°N 2°E
- Pluto
Examples from Template:Coord/doc
- 57°18′22″N 4°27′32″W / 57.30611°N 4.45889°W
- 44°06′43″N 87°54′47″W / 44.112°N 87.913°W
- 44°06′43″N 87°54′47″W / 44.112°N 87.913°W
- 44°07′01″N 87°54′47″W / 44.117°N 87.913°W
- 10°12′N 20°18′W / 10.2°N 20.3°W
- 10°12′N 20°18′W / 10.2°N 20.3°W
- 44°24′N 111°06′W / 44.4°N 111.1°W
- 51°00′44″N 1°34′04″W / 51.01234°N 1.56789°W
- 35°30′S 150°06′E / 35.5°S 150.1°E
- 12°34′12″N 45°33′45″W / 12.57000°N 45.56250°W
- 43°39′04″N 79°23′00″W / 43.651234°N 79.383333°W
- 43°39′N 79°23′W / 43.65°N 79.38°W
- 43°39′00″N 79°22′48″W / 43.6500°N 79.3800°W
- 43°39′04″N 79°23′00″W / 43.651234°N 79.383333°W
- 43°29′N 79°23′W / 43.483°N 79.383°W
- 43°29′4″N 79°23′0″W / 43.48444°N 79.38333°W
- 43°29′4.5″N 79°23′0.5″W / 43.484583°N 79.383472°W
- 55°45′08″N 37°36′56″E / 55.752222°N 37.615556°E
- 55°45′08″N 37°36′56″E / 55.752222°N 37.615556°E
- 39°05′53″N 94°35′14″W / 39.098095°N 94.587307°W
- 55°45′08″N 37°36′56″E / 55.752222°N 37.615556°E
- 33°55′S 18°25′E / 33.917°S 18.417°E
- 35°00′N 105°00′E / 35.000°N 105.000°E
- 22°54′30″S 43°14′37″W / 22.90833°S 43.24361°W
- 22°S 43°W / 22°S 43°W
- 52°28′59″N 1°53′37″W / 52.48306°N 1.89361°W
- 46°43′N 7°58′E / 46.717°N 7.967°E
- 51°30′02″N 0°07′29″W / 51.500611°N 0.124611°W
- 51°30′02″N 0°07′29″W / 51.500611°N 0.124611°W
- 51°30′02″N 0°07′29″W / 51.500611°N 0.124611°W
- 51°30′02″N 0°07′29″W / 51.500611°N 0.124611°W
- 0°N 90°W / 0°N 90°W
- 40°30′N 82°30′W / 40.5°N 82.5°W
- 51°01′59″N 13°43′48″E / 51.033°N 13.73°E
- 40°41′21″N 74°02′40″W / 40.6892°N 74.0445°W
- 45°30′58″N 122°40′24″W / 45.516194°N 122.673226°W
- 46°57′09″N 7°26′23″E / 46.9524°N 7.4396°E
- 52°30′59″N 13°22′39″E / 52.5164°N 13.3775°E
- 0°40′26.69″N 23°28′22.69″E / 0.6740806°N 23.4729694°E
- 48°16′08″N 225°59′24″W / 48.269°N 225.990°W
- 7°30′S 303°00′E / 7.5°S 303°E
- 8°00′N 190°30′W / 8°N 190.5°W
- 51°36.287′N 8°32.018′W / 51.604783°N 8.533633°W
- 51°25.813′N 0°43.945′E / 51.430217°N 0.732417°E
Don't invoke #coordinates
Tests of subroutines
- Testing decimal to dms conversion: {{Coord/dec2dms/testcases}}
- Infobox country, capital add city to coordinates: 17°7′N 61°51′W / 17.117°N 61.850°W
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
- Coordinates: Missing latitude
無效參數傳遞至{{#coordinates:}}函數 no params, should error - Coordinates: Missing latitude
無效參數傳遞至{{#coordinates:}}函數 no params, but is the primary version of the coordinates. should lookup QID of current page - Coordinates: Missing latitude
無效參數傳遞至{{#coordinates:}}函數 no params, but name provided. should lookup QID of name - 40°42′46″N 74°00′22″W / 40.7128°N 74.0061°W Only QID
- 40°40′12″N 73°56′24″W / 40.67000°N 73.94000°W coordinate with QID (gets shape)
- 40°40′12″N 73°56′24″W / 40.67000°N 73.94000°W coordinate with name, should find shape via qid lookup