Template:Maplink/testcases

From blackwiki
Jump to navigation Jump to search

Maplink tag

Simple geoline
{{Maplink|id=Q2108|type=line}}

{{Maplink}}

<maplink text="Map">{"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"},"type":"ExternalData","service":"geoline","ids":"Q2108"}</maplink>

{{Maplink/sandbox}}

<maplink text="Map">{"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"},"type":"ExternalData","service":"geoline","ids":"Q2108"}</maplink>

Simple geoshape
{{Maplink|id=Q797|type=shape}}

{{Maplink}}

<maplink text="Map">{"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"},"type":"ExternalData","service":"geoshape","ids":"Q797"}</maplink>

{{Maplink/sandbox}}

<maplink text="Map">{"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"},"type":"ExternalData","service":"geoshape","ids":"Q797"}</maplink>

Simple geomask
{{Maplink|id=Q797|type=shape-inverse}}

{{Maplink}}

<maplink text="Map">{"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"},"type":"ExternalData","service":"geomask","ids":"Q797"}</maplink>

{{Maplink/sandbox}}

<maplink text="Map">{"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"},"type":"ExternalData","service":"geomask","ids":"Q797"}</maplink>

Simple Data: page
{{Maplink||from=Sandbox/Evad37/St Georges Terrace.map|type=data}}

{{Maplink}}

<maplink text="Map">{"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"},"type":"ExternalData","title":"Sandbox/Evad37/St Georges Terrace.map","service":"page"}</maplink>

{{Maplink/sandbox}}

<maplink text="Map">{"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"},"type":"ExternalData","title":"Sandbox/Evad37/St Georges Terrace.map","service":"page"}</maplink>

title display
{{Maplink|display=title|id=Q2108|type=line}}

{{Maplink}}

<maplink text="Map">{"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"},"type":"ExternalData","service":"geoline","ids":"Q2108"}</maplink>

{{Maplink/sandbox}}

<maplink text="Map">{"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"},"type":"ExternalData","service":"geoline","ids":"Q2108"}</maplink>

Simple point (supplied coordinates)
{{Maplink|type=point|coord={{coord|-15.4|17.2}}}}

{{Maplink}}

Lua error in Module:Mapframe at line 314: attempt to perform arithmetic on local 'lat_d' (a nil value).

{{Maplink/sandbox}}

Lua error in Module:Mapframe/sandbox at line 314: attempt to perform arithmetic on local 'lat_d' (a nil value).

Simple point (Wikidata coordinates)
{{Maplink|id=Q797|type=point}}

{{Maplink}}

Lua error in Module:Mapframe at line 339: attempt to index field 'wikibase' (a nil value).

{{Maplink/sandbox}}

Lua error in Module:Mapframe/sandbox at line 339: attempt to index field 'wikibase' (a nil value).

Simple circle (supplied coordinates)
{{Maplink|type=circle|radius=1000|coord={{coord|-31.95|115.85}}}}

{{Maplink}}

Lua error in Module:Mapframe at line 314: attempt to perform arithmetic on local 'lat_d' (a nil value).

{{Maplink/sandbox}}

Lua error in Module:Mapframe/sandbox at line 314: attempt to perform arithmetic on local 'lat_d' (a nil value).

Simple circle (wikidata coordinates)
{{Maplink|id=Q60|radius=5000|type=circle}}

{{Maplink}}

Lua error in Module:Mapframe at line 339: attempt to index field 'wikibase' (a nil value).

{{Maplink/sandbox}}

Lua error in Module:Mapframe/sandbox at line 339: attempt to index field 'wikibase' (a nil value).

Mapframe tag

Simple geoline
{{Maplink|frame=yes|id=Q2108|type=line}}

{{Maplink}}

<mapframe height="200" text="Map" width="300">{"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"},"type":"ExternalData","service":"geoline","ids":"Q2108"}</mapframe>

{{Maplink/sandbox}}

<mapframe height="200" text="Map" width="300">{"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"},"type":"ExternalData","service":"geoline","ids":"Q2108"}</mapframe>

Simple geoline with coordinates on Wikidata
{{Maplink|frame=yes|id=Q515443|type=line}}

{{Maplink}}

<mapframe height="200" text="Map" width="300">{"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"},"type":"ExternalData","service":"geoline","ids":"Q515443"}</mapframe>

{{Maplink/sandbox}}

<mapframe height="200" text="Map" width="300">{"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"},"type":"ExternalData","service":"geoline","ids":"Q515443"}</mapframe>

Frame latitude & longitude (simple geoline)
{{Maplink|frame=yes|frame-lat=42.4934|frame-long=-82.9166|id=Q2108|type=line|zoom=8}}

{{Maplink}}

<mapframe zoom="8" text="Map" height="200" latitude="42.4934" longitude="-82.9166" width="300">{"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"},"type":"ExternalData","service":"geoline","ids":"Q2108"}</mapframe>

{{Maplink/sandbox}}

