Jump to content

Template:Coord/testcases

Coordinates: Coordinates: Missing latitude
Rendered with Parsoid
From Wikipedia, the free encyclopedia

Infobox

[edit]
Bullet Tree Falls
Bullet Tree Falls is located in Belize
Bullet Tree Falls
Bullet Tree Falls
Coordinates: 17°10′05″N 89°06′40″W / 17.168°N 89.111°W
Country Belize
DistrictCayo District
ConstituencyCayo North
Elevation
69 m (226 ft)
Population
 (2010)
  Total2,124[1]
Time zoneUTC-6 (Central)
ClimateAm
Bullet Tree Falls
Bullet Tree Falls is located in Belize
Bullet Tree Falls
Bullet Tree Falls
Coordinates: 17°10′04.8″N 89°06′39.6″W / 17.168000°N 89.111000°W
Country Belize
DistrictCayo District
ConstituencyCayo North
Elevation
69 m (226 ft)
Population
 (2010)
  Total2,124[1]
Time zoneUTC-6 (Central)
ClimateAm
Ellis Island
Part of Statue of Liberty National Monument
Ellis Island
Nearest cityJersey City
Coordinates40°41′56.5″N 74°2′22.2″W / 40.699028°N 74.039500°W[2]
Width300
Area58.38 acres (0.24 km²) (includes Statue of Liberty NM)
EstablishedMay 11, 1965 (as a national monument)
Visitors3,618,054 (includes Statue of Liberty NM) (in 2004)
Governing bodyNational Park Service
www.nps.gov/elis/
  1. 1 2 "Belize Population and Housing Census: 2010 Country Report" (PDF). Statistical Institute of Belize. Archived from the original (PDF) on 27 January 2016. Retrieved 25 July 2015.
  2. U.S. Geological Survey Geographic Names Information System: Ellis Island
  3. U.S. Geological Survey Geographic Names Information System: 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

[edit]

SW

[edit]
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:}}: invalid latitude
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:}}: invalid latitude
2c
-20°N -20°E / 20°S 20°W Coordinates: latitude degrees < 0 with hemisphere flag
Coordinates: longitude degrees < 0 with hemisphere flag
{{#coordinates:}}: invalid latitude
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:}}: invalid latitude
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:}}: invalid latitude
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:}}: invalid latitude
3e
-20°N -20°E / 20°S 20°W Coordinates: latitude degrees < 0 with hemisphere flag
Coordinates: longitude degrees < 0 with hemisphere flag
{{#coordinates:}}: invalid latitude

NE

[edit]
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:}}: invalid latitude
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:}}: invalid latitude
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:}}: invalid latitude


