Template:Coord/testcases

From blackwiki
Jump to navigation Jump to search
  1. REDIRECT Template:Testcases notice
  • From a page move: This is a redirect from a page that has been moved (renamed). This page was kept as a redirect to avoid breaking links, both internal and external, that may have been made to the old page name.

Infobox

Template:Tfm/dated

[[Category:Template:Pagetype with short description]]

Script error: No such module "If empty".
Lua error in Module:Location_map at line 399: Malformed coordinates value.
Coordinates: Lua error: callParserFunction: function "#coordinates" was not found.
Country Belize
DistrictCayo District
ConstituencyCayo North
Elevation
69 m (Template:Round ft)
Population
(2010)
 • Total2,124[1]
Script error: No such module "If empty".
Time zoneUTC-6 (Central)
Script error: No such module "If empty".
ClimateAm
Ellis Island
Part of Statue of Liberty National Monument
Ellis Island-27527.jpg
Ellis Island
Nearest cityScript error: No such module "If empty".
CoordinatesLua error: callParserFunction: function "#coordinates" was not found.
Width300
Area58.38 acres (0.24 km²) (includes Statue of Liberty NM)
EstablishedScript error: No such module "If empty".
Visitors3,618,054 (includes Statue of Liberty NM)Template:Sp(in 2004)
Governing bodyScript error: No such module "If empty".
Template:URL
Script error: No such module "If empty".
  1. "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


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
Lua error: callParserFunction: function "#coordinates" was not found.
1b
Lua error: callParserFunction: function "#coordinates" was not found.
1c
Lua error: callParserFunction: function "#coordinates" was not found.
2a
Lua error: callParserFunction: function "#coordinates" was not found.
2b
Lua error: callParserFunction: function "#coordinates" was not found.
2c
Lua error: callParserFunction: function "#coordinates" was not found.
3a
Lua error: callParserFunction: function "#coordinates" was not found.
3b
Lua error: callParserFunction: function "#coordinates" was not found.
3c
Lua error: callParserFunction: function "#coordinates" was not found.
3d
Lua error: callParserFunction: function "#coordinates" was not found.
3e
Lua error: callParserFunction: function "#coordinates" was not found.

NE

1a
Lua error: callParserFunction: function "#coordinates" was not found.
1b
Lua error: callParserFunction: function "#coordinates" was not found.
1c
Lua error: callParserFunction: function "#coordinates" was not found.
2a
Lua error: callParserFunction: function "#coordinates" was not found.
2b
Lua error: callParserFunction: function "#coordinates" was not found.
3a
Lua error: callParserFunction: function "#coordinates" was not found.
3b
Lua error: callParserFunction: function "#coordinates" was not found.


N>+90 dec
Lua error: callParserFunction: function "#coordinates" was not found.
N<-90 dec
Lua error: callParserFunction: function "#coordinates" was not found.
E>=+360 dec
Lua error: callParserFunction: function "#coordinates" was not found.
E<=-360 dec
Lua error: callParserFunction: function "#coordinates" was not found.
dim= dec
Lua error: callParserFunction: function "#coordinates" was not found.
globe= dec
Lua error: callParserFunction: function "#coordinates" was not found.
region= dec
Lua error: callParserFunction: function "#coordinates" was not found.
scale= dec
Lua error: callParserFunction: function "#coordinates" was not found.
source= dec
Lua error: callParserFunction: function "#coordinates" was not found.
type= dec
Lua error: callParserFunction: function "#coordinates" was not found.

d format

S>+90 d
Lua error: callParserFunction: function "#coordinates" was not found.
N>+90 d
Lua error: callParserFunction: function "#coordinates" was not found.
N<-90 d
Lua error: callParserFunction: function "#coordinates" was not found.
W>=+360 d
Lua error: callParserFunction: function "#coordinates" was not found.
E<=-360 d
Lua error: callParserFunction: function "#coordinates" was not found.
extra d
Lua error: callParserFunction: function "#coordinates" was not found.

dm format