<mapframe zoom="8" text="Map" height="200" latitude="42.4934" longitude="-82.9166" width="300">{"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"},"type":"ExternalData","service":"geoline","ids":"Q2108"}</mapframe>

Frame latitude & longitude within {{Coord}} template (simple geoline)
{{Maplink|frame=yes|frame-coordinates={{Coord|41.9|N|82.7|W}}|zoom=7|type=line|id=Q2108}}

{{Maplink}}

Lua error in Module:Mapframe at line 314: attempt to perform arithmetic on local 'lat_d' (a nil value).

{{Maplink/sandbox}}

Lua error in Module:Mapframe/sandbox at line 314: attempt to perform arithmetic on local 'lat_d' (a nil value).

Frameless (simple geoline)
{{Maplink|frame=yes|frame-lat=42.4934|frame-long=-82.9166|id=Q2108|plain=yes|type=line|zoom=8}}

{{Maplink}}

<mapframe zoom="8" frameless="1" height="200" latitude="42.4934" longitude="-82.9166" width="300">{"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"},"type":"ExternalData","service":"geoline","ids":"Q2108"}</mapframe>

{{Maplink/sandbox}}

<mapframe zoom="8" frameless="1" height="200" latitude="42.4934" longitude="-82.9166" width="300">{"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"},"type":"ExternalData","service":"geoline","ids":"Q2108"}</mapframe>

Simple geoshape
{{Maplink|frame=yes|id=Q797|type=shape}}

{{Maplink}}

<mapframe height="200" text="Map" width="300">{"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"},"type":"ExternalData","service":"geoshape","ids":"Q797"}</mapframe>

{{Maplink/sandbox}}

<mapframe height="200" text="Map" width="300">{"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"},"type":"ExternalData","service":"geoshape","ids":"Q797"}</mapframe>

Simple geomask
{{Maplink|frame=yes|id=Q797|type=shape-inverse}}

{{Maplink}}

<mapframe height="200" text="Map" width="300">{"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"},"type":"ExternalData","service":"geomask","ids":"Q797"}</mapframe>

{{Maplink/sandbox}}

<mapframe height="200" text="Map" width="300">{"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"},"type":"ExternalData","service":"geomask","ids":"Q797"}</mapframe>

Simple Data: page
{{Maplink||frame=yes|from=Sandbox/Evad37/St Georges Terrace.map|type=data}}

{{Maplink}}

Lua error in Module:Mapframe at line 695: attempt to index field 'wikibase' (a nil value).

{{Maplink/sandbox}}

Lua error in Module:Mapframe/sandbox at line 695: attempt to index field 'wikibase' (a nil value).

Raw data
{{Maplink||frame=yes|type=data|raw={{Wikipedia:Map data/Wikipedia KML/Interstate 45}}}}

{{Maplink}}

<mapframe height="200" text="Map" width="300">{{Wikipedia:Map data/Wikipedia KML/Interstate 45}}</mapframe>

{{Maplink/sandbox}}

<mapframe height="200" text="Map" width="300">{{Wikipedia:Map data/Wikipedia KML/Interstate 45}}</mapframe>

Simple point (supplied coordinates, |lat|long )
{{Maplink|frame=yes|type=point|coord={{coord|-15.4|17.2}}}}

{{Maplink}}

Lua error in Module:Mapframe at line 314: attempt to perform arithmetic on local 'lat_d' (a nil value).

{{Maplink/sandbox}}

Lua error in Module:Mapframe/sandbox at line 314: attempt to perform arithmetic on local 'lat_d' (a nil value).

Simple point (supplied coordinates, |lat|S|long|E )
{{Maplink|frame=yes|type=point|coord={{coord|15.4|S|17.2|E}}}}

{{Maplink}}

Lua error in Module:Mapframe at line 314: attempt to perform arithmetic on local 'lat_d' (a nil value).

{{Maplink/sandbox}}

Lua error in Module:Mapframe/sandbox at line 314: attempt to perform arithmetic on local 'lat_d' (a nil value).

Simple point (supplied coordinates, |lat_d|lat_m|S|long_d|long_m|E )
{{Maplink|frame=yes|type=point|coord={{coord|15|24|S|17|12|E}}}}

{{Maplink}}

Lua error in Module:Mapframe at line 314: attempt to perform arithmetic on local 'lat_d' (a nil value).

{{Maplink/sandbox}}

Lua error in Module:Mapframe/sandbox at line 314: attempt to perform arithmetic on local 'lat_d' (a nil value).

Simple point (supplied coordinates, |lat_d|lat_m|lat_s|S|long_d|long_m|long_s|E )
{{Maplink|frame=yes|type=point|coord={{coord|15|24|10|S|17|12|15|E}}}}

{{Maplink}}

Lua error in Module:Mapframe at line 314: attempt to perform arithmetic on local 'lat_d' (a nil value).

{{Maplink/sandbox}}

Lua error in Module:Mapframe/sandbox at line 314: attempt to perform arithmetic on local 'lat_d' (a nil value).

Simple point (Wikidata coordinates)
{{Maplink|frame=yes|id=Q797|type=point}}