N>+90 dec
90°06′N 1°00′E / 90.1°N 1°E Coordinates: latitude degrees > 90
{{#coordinates:}}: invalid latitude
N<-90 dec
90°06′S 1°00′E / 90.1°S 1°E Coordinates: latitude degrees < -90
{{#coordinates:}}: invalid latitude
E>=+360 dec
1°N 360°E / 1°N 360°E Coordinates: longitude degrees >= 360
{{#coordinates:}}: invalid longitude
E<=-360 dec
1°N 360°W / 1°N 360°W Coordinates: longitude degrees <= -360
{{#coordinates:}}: invalid longitude
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

[edit]
S>+90 d
90.1°S 1°W / 90.1°S 1°W Coordinates: latitude degrees > 90
{{#coordinates:}}: invalid latitude
N>+90 d
90.1°N 1°E / 90.1°N 1°E Coordinates: latitude degrees > 90
{{#coordinates:}}: invalid latitude
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:}}: invalid latitude
W>=+360 d
1°N 360°W / 1°N 360°W Coordinates: longitude degrees >= 360
{{#coordinates:}}: invalid longitude
E<=-360 d
1°N -360°E / 1°N 360°W Coordinates: longitude degrees < 0 with hemisphere flag
Coordinates: longitude degrees <= -360
{{#coordinates:}}: invalid longitude
extra d
1°S 2°W / 1°S 2°W Coordinates: Extra unexpected parameters

dm format

[edit]
dN>+90 dm
91°0′N 1°2′E / 91.000°N 1.033°E Coordinates: latitude degrees > 90
{{#coordinates:}}: invalid latitude
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:}}: invalid latitude
dE>=+360 dm
1°2′S 360°0′E / 1.033°S 360.000°E Coordinates: longitude degrees >= 360
{{#coordinates:}}: invalid longitude
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:}}: invalid longitude
mS>=60 dm
1°60′S 2°3′W / 2.000°S 2.050°W Coordinates: latitude minutes >= 60
{{#coordinates:}}: invalid latitude
mS<0 dm
1°-1′S 2°3′W / 0.983°S 2.050°W Coordinates: latitude minutes < 0
{{#coordinates:}}: invalid latitude
mW>=60 dm
1°2′S 3°60′W / 1.033°S 4.000°W Coordinates: longitude minutes >= 60
{{#coordinates:}}: invalid longitude
mW<0 dm
1°2′S 3°-1′W / 1.033°S 2.983°W Coordinates: longitude minutes < 0
{{#coordinates:}}: invalid longitude
extra dm
1°2′S 3°4′W / 1.033°S 3.067°W Coordinates: Extra unexpected parameters

dms format

[edit]
dN>+90 dms
91°0′0″N 1°2′3″E / 91.00000°N 1.03417°E Coordinates: latitude degrees > 90
{{#coordinates:}}: invalid latitude
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:}}: invalid latitude
dE>=+360 dms
1°2′3″S 360°0′0″E / 1.03417°S 360.00000°E Coordinates: longitude degrees >= 360
{{#coordinates:}}: invalid longitude
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:}}: invalid longitude
mS>=60 dms
1°60′0″S 2°3′4″W / 2.00000°S 2.05111°W Coordinates: latitude minutes >= 60
{{#coordinates:}}: invalid latitude
mS<0 dms
1°-1′2″S 3°4′5″W / 0.98389°S 3.06806°W Coordinates: latitude minutes < 0
{{#coordinates:}}: invalid latitude
mW>=60 dms
1°2′3″S 4°60′0″W / 1.03417°S 5.00000°W Coordinates: longitude minutes >= 60
{{#coordinates:}}: invalid longitude
mW<0 dms
1°2′3″S 4°-1′5″W / 1.03417°S 3.98472°W Coordinates: longitude minutes < 0
{{#coordinates:}}: invalid longitude
sS>=60 dms
1°2′60″S 3°4′5″W / 1.05000°S 3.06806°W Coordinates: latitude seconds >= 60
{{#coordinates:}}: invalid latitude
sS<0 dms
1°2′-1″S 3°4′5″W / 1.03306°S 3.06806°W Coordinates: latitude seconds < 0
{{#coordinates:}}: invalid latitude
sW>=60 dms
1°2′3″S 3°4′60″W / 1.03417°S 3.08333°W Coordinates: longitude seconds >= 60
{{#coordinates:}}: invalid longitude
sW<0 dms
1°2′3″S 3°4′-1″W / 1.03417°S 3.06639°W Coordinates: longitude seconds < 0
{{#coordinates:}}: invalid longitude
extra dms
1°2′3″S 3°4′5″W / 1.03417°S 3.06806°W Coordinates: Extra unexpected parameters

Errors

[edit]
  1. Coordinates: Unknown argument format
  2. 4°5′6″N 1°2′3″E / 4.08500°N 1.03417°E
  3. 3°4′N 1°2′E / 3.067°N 1.033°E
  4. Coordinates: Missing latitude
    Invalid arguments have been passed to the {{#coordinates:}} function
  5. Coordinates: Missing latitude
    Invalid arguments have been passed to the {{#coordinates:}} function
  6. Coordinates: Missing longitude
    Invalid arguments have been passed to the {{#coordinates:}} function
  7. Coordinates: Missing longitude
    Invalid arguments have been passed to the {{#coordinates:}} function
  8. Coordinates: Missing longitude
    Invalid arguments have been passed to the {{#coordinates:}} function
  9. Coordinates: Missing longitude
    Invalid arguments have been passed to the {{#coordinates:}} function
  10. 1°2′3″S 3°4′5″W / 1.03417°S 3.06806°W Coordinates: Extra unexpected parameters
    Invalid arguments have been passed to the {{#coordinates:}} function

Blank parameters

[edit]
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

[edit]

North and south poles

[edit]

Documented type values

[edit]

globe values

[edit]

supported

[edit]
  • Saturn
  • Uranus
  • Neptune

questionable

[edit]

currently unsupported

[edit]

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

  • Pluto

Examples from Template:Coord/doc

[edit]

Don't invoke #coordinates

[edit]

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

Tests of subroutines

[edit]

Coord2text

[edit]

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: 57.30611
  • coord2text long dms: 4.45889
  • coord2text lat decimal: 57.1822
  • coord2text long decimal: 4.2732

Tests of qid

[edit]