dN>+90 dm
Lua error: callParserFunction: function "#coordinates" was not found.
dN<-90 dm
Lua error: callParserFunction: function "#coordinates" was not found.
dE>=+360 dm
Lua error: callParserFunction: function "#coordinates" was not found.
dE<=-360 dm
Lua error: callParserFunction: function "#coordinates" was not found.
mS>=60 dm
Lua error: callParserFunction: function "#coordinates" was not found.
mS<0 dm
Lua error: callParserFunction: function "#coordinates" was not found.
mW>=60 dm
Lua error: callParserFunction: function "#coordinates" was not found.
mW<0 dm
Lua error: callParserFunction: function "#coordinates" was not found.
extra dm
Lua error: callParserFunction: function "#coordinates" was not found.

dms format

dN>+90 dms
Lua error: callParserFunction: function "#coordinates" was not found.
dN<-90 dms
Lua error: callParserFunction: function "#coordinates" was not found.
dE>=+360 dms
Lua error: callParserFunction: function "#coordinates" was not found.
dE<=-360 dms
Lua error: callParserFunction: function "#coordinates" was not found.
mS>=60 dms
Lua error: callParserFunction: function "#coordinates" was not found.
mS<0 dms
Lua error: callParserFunction: function "#coordinates" was not found.
mW>=60 dms
Lua error: callParserFunction: function "#coordinates" was not found.
mW<0 dms
Lua error: callParserFunction: function "#coordinates" was not found.
sS>=60 dms
Lua error: callParserFunction: function "#coordinates" was not found.
sS<0 dms
Lua error: callParserFunction: function "#coordinates" was not found.
sW>=60 dms
Lua error: callParserFunction: function "#coordinates" was not found.
sW<0 dms
Lua error: callParserFunction: function "#coordinates" was not found.
extra dms
Lua error: callParserFunction: function "#coordinates" was not found.

Errors

  1. Lua error: callParserFunction: function "#coordinates" was not found.
  2. Lua error: callParserFunction: function "#coordinates" was not found.
  3. Lua error: callParserFunction: function "#coordinates" was not found.
  4. Lua error: callParserFunction: function "#coordinates" was not found.
  5. Lua error: callParserFunction: function "#coordinates" was not found.
  6. Lua error: callParserFunction: function "#coordinates" was not found.
  7. Lua error: callParserFunction: function "#coordinates" was not found.
  8. Lua error: callParserFunction: function "#coordinates" was not found.
  9. Lua error: callParserFunction: function "#coordinates" was not found.
  10. Lua error: callParserFunction: function "#coordinates" was not found.

Blank parameters

DM blank M
Lua error: callParserFunction: function "#coordinates" was not found.
DMS blank S
Lua error: callParserFunction: function "#coordinates" was not found.
DMS blank M and S
Lua error: callParserFunction: function "#coordinates" was not found.
display=
Lua error: callParserFunction: function "#coordinates" was not found.
extra blanks
Lua error: callParserFunction: function "#coordinates" was not found.

Extreme values

  • Lua error: callParserFunction: function "#coordinates" was not found.
  • Lua error: callParserFunction: function "#coordinates" was not found.
  • Lua error: callParserFunction: function "#coordinates" was not found.
  • Lua error: callParserFunction: function "#coordinates" was not found.
  • Lua error: callParserFunction: function "#coordinates" was not found.
  • Lua error: callParserFunction: function "#coordinates" was not found.

Airy (Martian crater)

  • Lua error: callParserFunction: function "#coordinates" was not found.
  • Lua error: callParserFunction: function "#coordinates" was not found.
  • Lua error: callParserFunction: function "#coordinates" was not found.

North and south poles

  • Lua error: callParserFunction: function "#coordinates" was not found.
  • Lua error: callParserFunction: function "#coordinates" was not found.
  • Lua error: callParserFunction: function "#coordinates" was not found.
  • Lua error: callParserFunction: function "#coordinates" was not found.
  • Lua error: callParserFunction: function "#coordinates" was not found.
  • Lua error: callParserFunction: function "#coordinates" was not found.
  • Lua error: callParserFunction: function "#coordinates" was not found.
  • Lua error: callParserFunction: function "#coordinates" was not found.