{{Maplink}}

Lua error in Module:Mapframe at line 339: attempt to index field 'wikibase' (a nil value).

{{Maplink/sandbox}}

Lua error in Module:Mapframe/sandbox at line 339: attempt to index field 'wikibase' (a nil value).

Point from Wikidata, but with novalue set on item (error expected)
{{Maplink|frame=yes|id=Q2327957|type=point}}

{{Maplink}}

Lua error in Module:Mapframe at line 339: attempt to index field 'wikibase' (a nil value).

{{Maplink/sandbox}}

Lua error in Module:Mapframe/sandbox at line 339: attempt to index field 'wikibase' (a nil value).

Simple circle (supplied coordinates)
{{Maplink|frame=yes|type=circle|radius=1000|coord={{coord|-31.95|115.85}}}}

{{Maplink}}

Lua error in Module:Mapframe at line 314: attempt to perform arithmetic on local 'lat_d' (a nil value).

{{Maplink/sandbox}}

Lua error in Module:Mapframe/sandbox at line 314: attempt to perform arithmetic on local 'lat_d' (a nil value).

Simple circle (wikidata coordinates)
{{Maplink|frame=yes|id=Q60|radius=5000|type=circle}}

{{Maplink}}

Lua error in Module:Mapframe at line 339: attempt to index field 'wikibase' (a nil value).

{{Maplink/sandbox}}

Lua error in Module:Mapframe/sandbox at line 339: attempt to index field 'wikibase' (a nil value).

Multiple features

Maplink

2 lines
{{Maplink|id=Q1318331|id2=Q1544264|type=line|type2=line}}

{{Maplink}}

<maplink text="Map">[ {"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"},"type":"ExternalData","service":"geoline","ids":"Q1318331"}, {"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"},"type":"ExternalData","service":"geoline","ids":"Q1544264"} ]</maplink>

{{Maplink/sandbox}}

<maplink text="Map">[ {"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"},"type":"ExternalData","service":"geoline","ids":"Q1318331"}, {"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"},"type":"ExternalData","service":"geoline","ids":"Q1544264"} ]</maplink>

2 shapes
{{Maplink|id=Q100|id2=Q1384|type=shape|type2=shape}}

{{Maplink}}

<maplink text="Map">[ {"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"},"type":"ExternalData","service":"geoshape","ids":"Q100"}, {"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"},"type":"ExternalData","service":"geoshape","ids":"Q1384"} ]</maplink>

{{Maplink/sandbox}}

<maplink text="Map">[ {"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"},"type":"ExternalData","service":"geoshape","ids":"Q100"}, {"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"},"type":"ExternalData","service":"geoshape","ids":"Q1384"} ]</maplink>

2 .map pages
{{Maplink|from=MAX Light Rail (Perth).map|from2=Sandbox/Evad37/St Georges Terrace.map|type=data|type2=data}}

{{Maplink}}

<maplink text="Map">[ {"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"},"type":"ExternalData","title":"MAX Light Rail (Perth).map","service":"page"}, {"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"},"type":"ExternalData","title":"Sandbox/Evad37/St Georges Terrace.map","service":"page"} ]</maplink>

{{Maplink/sandbox}}

<maplink text="Map">[ {"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"},"type":"ExternalData","title":"MAX Light Rail (Perth).map","service":"page"}, {"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"},"type":"ExternalData","title":"Sandbox/Evad37/St Georges Terrace.map","service":"page"} ]</maplink>

2 points (manually specified)
{{Maplink|type=point|coord={{coord|32|S|116|E}}|type2=point|coord2={{coord|31.8|S|115.8|E}}}}

{{Maplink}}

Lua error in Module:Mapframe at line 314: attempt to perform arithmetic on local 'lat_d' (a nil value).

{{Maplink/sandbox}}

Lua error in Module:Mapframe/sandbox at line 314: attempt to perform arithmetic on local 'lat_d' (a nil value).

Line + point
{{Maplink|id=Q1318331|type=line|type2=point|coord2={{coord|32|S|116|E}}}}

{{Maplink}}

Lua error in Module:Mapframe at line 314: attempt to perform arithmetic on local 'lat_d' (a nil value).

{{Maplink/sandbox}}

Lua error in Module:Mapframe/sandbox at line 314: attempt to perform arithmetic on local 'lat_d' (a nil value).

Shape + point
{{Maplink|type=shape|id=Q3495894|type2=point|coord2={{coord|32|S|116|E}}}}

{{Maplink}}

Lua error in Module:Mapframe at line 314: attempt to perform arithmetic on local 'lat_d' (a nil value).

{{Maplink/sandbox}}

Lua error in Module:Mapframe/sandbox at line 314: attempt to perform arithmetic on local 'lat_d' (a nil value).

Shape + line
{{Maplink|id=Q3495894|id2=Q1318331|type=shape|type2=line}}

{{Maplink}}

<maplink text="Map">[ {"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"},"type":"ExternalData","service":"geoshape","ids":"Q3495894"}, {"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"},"type":"ExternalData","service":"geoline","ids":"Q1318331"} ]</maplink>

