Template:Coord/testcases

From Qi-Hardware
Jump to: navigation, search

Template:Template test cases notice

Contents

[edit] Infobox

Template: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)


[edit] Coord inline

[edit] 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°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))
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))
2c
-20°N -20°E / 20°S 20°W / -20; -20 (Test case SW-2c: -20d N -20d E (-20, -20))
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))
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)
3d
-20°20′N -20°20′E / 19.66667°S 19.66667°W / -19.66667; -19.66667 (Test case SW-3d: -20d 20m N -20d 20m E)
3e
-20°N -20°E / 20°S 20°W / -20; -20 (Test case SW-3e: -20d N -20d E (-20, -20))

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


N>+90 dec
90°06′N 1°00′E / 90.1°N 1°E / 90.1; 1 (Test case N>+90 dec) latd>90 (dec format) in {{Coord}}
N<-90 dec
90°06′S 1°00′E / 90.1°S 1°E / -90.1; 1 (Test case N<-90 dec) latd<-90 (dec format) in {{Coord}}
E>=+360 dec
1°N 360°E / 1°N 360°E / 1; 360 (Test case E>=+360 dec) longd>=360 (dec format) in {{Coord}}
E<=-360 dec
1°N 360°W / 1°N 360°W / 1; -360 (Test case E<=-360 dec) longd<=-360 (dec format) in {{Coord}}
dim= dec
1°N 2°E / 1°N 2°E / 1; 2 (Test case dim= dec) dim= should be dim: in {{Coord}}
globe= dec
1°N 2°E / 1°N 2°E / 1; 2 (Test case globe= dec) globe= should be globe: in {{Coord}}
region= dec
1°N 2°E / 1°N 2°E / 1; 2 (Test case region= dec) region= should be region: in {{Coord}}
scale= dec
1°N 2°E / 1°N 2°E / 1; 2 (Test case scale= dec) scale= should be scale: in {{Coord}}
source= dec
1°N 2°E / 1°N 2°E / 1; 2 (Test case source= dec) source= should be source: in {{Coord}}
type= dec
1°N 2°E / 1°N 2°E / 1; 2 (Test case type= dec) type= should be type: in {{Coord}}

[edit] d format

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) in {{Coord}}
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) in {{Coord}}
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) in {{Coord}}
W>=+360 d
1°N 360°W / 1°N 360°W / 1; -360 (Test case W>=+360 d) longd>=360 (d format) in {{Coord}}
E<=-360 d
1°N 360°W / 1°N -360°E / 1; -360 (Test case E<=-360 d) longd<=-360 (d format) in {{Coord}}
extra d
1°S 2°W / 1°S 2°W / -1; -2 (Test case extra d) extra parameters (d format) in {{Coord}}

[edit] dm format

dN>+90 dm
91°0′N 1°2′E / 91°N 1.033°E / 91; 1.033 (Test case dN>+90 dm) latd>90 (dm format) in {{Coord}}
dN<-90 dm
-91°0′N 1°2′E / 91°S 1.033°E / -91; 1.033 (Test case dN<-90 dm) latd<-90 (dm format) in {{Coord}}
dE>=+360 dm
1°2′S 360°0′E / 1.033°S 360°E / -1.033; 360 (Test case dE>=+360 dm) longd>=360 (dm format) in {{Coord}}
dE<=-360 dm
1°2′S -360°0′E / 1.033°S 360°W / -1.033; -360 (Test case dE<=-360 dm) longd<=-360 (dm format) in {{Coord}}
mS>=60 dm
1°60′S 2°3′W / 2°S 2.05°W / -2; -2.05 (Test case mS>=60 dm) latm>=60 (dm format) in {{Coord}}
mS<0 dm
1°-1′S 2°3′W / 0.983°S 2.05°W / -0.983; -2.05 (Test case mS<0 dm) latm<0 (dm format) in {{Coord}}
mW>=60 dm
1°2′S 3°60′W / 1.033°S 4°W / -1.033; -4 (Test case mW>=60 dm) longm>=60 (dm format) in {{Coord}}
mW<0 dm
1°2′S 3°-1′W / 1.033°S 2.983°W / -1.033; -2.983 (Test case mW<0 dm) longm<0 (dm format) in {{Coord}}
extra dm
1°2′S 3°4′W / 1.033°S 3.067°W / -1.033; -3.067 (Test case extra dm) extra parameters (dm format) in {{Coord}}