Documented type values

  • country: Lua error: callParserFunction: function "#coordinates" was not found.
  • satellite: Lua error: callParserFunction: function "#coordinates" was not found.
  • adm1st: Lua error: callParserFunction: function "#coordinates" was not found.
  • adm2nd: Lua error: callParserFunction: function "#coordinates" was not found.
  • adm3rd: Lua error: callParserFunction: function "#coordinates" was not found.
  • city: Lua error: callParserFunction: function "#coordinates" was not found.
  • city (9999): Lua error: callParserFunction: function "#coordinates" was not found.
  • city (10000): Lua error: callParserFunction: function "#coordinates" was not found.
  • city (99999): Lua error: callParserFunction: function "#coordinates" was not found.
  • city (100000): Lua error: callParserFunction: function "#coordinates" was not found.
  • city (1000000): Lua error: callParserFunction: function "#coordinates" was not found.
  • airport: Lua error: callParserFunction: function "#coordinates" was not found.
  • mountain: Lua error: callParserFunction: function "#coordinates" was not found.
  • isle: Lua error: callParserFunction: function "#coordinates" was not found.
  • waterbody: Lua error: callParserFunction: function "#coordinates" was not found.
  • forest: Lua error: callParserFunction: function "#coordinates" was not found.
  • river: Lua error: callParserFunction: function "#coordinates" was not found.
  • glacier: Lua error: callParserFunction: function "#coordinates" was not found.
  • event: Lua error: callParserFunction: function "#coordinates" was not found.
  • edu: Lua error: callParserFunction: function "#coordinates" was not found.
  • pass: Lua error: callParserFunction: function "#coordinates" was not found.
  • railwaystation: Lua error: callParserFunction: function "#coordinates" was not found.
  • landmark: Lua error: callParserFunction: function "#coordinates" was not found.

globe values

supported

  • mercury: Lua error: callParserFunction: function "#coordinates" was not found.
  • venus: Lua error: callParserFunction: function "#coordinates" was not found.
  • earth: Lua error: callParserFunction: function "#coordinates" was not found.
  • moon: Lua error: callParserFunction: function "#coordinates" was not found.
  • mars: Lua error: callParserFunction: function "#coordinates" was not found.
  • phobos: Lua error: callParserFunction: function "#coordinates" was not found.
  • deimos: Lua error: callParserFunction: function "#coordinates" was not found.
  • ceres: Lua error: callParserFunction: function "#coordinates" was not found.
  • vesta: Lua error: callParserFunction: function "#coordinates" was not found.
  • Jupiter
  • ganymede: Lua error: callParserFunction: function "#coordinates" was not found.
  • callisto: Lua error: callParserFunction: function "#coordinates" was not found.
  • io: Lua error: callParserFunction: function "#coordinates" was not found.
  • europa: Lua error: callParserFunction: function "#coordinates" was not found.
  • Saturn
  • mimas: Lua error: callParserFunction: function "#coordinates" was not found.
  • enceladus: Lua error: callParserFunction: function "#coordinates" was not found.
  • tethys: Lua error: callParserFunction: function "#coordinates" was not found.
  • dione: Lua error: callParserFunction: function "#coordinates" was not found.
  • rhea: Lua error: callParserFunction: function "#coordinates" was not found.
  • titan: Lua error: callParserFunction: function "#coordinates" was not found.
  • hyperion: Lua error: callParserFunction: function "#coordinates" was not found.
  • iapetus: Lua error: callParserFunction: function "#coordinates" was not found.
  • phoebe: Lua error: callParserFunction: function "#coordinates" was not found.
  • Uranus
  • miranda: Lua error: callParserFunction: function "#coordinates" was not found.
  • ariel: Lua error: callParserFunction: function "#coordinates" was not found.
  • umbriel: Lua error: callParserFunction: function "#coordinates" was not found.
  • titania: Lua error: callParserFunction: function "#coordinates" was not found.
  • oberon: Lua error: callParserFunction: function "#coordinates" was not found.
  • Neptune
  • triton: Lua error: callParserFunction: function "#coordinates" was not found.
  • pluto: Lua error: callParserFunction: function "#coordinates" was not found.