{{Maplink/sandbox}}

<maplink text="Map">[ {"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"},"type":"ExternalData","service":"geoshape","ids":"Q3495894"}, {"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"},"type":"ExternalData","service":"geoline","ids":"Q1318331"} ]</maplink>

Shape + line + point
{{Maplink|type=shape|id=Q3495894|type2=line|id2=Q1318331|type3=point|coord3={{coord|32|S|116|E}}}}

{{Maplink}}

Lua error in Module:Mapframe at line 314: attempt to perform arithmetic on local 'lat_d' (a nil value).

{{Maplink/sandbox}}

Lua error in Module:Mapframe/sandbox at line 314: attempt to perform arithmetic on local 'lat_d' (a nil value).

Circle + point
{{Maplink||type=circle|coord={{coord|32|S|116|E}}|type2=point|coord2={{coord|32|S|116|E}}}}

{{Maplink}}

Lua error in Module:Mapframe at line 314: attempt to perform arithmetic on local 'lat_d' (a nil value).

{{Maplink/sandbox}}

Lua error in Module:Mapframe/sandbox at line 314: attempt to perform arithmetic on local 'lat_d' (a nil value).

Circle + line
{{Maplink|id=Q3495894|id2=Q1318331|radius=2000|type=circle|type2=line}}

{{Maplink}}

Lua error in Module:Mapframe at line 339: attempt to index field 'wikibase' (a nil value).

{{Maplink/sandbox}}

Lua error in Module:Mapframe/sandbox at line 339: attempt to index field 'wikibase' (a nil value).

Line + Shape-inverse + point
{{Maplink|type=line|id=Q1318331|type2=shape-inverse|id2=Q3495894|type3=point|coord3={{coord|32|S|116|E}}}}

{{Maplink}}

Lua error in Module:Mapframe at line 314: attempt to perform arithmetic on local 'lat_d' (a nil value).

{{Maplink/sandbox}}

Lua error in Module:Mapframe/sandbox at line 314: attempt to perform arithmetic on local 'lat_d' (a nil value).

Mapframe tag

2 lines
{{Maplink|frame=yes|id=Q1318331|id2=Q1544264|type=line|type2=line}}

{{Maplink}}

<mapframe height="200" text="Map" width="300">[ {"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"},"type":"ExternalData","service":"geoline","ids":"Q1318331"}, {"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"},"type":"ExternalData","service":"geoline","ids":"Q1544264"} ]</mapframe>

{{Maplink/sandbox}}

<mapframe height="200" text="Map" width="300">[ {"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"},"type":"ExternalData","service":"geoline","ids":"Q1318331"}, {"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"},"type":"ExternalData","service":"geoline","ids":"Q1544264"} ]</mapframe>

2 shapes
{{Maplink|frame=yes|id=Q100|id2=Q1384|type=shape|type2=shape}}

{{Maplink}}

<mapframe height="200" text="Map" width="300">[ {"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"},"type":"ExternalData","service":"geoshape","ids":"Q100"}, {"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"},"type":"ExternalData","service":"geoshape","ids":"Q1384"} ]</mapframe>

{{Maplink/sandbox}}

<mapframe height="200" text="Map" width="300">[ {"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"},"type":"ExternalData","service":"geoshape","ids":"Q100"}, {"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"},"type":"ExternalData","service":"geoshape","ids":"Q1384"} ]</mapframe>

2 .map pages
{{Maplink|frame=yes|from=MAX Light Rail (Perth).map|from2=Sandbox/Evad37/St Georges Terrace.map|type=data|type2=data}}

{{Maplink}}

Lua error in Module:Mapframe at line 695: attempt to index field 'wikibase' (a nil value).

{{Maplink/sandbox}}

Lua error in Module:Mapframe/sandbox at line 695: attempt to index field 'wikibase' (a nil value).

2 points (manually specified)
{{Maplink|frame=yes|type=point|coord={{coord|32|S|116|E}}|type2=point|coord2={{coord|31.8|S|115.8|E}}}}

{{Maplink}}

Lua error in Module:Mapframe at line 314: attempt to perform arithmetic on local 'lat_d' (a nil value).

{{Maplink/sandbox}}

Lua error in Module:Mapframe/sandbox at line 314: attempt to perform arithmetic on local 'lat_d' (a nil value).

Line + point
{{Maplink|frame=yes|id=Q1318331|type=line|type2=point|coord2={{coord|32|S|116|E}}}}

{{Maplink}}

Lua error in Module:Mapframe at line 314: attempt to perform arithmetic on local 'lat_d' (a nil value).

{{Maplink/sandbox}}

Lua error in Module:Mapframe/sandbox at line 314: attempt to perform arithmetic on local 'lat_d' (a nil value).

Shape + point
{{Maplink|frame=yes|type=shape|id=Q3495894|type2=point|coord2={{coord|32|S|116|E}}}}

{{Maplink}}

Lua error in Module:Mapframe at line 314: attempt to perform arithmetic on local 'lat_d' (a nil value).