[edit] dms format

dN>+90 dms
91°0′0″N 1°2′3″E / 91°N 1.03417°E / 91; 1.03417 (Test case dN>+90 dms) latd>90 (dms format) in {{Coord}}
dN<-90 dms
-91°0′0″N 1°2′3″E / 91°S 1.03417°E / -91; 1.03417 (Test case dN<-90 dms) latd<-90 (dms format) in {{Coord}}
dE>=+360 dms
1°2′3″S 360°0′0″E / 1.03417°S 360°E / -1.03417; 360 (Test case dE>=+360 dms) longd>=360 (dms format) in {{Coord}}
dE<=-360 dms
1°2′3″S -360°0′0″E / 1.03417°S 360°W / -1.03417; -360 (Test case dE<=-360 dms) longd<=-360 (dms format) in {{Coord}}
mS>=60 dms
1°60′0″S 2°3′4″W / 2°S 2.05111°W / -2; -2.05111 (Test case mS>=60 dms) latm>=60 (dms format) in {{Coord}}
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) latm<0 (dms format) in {{Coord}}
mW>=60 dms
1°2′3″S 4°60′0″W / 1.03417°S 5°W / -1.03417; -5 (Test case mW>=60 dms) longm>=60 (dms format) in {{Coord}}
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) longm<0 (dms format) in {{Coord}}
sS>=60 dms
1°2′60″S 3°4′5″W / 1.05°S 3.06806°W / -1.05; -3.06806 (Test case sS>=60 dms) lats>=60 (dms format) in {{Coord}}
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) lats<0 (dms format) in {{Coord}}
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) longs>=60 (dms format) in {{Coord}}
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) longs<0 (dms format) in {{Coord}}
extra dms
1°2′3″S 3°4′5″W / 1.03417°S 3.06806°W / -1.03417; -3.06806 (Test case extra dms) extra parameters (dms format) in {{Coord}}

[edit] Invalid formats

1. Unknown format in {{Coord}}. Parameters:

1=1
2=2
3=3
4=4
5=
6=
7=
8=
9=

2. Unknown format in {{Coord}}. Parameters:

1=1
2=2
3=3
4=E
5=4
6=5
7=6
8=N
9=

3. Unknown format in {{Coord}}. Parameters:

1=1
2=2
3=E
4=3
5=4
6=N
7=
8=
9=

4.

5. missing latitude in {{Coord}}

6. missing longitude (dec format) in {{Coord}}

7. 1°00′00″N Expression error: Unexpected < operator°Expression error: Unexpected < operatorExpression error: Unexpected < operatorExpression error: Unexpected >= operator / 1°N °W / 1; - missing longitude (d format) in {{Coord}}

8. 1°2′N °4′W / 1.033°N 0.067°W / 1.033; -0.067 missing longitude (dm format) in {{Coord}}

9. 1°2′3″N °5′6″W / 1.03417°N 0.085°W / 1.03417; -0.085 missing longitude (dms format) in {{Coord}}

[edit] 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.03333°N 5.1°E / 1.03333; 5.1 (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.4425°W / 51.03917; -116.4425 (Test case extra blanks)

[edit] Extreme values

[edit] Airy (Martian crater)

[edit] North and south poles

[edit] Documented type values

[edit] globe values

[edit] legal

  • Saturn
  • Uranus
  • Neptune

[edit] questionable


[edit] Examples from Template:Coord/doc

Personal tools
Namespaces
Variants
Actions
Navigation
interactive
Toolbox