questionable

  • Moon: Lua error: callParserFunction: function "#coordinates" was not found.
  • MOON: Lua error: callParserFunction: function "#coordinates" was not found.

currently unsupported

sun: Lua error: callParserFunction: function "#coordinates" was not found.

  • terra: Lua error: callParserFunction: function "#coordinates" was not found.
  • luna: Lua error: callParserFunction: function "#coordinates" was not found.
  • ida: Lua error: callParserFunction: function "#coordinates" was not found.
  • gaspra: Lua error: callParserFunction: function "#coordinates" was not found.
  • eros: Lua error: callParserFunction: function "#coordinates" was not found.
  • golevka: Lua error: callParserFunction: function "#coordinates" was not found.
  • borrelly: Lua error: callParserFunction: function "#coordinates" was not found.
  • jupiter: Lua error: callParserFunction: function "#coordinates" was not found.
  • metis Lua error: callParserFunction: function "#coordinates" was not found.
  • adrastea Lua error: callParserFunction: function "#coordinates" was not found.
  • amalthea Lua error: callParserFunction: function "#coordinates" was not found.
  • thebe Lua error: callParserFunction: function "#coordinates" was not found.
  • saturn: Lua error: callParserFunction: function "#coordinates" was not found.
  • pan Lua error: callParserFunction: function "#coordinates" was not found.
  • atlas Lua error: callParserFunction: function "#coordinates" was not found.
  • prometheus Lua error: callParserFunction: function "#coordinates" was not found.
  • pandora Lua error: callParserFunction: function "#coordinates" was not found.
  • epimetheus Lua error: callParserFunction: function "#coordinates" was not found.
  • janus Lua error: callParserFunction: function "#coordinates" was not found.
  • telesto Lua error: callParserFunction: function "#coordinates" was not found.
  • calypso Lua error: callParserFunction: function "#coordinates" was not found.
  • helene Lua error: callParserFunction: function "#coordinates" was not found.
  • uranus: Lua error: callParserFunction: function "#coordinates" was not found.
  • cordelia: Lua error: callParserFunction: function "#coordinates" was not found.
  • ophelia: Lua error: callParserFunction: function "#coordinates" was not found.
  • bianca: Lua error: callParserFunction: function "#coordinates" was not found.
  • cressida: Lua error: callParserFunction: function "#coordinates" was not found.
  • desdemona: Lua error: callParserFunction: function "#coordinates" was not found.
  • juliet: Lua error: callParserFunction: function "#coordinates" was not found.
  • portia: Lua error: callParserFunction: function "#coordinates" was not found.
  • rosalind: Lua error: callParserFunction: function "#coordinates" was not found.
  • belinda: Lua error: callParserFunction: function "#coordinates" was not found.
  • puck: Lua error: callParserFunction: function "#coordinates" was not found.
  • neptune: Lua error: callParserFunction: function "#coordinates" was not found.
  • naiad: Lua error: callParserFunction: function "#coordinates" was not found.
  • thalassa: Lua error: callParserFunction: function "#coordinates" was not found.
  • despina: Lua error: callParserFunction: function "#coordinates" was not found.
  • galatea: Lua error: callParserFunction: function "#coordinates" was not found.
  • larissa: Lua error: callParserFunction: function "#coordinates" was not found.
  • proteus: Lua error: callParserFunction: function "#coordinates" was not found.
  • Pluto
  • charon: Lua error: callParserFunction: function "#coordinates" was not found.