{{Maplink/sandbox}}

Lua error in Module:Mapframe/sandbox at line 314: attempt to perform arithmetic on local 'lat_d' (a nil value).

Shape + line
{{Maplink|frame=yes|id=Q3495894|id2=Q1318331|type=shape|type2=line}}

{{Maplink}}

<mapframe height="200" text="Map" width="300">[ {"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"},"type":"ExternalData","service":"geoshape","ids":"Q3495894"}, {"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"},"type":"ExternalData","service":"geoline","ids":"Q1318331"} ]</mapframe>

{{Maplink/sandbox}}

<mapframe height="200" text="Map" width="300">[ {"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"},"type":"ExternalData","service":"geoshape","ids":"Q3495894"}, {"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"},"type":"ExternalData","service":"geoline","ids":"Q1318331"} ]</mapframe>

Shape + line + point
{{Maplink|frame=yes|type=shape|id=Q3495894|type2=line|id2=Q1318331|type3=point|coord3={{coord|32|S|116|E}}}}

{{Maplink}}

Lua error in Module:Mapframe at line 314: attempt to perform arithmetic on local 'lat_d' (a nil value).

{{Maplink/sandbox}}

Lua error in Module:Mapframe/sandbox at line 314: attempt to perform arithmetic on local 'lat_d' (a nil value).

Point within a shape, with various optional/style parameters
{{Maplink|frame=yes|frame-height=280|frame-lat=29.185|frame-long=76.225|frame-width=250|id=Q1174|id2=Q200663|plain=yes|stroke-width=3|title2=Faridabad|type=shape-inverse|type2=point|zoom=7}}

{{Maplink}}

Lua error in Module:Mapframe at line 339: attempt to index field 'wikibase' (a nil value).

{{Maplink/sandbox}}

Lua error in Module:Mapframe/sandbox at line 339: attempt to index field 'wikibase' (a nil value).

Line + Shape-inverse + point
{{Maplink|frame=yes|type=line|id=Q1318331|type2=shape-inverse|id2=Q3495894|type3=point|coord3={{coord|32|S|116|E}}}}

{{Maplink}}

Lua error in Module:Mapframe at line 314: attempt to perform arithmetic on local 'lat_d' (a nil value).

{{Maplink/sandbox}}

Lua error in Module:Mapframe/sandbox at line 314: attempt to perform arithmetic on local 'lat_d' (a nil value).

Styles

