แม่แบบ:Coord/testcases

==Infobox**
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 {}
# W
# W
# W
# name=Type-word missing

**Blank parameters**
DM  blank M:       name=Test case DM blank M
DMS blank S:       name=Test case DMS blank S
DMS blank M and S: name=Test case DMS blank M and S
display=:          name=Test case DMS blank M and S
extra blanks:      name=Test case extra blanks

**Extreme values**
 E- E- E- E- W- W

**Airy (Martian crater)**
 globe:mars- globe:mars- globe:mars

**North and south poles**
 0- 0- E- E- E- E- E- E

**Documented type values**
 country: type:country- satellite: type:satellite- adm1st: type:adm1st- adm2nd: type:adm2nd- adm3rd: type:adm3rd- city: type:city- city (9999): type:city(9999)- city (10000): type:city(10000)- city (99999): type:city(99999)- city (100000): type:city(100000)- city (1000000): type:city(1000000)- airport: type:airport- mountain: type:mountain- isle: type:isle- waterbody: type:waterbody- forest: type:forest- river: type:river- glacier: type:glacier- event: type:event- edu: type:edu- pass: type:pass- railwaystation: type:railwaystation- landmark: type:landmark

**globe values**

**supported**
 mercury: globe:mercury- venus: globe:venus- earth: globe:earth- moon: globe:moon- mars: globe:mars- phobos: globe:phobos- deimos: globe:deimos- ceres: globe:ceres- vesta: globe:vesta- Jupiter- ganymede: globe:ganymede- callisto: globe:callisto- io: globe:io- europa: globe:europa- Saturn- mimas: globe:mimas- enceladus: globe:enceladus- tethys: globe:tethys- dione: globe:dione- rhea: globe:rhea- titan: globe:titan- hyperion: globe:hyperion- iapetus: globe:iapetus- phoebe: globe:phoebe- Uranus- miranda: globe:miranda- ariel: globe:ariel- umbriel: globe:umbriel- titania: globe:titania- oberon: globe:oberon- Neptune- triton: globe:triton- pluto: globe:pluto

**questionable**
 Moon: globe:Moon- MOON: globe:MOON

**currently unsupported**
sun: globe:sun- terra: globe:terra- luna: globe:luna- ida: globe:ida- gaspra: globe:gaspra- eros: globe:eros- golevka: globe:golevka- borrelly: globe:borrelly- jupiter: globe:jupiter- metis globe:metis- adrastea globe:adrastea- amalthea globe:amalthea- thebe globe:thebe- saturn: globe:saturn- pan globe:pan- atlas globe:atlas- prometheus globe:prometheus- pandora globe:pandora- epimetheus globe:epimetheus- janus globe:janus- telesto globe:telesto- calypso globe:calypso- helene globe:helene- uranus: globe:uranus- cordelia: globe:cordelia- ophelia: globe:ophelia- bianca: globe:bianca- cressida: globe:cressida- desdemona: globe:desdemona- juliet: globe:juliet- portia: globe:portia- rosalind: globe:rosalind- belinda: globe:belinda- puck: globe:puck- neptune: globe:neptune- naiad: globe:naiad- thalassa: globe:thalassa- despina: globe:despina- galatea: globe:galatea- larissa: globe:larissa- proteus: globe:proteus- Pluto- charon: globe:charon

**Examples from Template:Coord/doc**
 W- W- -87.913- name=Klann Road- display=inline- -20.3- type:city_region:US- type:landmark_region:GB- type:landmark_region:AU- W- -79.383333- -79.38- -79.3800- W- W- W- W- E- format=dms- format=dms- name=Moscow- E- E- W- W- region:GB_type:city- type:mountain- scale:1000- scale:10000- scale:100000- scale:1000000- dim:10000000- dim:400000- dim:20000- dim:100- dim:0.6- region:CH- region:DE-BE- globe:moon- globe:mars- globe:venus- globe:mercury- W- E

**Don't invoke #coordinates**

**Tests of subroutines**
 Infobox country, capital add city to coordinates: 

**Coord2text**
Using Module:Coordinates and Template:Coord:- coord2text lat dms: - coord2text long dms: - coord2text lat decimal: - coord2text long decimal: 
Using Module:Coordinates and Template:Coord/sandbox:- coord2text lat dms: - coord2text long dms: - coord2text lat decimal: - coord2text long decimal: 
Using Module:Coordinates/sandbox2 and Template:Coord/sandbox:- coord2text lat dms: - coord2text long dms: - coord2text lat decimal: - coord2text long decimal: 

**Tests of qid**
  no params, should error- display=title no params, but is the primary version of the coordinates. should lookup QID of current page- name=New York City no params, but name provided. should lookup QID of name- qid=Q60 Only QID- qid=Q60 coordinate with QID (gets shape)- name=New York City coordinate with name, should find shape via qid lookup