Template:Coord/testcases
Template:Template test cases notice
Infobox
editTemplate:Infobox protected area
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
editSW
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{{#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{{#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{{#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{{#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{{#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{{#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{{#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{{#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{{#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{{#coordinates:}}: invalid latitude
- N>+90 dec
- 90°06′N 1°00′E / 90.1°N 1°E Coordinates: latitude degrees > 90
{{#coordinates:}}: invalid latitude{{#coordinates:}}: invalid latitude - N<-90 dec
- 90°06′S 1°00′E / 90.1°S 1°E Coordinates: latitude degrees < -90
{{#coordinates:}}: invalid latitude{{#coordinates:}}: invalid latitude - E>=+360 dec
- 1°N 360°E / 1°N 360°E Coordinates: longitude degrees >= 360
{{#coordinates:}}: invalid longitude{{#coordinates:}}: invalid longitude - E<=-360 dec
- 1°N 360°W / 1°N 360°W Coordinates: longitude degrees <= -360
{{#coordinates:}}: invalid longitude{{#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{{#coordinates:}}: invalid latitude - N>+90 d
- 90.1°N 1°E / 90.1°N 1°E Coordinates: latitude degrees > 90
{{#coordinates:}}: invalid latitude{{#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{{#coordinates:}}: invalid latitude - W>=+360 d
- 1°N 360°W / 1°N 360°W Coordinates: longitude degrees >= 360
{{#coordinates:}}: invalid longitude{{#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{{#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{{#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{{#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{{#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{{#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{{#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{{#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{{#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{{#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{{#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{{#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{{#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{{#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{{#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{{#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{{#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{{#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{{#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{{#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{{#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{{#coordinates:}}: invalid longitude - extra dms
- 1°2′3″S 3°4′5″W / 1.03417°S 3.06806°W Coordinates: Extra unexpected parameters
Invalid formats
edit1. Coordinates: Unknown argument format
2. 4°5′6″N 1°2′3″E / 4.08500°N 1.03417°E{{#coordinates:}}: invalid latitude
3. 3°4′N 1°2′E / 3.067°N 1.033°E{{#coordinates:}}: invalid latitude
4. Coordinates: Missing latitude
Invalid arguments have been passed to the {{#coordinates:}} functionInvalid arguments have been passed to the {{#coordinates:}} function
5. Coordinates: Missing latitude
Invalid arguments have been passed to the {{#coordinates:}} functionInvalid arguments have been passed to the {{#coordinates:}} function
6. Coordinates: Missing longitude
Invalid arguments have been passed to the {{#coordinates:}} functionInvalid arguments have been passed to the {{#coordinates:}} function
7. Coordinates: Missing longitude
Invalid arguments have been passed to the {{#coordinates:}} functionInvalid arguments have been passed to the {{#coordinates:}} function
8. Coordinates: Missing longitude
Invalid arguments have been passed to the {{#coordinates:}} functionInvalid arguments have been passed to the {{#coordinates:}} function
9. Coordinates: Missing longitude
Invalid arguments have been passed to the {{#coordinates:}} functionInvalid 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- 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
edit- 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°EInvalid arguments have been passed to the {{#coordinates:}} functionInvalid arguments have been passed to the {{#coordinates:}} function
- 90°0′S 0°E / 90.000°S 0°EInvalid arguments have been passed to the {{#coordinates:}} functionInvalid arguments have been passed to the {{#coordinates:}} function
- 90°0′0″N 0°E / 90.00000°N 0°E{{#coordinates:}}: invalid longitude{{#coordinates:}}: invalid longitude
- 90°0′0″S 0°E / 90.00000°S 0°E{{#coordinates:}}: invalid longitude{{#coordinates:}}: invalid longitude
Documented type values
edit- 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
- 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
editsupported
edit- ceres: 1°N 2°E / 1°N 2°E
- vesta: 1°N 2°E / 1°N 2°E
- Jupiter
- Saturn
- Uranus
- Neptune
questionable
editcurrently unsupported
edit- 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
edit- 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