Examples from Template:Coord/doc

  • Lua error: callParserFunction: function "#coordinates" was not found.
  • Lua error: callParserFunction: function "#coordinates" was not found.
  • Lua error: callParserFunction: function "#coordinates" was not found.
  • Lua error: callParserFunction: function "#coordinates" was not found.
  • Lua error: callParserFunction: function "#coordinates" was not found.
  • Lua error: callParserFunction: function "#coordinates" was not found.
  • Lua error: callParserFunction: function "#coordinates" was not found.
  • Lua error: callParserFunction: function "#coordinates" was not found.
  • Lua error: callParserFunction: function "#coordinates" was not found.
  • Lua error: callParserFunction: function "#coordinates" was not found.
  • Lua error: callParserFunction: function "#coordinates" was not found.
  • Lua error: callParserFunction: function "#coordinates" was not found.
  • Lua error: callParserFunction: function "#coordinates" was not found.
  • Lua error: callParserFunction: function "#coordinates" was not found.
  • Lua error: callParserFunction: function "#coordinates" was not found.
  • Lua error: callParserFunction: function "#coordinates" was not found.
  • Lua error: callParserFunction: function "#coordinates" was not found.
  • Lua error: callParserFunction: function "#coordinates" was not found.
  • Lua error: callParserFunction: function "#coordinates" was not found.
  • Lua error: callParserFunction: function "#coordinates" was not found.
  • Lua error: callParserFunction: function "#coordinates" was not found.
  • Lua error: callParserFunction: function "#coordinates" was not found.
  • Lua error: callParserFunction: function "#coordinates" was not found.
  • Lua error: callParserFunction: function "#coordinates" was not found.
  • Lua error: callParserFunction: function "#coordinates" was not found.
  • Lua error: callParserFunction: function "#coordinates" was not found.
  • Lua error: callParserFunction: function "#coordinates" was not found.
  • Lua error: callParserFunction: function "#coordinates" was not found.
  • Lua error: callParserFunction: function "#coordinates" was not found.
  • Lua error: callParserFunction: function "#coordinates" was not found.
  • Lua error: callParserFunction: function "#coordinates" was not found.
  • Lua error: callParserFunction: function "#coordinates" was not found.
  • Lua error: callParserFunction: function "#coordinates" was not found.
  • Lua error: callParserFunction: function "#coordinates" was not found.
  • Lua error: callParserFunction: function "#coordinates" was not found.
  • Lua error: callParserFunction: function "#coordinates" was not found.
  • Lua error: callParserFunction: function "#coordinates" was not found.
  • Lua error: callParserFunction: function "#coordinates" was not found.
  • Lua error: callParserFunction: function "#coordinates" was not found.
  • Lua error: callParserFunction: function "#coordinates" was not found.
  • Lua error: callParserFunction: function "#coordinates" was not found.
  • Lua error: callParserFunction: function "#coordinates" was not found.
  • Lua error: callParserFunction: function "#coordinates" was not found.
  • Lua error: callParserFunction: function "#coordinates" was not found.

Don't invoke #coordinates

<maplink latitude="10" longitude="20" text="10°N 20°E" zoom="14">[ { "type": "Feature", "geometry": { "type": "Point", "coordinates": [ 20, 10 ] }, "properties": { "title": "Coord/testcases", "marker-symbol": "circle", "marker-color": "#3366cc" }

   } ]</maplink>

Tests of subroutines

  • Testing decimal to dms conversion: {{Coord/dec2dms/testcases}}
  • Infobox country, capital add city to coordinates: Lua error: callParserFunction: function "#coordinates" was not found.

Tests of qid

  • Lua error: callParserFunction: function "#coordinates" was not found. no params, should error
  • Lua error: callParserFunction: function "#coordinates" was not found. no params, but is the primary version of the coordinates. should lookup QID of current page
  • Lua error: callParserFunction: function "#coordinates" was not found. no params, but name provided. should lookup QID of name
  • Lua error: callParserFunction: function "#coordinates" was not found. Only QID
  • Lua error: callParserFunction: function "#coordinates" was not found. coordinate with QID (gets shape)
  • Lua error: callParserFunction: function "#coordinates" was not found. coordinate with name, should find shape via qid lookup