Stroke width and stroke colour for line
{{Maplink|frame=yes|id=Q100|stroke-color=#008888|stroke-width=3|type=line|zoom=9}}

{{Maplink}}

<mapframe height="200" zoom="9" text="Map" width="300">{"properties":{"stroke-width":3,"stroke":"#008888","title":"Maplink/testcases"},"type":"ExternalData","service":"geoline","ids":"Q100"}</mapframe>

{{Maplink/sandbox}}

<mapframe height="200" zoom="9" text="Map" width="300">{"properties":{"stroke-width":3,"stroke":"#008888","title":"Maplink/testcases"},"type":"ExternalData","service":"geoline","ids":"Q100"}</mapframe>

Stroke width, stroke colour, and fill colour for shape
{{Maplink|fill=#00ff00|frame=yes|id=Q100|stroke-color=#008888|stroke-width=3|type=shape|zoom=9}}

{{Maplink}}

<mapframe height="200" zoom="9" text="Map" width="300">{"properties":{"stroke-width":3,"stroke":"#008888","title":"Maplink/testcases","fill":"#00ff00"},"type":"ExternalData","service":"geoshape","ids":"Q100"}</mapframe>

{{Maplink/sandbox}}

<mapframe height="200" zoom="9" text="Map" width="300">{"properties":{"stroke-width":3,"stroke":"#008888","title":"Maplink/testcases","fill":"#00ff00"},"type":"ExternalData","service":"geoshape","ids":"Q100"}</mapframe>

Stroke width, stroke colour, and fill colour for shape-inverse
{{Maplink|fill=#888888|frame=yes|id=Q100|stroke-color=#00ffff|stroke-width=3|type=shape-inverse|zoom=9}}

{{Maplink}}

<mapframe height="200" zoom="9" text="Map" width="300">{"properties":{"stroke-width":3,"stroke":"#00ffff","title":"Maplink/testcases","fill":"#888888"},"type":"ExternalData","service":"geomask","ids":"Q100"}</mapframe>

{{Maplink/sandbox}}

<mapframe height="200" zoom="9" text="Map" width="300">{"properties":{"stroke-width":3,"stroke":"#00ffff","title":"Maplink/testcases","fill":"#888888"},"type":"ExternalData","service":"geomask","ids":"Q100"}</mapframe>

Marker symbol and colour for point
{{Maplink|frame=yes|id=Q100|marker=star|marker-color=#888800|type=point|zoom=9}}

{{Maplink}}

Lua error in Module:Mapframe at line 339: attempt to index field 'wikibase' (a nil value).

{{Maplink/sandbox}}

Lua error in Module:Mapframe/sandbox at line 339: attempt to index field 'wikibase' (a nil value).

Stroke-opacity and fill-opacity for shape
{{Maplink|fill=#00ff00|fill-opacity=0.4|frame=yes|id=Q100|stroke-color=#008888|stroke-opacity=0.4|stroke-width=3|type=shape|zoom=9}}

{{Maplink}}

<mapframe height="200" zoom="9" text="Map" width="300">{"properties":{"title":"Maplink/testcases","fill-opacity":0.4,"stroke-opacity":0.4,"stroke":"#008888","stroke-width":3,"fill":"#00ff00"},"type":"ExternalData","service":"geoshape","ids":"Q100"}</mapframe>

{{Maplink/sandbox}}

<mapframe height="200" zoom="9" text="Map" width="300">{"properties":{"title":"Maplink/testcases","fill-opacity":0.4,"stroke-opacity":0.4,"stroke":"#008888","stroke-width":3,"fill":"#00ff00"},"type":"ExternalData","service":"geoshape","ids":"Q100"}</mapframe>

Stroke-opacity and fill-opacity for shape-inverse
{{Maplink|fill=#00ff00|fill-opacity=0.4|frame=yes|id=Q100|stroke-color=#008888|stroke-opacity=0.4|stroke-width=3|type=shape-inverse|zoom=9}}

{{Maplink}}

<mapframe height="200" zoom="9" text="Map" width="300">{"properties":{"title":"Maplink/testcases","fill-opacity":0.4,"stroke-opacity":0.4,"stroke":"#008888","stroke-width":3,"fill":"#00ff00"},"type":"ExternalData","service":"geomask","ids":"Q100"}</mapframe>

{{Maplink/sandbox}}

<mapframe height="200" zoom="9" text="Map" width="300">{"properties":{"title":"Maplink/testcases","fill-opacity":0.4,"stroke-opacity":0.4,"stroke":"#008888","stroke-width":3,"fill":"#00ff00"},"type":"ExternalData","service":"geomask","ids":"Q100"}</mapframe>

Stroke width, stroke colour, and fill colour for circle
{{Maplink|fill=#00ff00|frame=yes|id=Q100|radius=10000|stroke-color=#008888|stroke-width=3|type=circle|zoom=9}}

{{Maplink}}

Lua error in Module:Mapframe at line 339: attempt to index field 'wikibase' (a nil value).

{{Maplink/sandbox}}

Lua error in Module:Mapframe/sandbox at line 339: attempt to index field 'wikibase' (a nil value).

Stroke-opacity and fill-opacity for circle
{{Maplink|fill=#00ff00|fill-opacity=0.4|frame=yes|id=Q100|radius=10000|stroke-color=#008888|stroke-opacity=0.4|stroke-width=3|type=circle|zoom=9}}

{{Maplink}}

Lua error in Module:Mapframe at line 339: attempt to index field 'wikibase' (a nil value).

{{Maplink/sandbox}}

Lua error in Module:Mapframe/sandbox at line 339: attempt to index field 'wikibase' (a nil value).

Circles

Radius in metres
{{Maplink|type=circle|radius_m=1110|coord={{coord|-31.95|115.85}}}}

{{Maplink}}

Lua error in Module:Mapframe at line 314: attempt to perform arithmetic on local 'lat_d' (a nil value).

{{Maplink/sandbox}}

Lua error in Module:Mapframe/sandbox at line 314: attempt to perform arithmetic on local 'lat_d' (a nil value).

Radius in kilometres
{{Maplink|type=circle|radius_km=10|coord={{coord|-31.95|115.85}}}}

{{Maplink}}

Lua error in Module:Mapframe at line 314: attempt to perform arithmetic on local 'lat_d' (a nil value).

{{Maplink/sandbox}}

Lua error in Module:Mapframe/sandbox at line 314: attempt to perform arithmetic on local 'lat_d' (a nil value).

Radius in miles
{{Maplink|type=circle|radius_mi=10|coord={{coord|-31.95|115.85}}}}

{{Maplink}}

Lua error in Module:Mapframe at line 314: attempt to perform arithmetic on local 'lat_d' (a nil value).

{{Maplink/sandbox}}

Lua error in Module:Mapframe/sandbox at line 314: attempt to perform arithmetic on local 'lat_d' (a nil value).

Radius in feet
{{Maplink|type=circle|radius_ft=200|coord={{coord|-31.95|115.85}}}}

{{Maplink}}

Lua error in Module:Mapframe at line 314: attempt to perform arithmetic on local 'lat_d' (a nil value).

{{Maplink/sandbox}}

Lua error in Module:Mapframe/sandbox at line 314: attempt to perform arithmetic on local 'lat_d' (a nil value).

Fewer edges
{{Maplink|type=circle|radius=1000|edges=8|coord={{coord|-31.95|115.85}}}}

{{Maplink}}

Lua error in Module:Mapframe at line 314: attempt to perform arithmetic on local 'lat_d' (a nil value).

{{Maplink/sandbox}}

Lua error in Module:Mapframe/sandbox at line 314: attempt to perform arithmetic on local 'lat_d' (a nil value).

Extra edges
{{Maplink|type=circle|radius=1000|edges=68|coord={{coord|-31.95|115.85}}}}

{{Maplink}}

Lua error in Module:Mapframe at line 314: attempt to perform arithmetic on local 'lat_d' (a nil value).

{{Maplink/sandbox}}

Lua error in Module:Mapframe/sandbox at line 314: attempt to perform arithmetic on local 'lat_d' (a nil value).

No radius specified (error expected)
{{Maplink|type=circle|radius_m=1110|coord={{coord|-31.95|115.85}}}}

{{Maplink}}

Lua error in Module:Mapframe at line 314: attempt to perform arithmetic on local 'lat_d' (a nil value).

{{Maplink/sandbox}}

Lua error in Module:Mapframe/sandbox at line 314: attempt to perform arithmetic on local 'lat_d' (a nil value).

Geomasks

Geomask with hole
{{Maplink|frame=yes|id=Q7998839|type=shape-inverse}}

{{Maplink}}

<mapframe height="200" text="Map" width="300">{"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"},"type":"ExternalData","service":"geomask","ids":"Q7998839"}</mapframe>

{{Maplink/sandbox}}

<mapframe height="200" text="Map" width="300">{"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"},"type":"ExternalData","service":"geomask","ids":"Q7998839"}</mapframe>

Geomask with holes and stroke styles
{{Maplink|frame=yes|frame-align=center|frame-height=200|frame-width=135|id=Q16567|plain=y|stroke-color=#808080|stroke-width=2|title=Columbus|type=shape-inverse|zoom=9}}

{{Maplink}}

<mapframe zoom="9" align="center" frameless="1" height="200" width="135">{"properties":{"stroke-width":2,"stroke":"#808080","title":"Columbus"},"type":"ExternalData","service":"geomask","ids":"Q16567"}</mapframe>

{{Maplink/sandbox}}

<mapframe zoom="9" align="center" frameless="1" height="200" width="135">{"properties":{"stroke-width":2,"stroke":"#808080","title":"Columbus"},"type":"ExternalData","service":"geomask","ids":"Q16567"}</mapframe>

Multi switcher

Multiple zoom levels (specifying numbers)
{{Maplink|frame=yes|id=Q100|plain=yes|switch=zoomed out; zoomed mid; zoomed in|type=point|zoom=SWITCH:5;8;11}}

{{Maplink}}

Lua error in Module:Mapframe at line 339: attempt to index field 'wikibase' (a nil value).

{{Maplink/sandbox}}

Lua error in Module:Mapframe/sandbox at line 339: attempt to index field 'wikibase' (a nil value).

Multiple geolines (shape outlines), which are auto-zoomed
{{Maplink|frame=yes|frame-align=left|id=Q100|id2=SWITCH:Q578170, Q771, Q100|plain=yes|stroke-width2=1|switch=country, state, city|type=point|type2=line}}

{{Maplink}}

Lua error in Module:Mapframe at line 339: attempt to index field 'wikibase' (a nil value).

{{Maplink/sandbox}}

Lua error in Module:Mapframe/sandbox at line 339: attempt to index field 'wikibase' (a nil value).

Inside an infobox
{{maplink}} {{maplink/sandbox}}
Some infobox
Lua error in Module:Mapframe at line 339: attempt to index field 'wikibase' (a nil value).
A caption for the mapframe
Some infobox
Lua error in Module:Mapframe/sandbox at line 339: attempt to index field 'wikibase' (a nil value).
A caption for the mapframe
Framed, align right
{{Maplink|frame=yes|id=Q100|switch=zoomed out; zoomed mid; zoomed in|text=Captiony thingy|type=point|zoom=SWITCH:5;8;11}}

{{Maplink}}

Lua error in Module:Mapframe at line 339: attempt to index field 'wikibase' (a nil value).

{{Maplink/sandbox}}

Lua error in Module:Mapframe/sandbox at line 339: attempt to index field 'wikibase' (a nil value).

Framed, align left, no text
{{Maplink|frame=yes|frame-align=left|id=Q100|id2=SWITCH:Q578170, Q771, Q100|stroke-width2=1|switch=country, state, city|type=point|type2=line}}

{{Maplink}}

Lua error in Module:Mapframe at line 339: attempt to index field 'wikibase' (a nil value).

{{Maplink/sandbox}}

Lua error in Module:Mapframe/sandbox at line 339: attempt to index field 'wikibase' (a nil value).

Framed, align center
{{Maplink|frame=yes|frame-align=center|id=Q100|switch=zoomed out; zoomed mid; zoomed in|type=point|zoom=SWITCH:3,7,11}}

{{Maplink}}

Lua error in Module:Mapframe at line 339: attempt to index field 'wikibase' (a nil value).

{{Maplink/sandbox}}

Lua error in Module:Mapframe/sandbox at line 339: attempt to index field 'wikibase' (a nil value).

Multiple switch parameters (zoom and geomask)
{{Maplink|frame=yes|frame-align=center|id=SWITCH:Q30, Q771, Q100|id2=Q100|switch=demo #1, demo#2, demo#3|text=Foo [[bar]] baz|type1=shape-inverse|type2=point|zoom=SWITCH:2,6,10}}

{{Maplink}}

Lua error in Module:Mapframe at line 339: attempt to index field 'wikibase' (a nil value).

{{Maplink/sandbox}}

Lua error in Module:Mapframe/sandbox at line 339: attempt to index field 'wikibase' (a nil value).

Multiple switch parameters (zoom and frame-coord)
{{Maplink|frame=yes |frame-align=center |switch=demo #1, demo#2, demo#3 |zoom=SWITCH:2,6,10 |type1=point |id1=Q100 |frame-coord=SWITCH:{{Coord|1|23|N|2|34|E}}###{{Coord|32|1|S|115|6|E}}###{{Coord|32|1|N|115|6|W}}}}

{{Maplink}}

Lua error in Module:Mapframe at line 339: attempt to index field 'wikibase' (a nil value).

{{Maplink/sandbox}}

Lua error in Module:Mapframe/sandbox at line 339: attempt to index field 'wikibase' (a nil value).

Errors expected

Extended content
No SWITCH: lists
{{Maplink|frame=yes|id=Q100|plain=yes|switch=zoomed out; zoomed in|type=point|zoom=5}}

{{Maplink}}

Lua error: At least one parameter must have a SWITCH: list.

{{Maplink/sandbox}}

Lua error: At least one parameter must have a SWITCH: list.

Not enough labels
{{Maplink|frame=yes|id=Q100|plain=yes|switch=zoomed out; zoomed in|type=point|zoom=SWITCH:5;8;11}}

{{Maplink}}

Lua error: Found 3 switch values but only 2 labels in |switch=.

{{Maplink/sandbox}}

Lua error: Found 3 switch values but only 2 labels in |switch=.

Only one label
{{Maplink|frame=yes|id=Q100|plain=yes|switch=zoomed out|type=point|zoom=SWITCH:5;8;11}}

{{Maplink}}

Lua error: Found only one label in |switch=.

{{Maplink/sandbox}}

Lua error: Found only one label in |switch=.

Only one value in SWITCH: list
{{Maplink|frame=yes|id=Q100|plain=yes|switch=zoomed out, zoomed in|type=point|zoom=SWITCH:5}}

{{Maplink}}

Lua error: Found only one switch value in |zoom=.

{{Maplink/sandbox}}

Lua error: Found only one switch value in |zoom=.

Differing numbers values in SWITCH: list
{{Maplink|frame=yes|id=SWITCH:Q30, Q100|plain=yes|switch=zoomed out; zoomed in|type=point|zoom=SWITCH:5;8;11}}

{{Maplink}}

Lua error: All SWITCH: lists must have the same number of values.

{{Maplink/sandbox}}

Lua error: All SWITCH: lists must have the same number of values.

Named coordinates test data

Named coordinates

All coordinates on page
{{Maplink|frame=yes|type=named}}

{{Maplink}}

Lua error: No named coordinates found in Template:Maplink/testcases.

{{Maplink/sandbox}}

Lua error: No named coordinates found in Template:Maplink/testcases.

All coordinates on page in a section
{{Maplink|frame=yes|from=#Named coordinates|type=named}}

{{Maplink}}

Lua error: No named coordinates found in #Named coordinates.

{{Maplink/sandbox}}

Lua error: No named coordinates found in #Named coordinates.

All coordinates on another page
{{Maplink|frame=yes|from=List of bridges in Perth, Western Australia|type=named}}

{{Maplink}}

Lua error: Page 'List of bridges in Perth, Western Australia' not found.

{{Maplink/sandbox}}

Lua error: Page 'List of bridges in Perth, Western Australia' not found.

All coordinates on page plus a geoshape
{{Maplink|frame=yes|id2=Q23124|id3=Q23124|type=named|type2=shape-inverse|type3=line}}

{{Maplink}}

Lua error: No named coordinates found in Template:Maplink/testcases.

{{Maplink/sandbox}}

Lua error: No named coordinates found in Template:Maplink/testcases.

With style params
{{Maplink|frame=yes|from=#Named coordinates|marker=star|marker-color=#ff0000|type=named}}

{{Maplink}}

Lua error: No named coordinates found in #Named coordinates.

{{Maplink/sandbox}}

Lua error: No named coordinates found in #Named coordinates.

Overlays

Simple overlay
{{Maplink|frame=yes|plain=yes|type=point|id=Q100|overlay={{mapframe|frame=yes|plain=yes|frame-width=100|frame-height=100|type=shape|id=Q100|zoom=5}} }}

{{Maplink}}

Lua error in Module:Mapframe at line 339: attempt to index field 'wikibase' (a nil value).

{{Maplink/sandbox}}

Lua error in Module:Mapframe/sandbox at line 339: attempt to index field 'wikibase' (a nil value).