Template:Maplink/testcases

Template:Testcases notice

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

{{Maplink}}

Map

{{Maplink/sandbox}}

<maplink>{"properties":{"stroke-width":"6","stroke":"#ff0000","title":"Template:Maplink/sandbox"},"type":"ExternalData","service":"geoline"}</maplink>

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

{{Maplink}}

Map

{{Maplink/sandbox}}

<maplink>{"properties":{"stroke-width":"6","stroke":"#ff0000","title":"Template:Maplink/sandbox"},"type":"ExternalData","service":"geoshape"}</maplink>

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

{{Maplink}}

Map

{{Maplink/sandbox}}

<maplink>{"properties":{"stroke-width":"6","stroke":"#ff0000","title":"Template:Maplink/sandbox"},"type":"ExternalData","service":"geomask"}</maplink>

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

{{Maplink}}

Map

{{Maplink/sandbox}}

<maplink>{"properties":{"stroke-width":"6","stroke":"#ff0000","title":"Template:Maplink/sandbox"},"type":"ExternalData","service":"page"}</maplink>

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

{{Maplink}}

Map

{{Maplink/sandbox}}

<maplink>{"properties":{"stroke-width":"6","stroke":"#ff0000","title":"Template:Maplink/sandbox"},"type":"ExternalData","service":"geoline"}</maplink>

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

{{Maplink}}

Map

{{Maplink/sandbox}}

Errore Lua in Modulo:Mapframe/sandbox alla linea 60: attempt to concatenate a nil value.

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

{{Maplink}}

Map

{{Maplink/sandbox}}

Errore Lua in Modulo:Mapframe/sandbox alla linea 60: attempt to concatenate a nil value.

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

{{Maplink}}

Map

{{Maplink/sandbox}}

<maplink>{"properties":{"stroke-width":"6","stroke":"#ff0000","title":"Template:Maplink/sandbox"},"type":"ExternalData"}</maplink>

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

{{Maplink}}

Map

{{Maplink/sandbox}}

<maplink>{"properties":{"stroke-width":"6","stroke":"#ff0000","title":"Template:Maplink/sandbox"},"type":"ExternalData"}</maplink>

Mapframe tag

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

{{Maplink}}

Map
Map

{{Maplink/sandbox}}

<mapframe>{"properties":{"stroke-width":"6","stroke":"#ff0000","title":"Template:Maplink/sandbox"},"type":"ExternalData","service":"geoline"}</mapframe>

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

{{Maplink}}

Map
Map

{{Maplink/sandbox}}

<mapframe>{"properties":{"stroke-width":"6","stroke":"#ff0000","title":"Template:Maplink/sandbox"},"type":"ExternalData","service":"geoline"}</mapframe>

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

{{Maplink}}

Map
Map

{{Maplink/sandbox}}

<mapframe zoom="8">{"properties":{"stroke-width":"6","stroke":"#ff0000","title":"Template:Maplink/sandbox"},"type":"ExternalData","service":"geoline"}</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}}

Map
Map

{{Maplink/sandbox}}

<mapframe zoom="7">{"properties":{"stroke-width":"6","stroke":"#ff0000","title":"Template:Maplink/sandbox"},"type":"ExternalData","service":"geoline"}</mapframe>

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

{{Maplink}}

Map

{{Maplink/sandbox}}

<mapframe zoom="8">{"properties":{"stroke-width":"6","stroke":"#ff0000","title":"Template:Maplink/sandbox"},"type":"ExternalData","service":"geoline"}</mapframe>

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

{{Maplink}}

Map
Map

{{Maplink/sandbox}}

<mapframe>{"properties":{"stroke-width":"6","stroke":"#ff0000","title":"Template:Maplink/sandbox"},"type":"ExternalData","service":"geoshape"}</mapframe>

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

{{Maplink}}

Map
Map

{{Maplink/sandbox}}

<mapframe>{"properties":{"stroke-width":"6","stroke":"#ff0000","title":"Template:Maplink/sandbox"},"type":"ExternalData","service":"geomask"}</mapframe>

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

{{Maplink}}

Map
Map

{{Maplink/sandbox}}

<mapframe>{"properties":{"stroke-width":"6","stroke":"#ff0000","title":"Template:Maplink/sandbox"},"type":"ExternalData","service":"page"}</mapframe>

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

{{Maplink}}

<mapframe>: Il JSON non può essere analizzato: Errore di sintassi

{{Maplink/sandbox}}

<mapframe>Wikipedia:Map data/Wikipedia KML/Interstate 45</mapframe>

Raw Wikidata query
{{Maplink||frame=yes|type=data|frame-width=600|frame-height=400|frame-lat=52|frame-long=-110|zoom=3|raw={
  "type": "ExternalData",
  "service": "geoshape",
  "query": "
SELECT ?id ?head
  (SAMPLE(?img) as ?img_) 
  (min(?partyId) as ?party) 
  (if(?party = '0', '#800000', if(?party = '1', '#000080', '#008000')) as ?fill)
  (concat('[[', substr(str(?link),31,500),  '{{!}}', ?headLabel, ']]') as ?title)
  (concat(?stateLabel, '\\n', '[[File:', substr(str(?img_), 52, 500), '{{!}}200px]]') as ?description)
WHERE {  
  ?id wdt:P31 wd:Q35657 .
  ?id wdt:P6 ?head .
  ?head wdt:P102 ?party .
  BIND(if(?party = wd:Q29468, '0', if(?party = wd:Q29552, '1', '2')) as ?partyId) 
  SERVICE wikibase:label {
    bd:serviceParam wikibase:language 'en' .
    ?head rdfs:label ?headLabel .
    ?id rdfs:label ?stateLabel .
  }
  OPTIONAL {
    ?head wdt:P18 ?img .
  }
  ?link schema:about ?head .
  ?link schema:isPartOf <https://en.wikipedia.org/> .
} GROUP BY ?id ?head ?headLabel ?link ?stateLabel
"} }}

{{Maplink}}

Map
Map

{{Maplink/sandbox}}

<mapframe zoom="3">{

 "type": "ExternalData",
 "service": "geoshape",
 "query": "

SELECT ?id ?head

 (SAMPLE(?img) as ?img_) 
 (min(?partyId) as ?party) 
 (if(?party = '0', '#800000', if(?party = '1', '#000080', '#008000')) as ?fill)
 (concat('', ?headLabel, '') as ?title)
 (concat(?stateLabel, '\\n', 'File:', substr(str(?img ), 52, 500), '') as ?description)

WHERE {

 ?id wdt:P31 wd:Q35657 .
 ?id wdt:P6 ?head .
 ?head wdt:P102 ?party .
 BIND(if(?party = wd:Q29468, '0', if(?party = wd:Q29552, '1', '2')) as ?partyId) 
 SERVICE wikibase:label {
   bd:serviceParam wikibase:language 'en' .
   ?head rdfs:label ?headLabel .
   ?id rdfs:label ?stateLabel .
 }
 OPTIONAL {
   ?head wdt:P18 ?img .
 }
 ?link schema:about ?head .
 ?link schema:isPartOf <https://en.wikipedia.org/> .

} GROUP BY ?id ?head ?headLabel ?link ?stateLabel "}</mapframe>

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

{{Maplink}}

Map
Map

{{Maplink/sandbox}}

Errore Lua in Modulo:Mapframe/sandbox alla linea 60: attempt to concatenate 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}}

Map
Map

{{Maplink/sandbox}}

Errore Lua in Modulo:Mapframe/sandbox alla linea 60: attempt to concatenate 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}}

Map
Map

{{Maplink/sandbox}}

Errore Lua in Modulo:Mapframe/sandbox alla linea 60: attempt to concatenate 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}}

Map
Map

{{Maplink/sandbox}}

Errore Lua in Modulo:Mapframe/sandbox alla linea 60: attempt to concatenate a nil value.

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

{{Maplink}}

Map
Map

{{Maplink/sandbox}}

Errore Lua in Modulo:Mapframe/sandbox alla linea 60: attempt to concatenate a nil value.

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

{{Maplink}}

Fal Lua: Coordinates not found on Wikidata.

{{Maplink/sandbox}}

Errore Lua in Modulo:Mapframe/sandbox alla linea 60: attempt to concatenate a nil value.

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

{{Maplink}}

Map
Map

{{Maplink/sandbox}}

<mapframe>{"properties":{"stroke-width":"6","stroke":"#ff0000","title":"Template:Maplink/sandbox"},"type":"ExternalData"}</mapframe>

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

{{Maplink}}

Map
Map

{{Maplink/sandbox}}

<mapframe>{"properties":{"stroke-width":"6","stroke":"#ff0000","title":"Template:Maplink/sandbox"},"type":"ExternalData"}</mapframe>

Multiple features

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

{{Maplink}}

Map

{{Maplink/sandbox}}

<maplink>{"type": "FeatureCollection", "features": [ {"properties":{"stroke-width":"6","stroke":"#ff0000","title":"Template:Maplink/sandbox"},"type":"ExternalData","service":"geoline"}, {"properties":{"stroke-width":"6","stroke":"#ff0000","title":"Template:Maplink/sandbox"},"type":"ExternalData","service":"geoline"} ] }</maplink>

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

{{Maplink}}

Map

{{Maplink/sandbox}}

<maplink>{"type": "FeatureCollection", "features": [ {"properties":{"stroke-width":"6","stroke":"#ff0000","title":"Template:Maplink/sandbox"},"type":"ExternalData","service":"geoshape"}, {"properties":{"stroke-width":"6","stroke":"#ff0000","title":"Template:Maplink/sandbox"},"type":"ExternalData","service":"geoshape"} ] }</maplink>

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

{{Maplink}}

Map

{{Maplink/sandbox}}

<maplink>{"type": "FeatureCollection", "features": [ {"properties":{"stroke-width":"6","stroke":"#ff0000","title":"Template:Maplink/sandbox"},"type":"ExternalData","service":"page"}, {"properties":{"stroke-width":"6","stroke":"#ff0000","title":"Template:Maplink/sandbox"},"type":"ExternalData","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}}

Map

{{Maplink/sandbox}}

Errore Lua in Modulo:Mapframe/sandbox alla linea 60: attempt to concatenate a nil value.

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

{{Maplink}}

Map

{{Maplink/sandbox}}

Errore Lua in Modulo:Mapframe/sandbox alla linea 60: attempt to concatenate a nil value.

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

{{Maplink}}

Map

{{Maplink/sandbox}}

Errore Lua in Modulo:Mapframe/sandbox alla linea 60: attempt to concatenate a nil value.

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

{{Maplink}}

Map

{{Maplink/sandbox}}

<maplink>{"type": "FeatureCollection", "features": [ {"properties":{"stroke-width":"6","stroke":"#ff0000","title":"Template:Maplink/sandbox"},"type":"ExternalData","service":"geoshape"}, {"properties":{"stroke-width":"6","stroke":"#ff0000","title":"Template:Maplink/sandbox"},"type":"ExternalData","service":"geoline"} ] }</maplink>

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

{{Maplink}}

Map

{{Maplink/sandbox}}

Errore Lua in Modulo:Mapframe/sandbox alla linea 60: attempt to concatenate a nil value.

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

{{Maplink}}

Map

{{Maplink/sandbox}}

Errore Lua in Modulo:Mapframe/sandbox alla linea 60: attempt to concatenate a nil value.

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

{{Maplink}}

Map

{{Maplink/sandbox}}

<maplink>{"type": "FeatureCollection", "features": [ {"properties":{"stroke-width":"6","stroke":"#ff0000","title":"Template:Maplink/sandbox"},"type":"ExternalData"}, {"properties":{"stroke-width":"6","stroke":"#ff0000","title":"Template:Maplink/sandbox"},"type":"ExternalData","service":"geoline"} ] }</maplink>

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

{{Maplink}}

Map

{{Maplink/sandbox}}

Errore Lua in Modulo:Mapframe/sandbox alla linea 60: attempt to concatenate a nil value.

Mapframe tag

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

{{Maplink}}

Map
Map

{{Maplink/sandbox}}

<mapframe>{"type": "FeatureCollection", "features": [ {"properties":{"stroke-width":"6","stroke":"#ff0000","title":"Template:Maplink/sandbox"},"type":"ExternalData","service":"geoline"}, {"properties":{"stroke-width":"6","stroke":"#ff0000","title":"Template:Maplink/sandbox"},"type":"ExternalData","service":"geoline"} ] }</mapframe>

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

{{Maplink}}

Map
Map

{{Maplink/sandbox}}

<mapframe>{"type": "FeatureCollection", "features": [ {"properties":{"stroke-width":"6","stroke":"#ff0000","title":"Template:Maplink/sandbox"},"type":"ExternalData","service":"geoshape"}, {"properties":{"stroke-width":"6","stroke":"#ff0000","title":"Template:Maplink/sandbox"},"type":"ExternalData","service":"geoshape"} ] }</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}}

Map
Map

{{Maplink/sandbox}}

<mapframe>{"type": "FeatureCollection", "features": [ {"properties":{"stroke-width":"6","stroke":"#ff0000","title":"Template:Maplink/sandbox"},"type":"ExternalData","service":"page"}, {"properties":{"stroke-width":"6","stroke":"#ff0000","title":"Template:Maplink/sandbox"},"type":"ExternalData","service":"page"} ] }</mapframe>

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}}

Map
Map

{{Maplink/sandbox}}

Errore Lua in Modulo:Mapframe/sandbox alla linea 60: attempt to concatenate a nil value.

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

{{Maplink}}

Map
Map

{{Maplink/sandbox}}

Errore Lua in Modulo:Mapframe/sandbox alla linea 60: attempt to concatenate a nil value.

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

{{Maplink}}

Map
Map

{{Maplink/sandbox}}

Errore Lua in Modulo:Mapframe/sandbox alla linea 60: attempt to concatenate a nil value.

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

{{Maplink}}

Map
Map

{{Maplink/sandbox}}

<mapframe>{"type": "FeatureCollection", "features": [ {"properties":{"stroke-width":"6","stroke":"#ff0000","title":"Template:Maplink/sandbox"},"type":"ExternalData","service":"geoshape"}, {"properties":{"stroke-width":"6","stroke":"#ff0000","title":"Template:Maplink/sandbox"},"type":"ExternalData","service":"geoline"} ] }</mapframe>

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

{{Maplink}}

Map
Map

{{Maplink/sandbox}}

Errore Lua in Modulo:Mapframe/sandbox alla linea 60: attempt to concatenate 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}}

Map

{{Maplink/sandbox}}

Errore Lua in Modulo:Mapframe/sandbox alla linea 60: attempt to concatenate 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}}

Map
Map

{{Maplink/sandbox}}

Errore Lua in Modulo:Mapframe/sandbox alla linea 60: attempt to concatenate a nil value.

Styles

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

{{Maplink}}

Map
Map

{{Maplink/sandbox}}

<mapframe zoom="9">{"properties":{"stroke-width":"6","stroke":"#ff0000","title":"Template:Maplink/sandbox"},"type":"ExternalData","service":"geoline"}</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}}

Map
Map

{{Maplink/sandbox}}

<mapframe zoom="9">{"properties":{"stroke-width":"6","stroke":"#ff0000","title":"Template:Maplink/sandbox"},"type":"ExternalData","service":"geoshape"}</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}}

Map
Map

{{Maplink/sandbox}}

<mapframe zoom="9">{"properties":{"stroke-width":"6","stroke":"#ff0000","title":"Template:Maplink/sandbox"},"type":"ExternalData","service":"geomask"}</mapframe>

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

{{Maplink}}

Map
Map

{{Maplink/sandbox}}

Errore Lua in Modulo:Mapframe/sandbox alla linea 60: attempt to concatenate 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}}

Map
Map

{{Maplink/sandbox}}

<mapframe zoom="9">{"properties":{"stroke-width":"6","stroke":"#ff0000","title":"Template:Maplink/sandbox"},"type":"ExternalData","service":"geoshape"}</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}}

Map
Map

{{Maplink/sandbox}}

<mapframe zoom="9">{"properties":{"stroke-width":"6","stroke":"#ff0000","title":"Template:Maplink/sandbox"},"type":"ExternalData","service":"geomask"}</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}}

Map
Map

{{Maplink/sandbox}}

<mapframe zoom="9">{"properties":{"stroke-width":"6","stroke":"#ff0000","title":"Template:Maplink/sandbox"},"type":"ExternalData"}</mapframe>

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}}

Map
Map

{{Maplink/sandbox}}

<mapframe zoom="9">{"properties":{"stroke-width":"6","stroke":"#ff0000","title":"Template:Maplink/sandbox"},"type":"ExternalData"}</mapframe>

Circles

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

{{Maplink}}

Map

{{Maplink/sandbox}}

<maplink>{"properties":{"stroke-width":"6","stroke":"#ff0000","title":"Template:Maplink/sandbox"},"type":"ExternalData"}</maplink>

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

{{Maplink}}

Map

{{Maplink/sandbox}}

<maplink>{"properties":{"stroke-width":"6","stroke":"#ff0000","title":"Template:Maplink/sandbox"},"type":"ExternalData"}</maplink>

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

{{Maplink}}

Map

{{Maplink/sandbox}}

<maplink>{"properties":{"stroke-width":"6","stroke":"#ff0000","title":"Template:Maplink/sandbox"},"type":"ExternalData"}</maplink>

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

{{Maplink}}

Map

{{Maplink/sandbox}}

<maplink>{"properties":{"stroke-width":"6","stroke":"#ff0000","title":"Template:Maplink/sandbox"},"type":"ExternalData"}</maplink>

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

{{Maplink}}

Map

{{Maplink/sandbox}}

<maplink>{"properties":{"stroke-width":"6","stroke":"#ff0000","title":"Template:Maplink/sandbox"},"type":"ExternalData"}</maplink>

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

{{Maplink}}

Map

{{Maplink/sandbox}}

<maplink>{"properties":{"stroke-width":"6","stroke":"#ff0000","title":"Template:Maplink/sandbox"},"type":"ExternalData"}</maplink>

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

{{Maplink}}

Fal Lua: Circle radius must be specified.

{{Maplink/sandbox}}

<maplink>{"properties":{"stroke-width":"6","stroke":"#ff0000","title":"Template:Maplink/sandbox"},"type":"ExternalData"}</maplink>

Geomasks

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

{{Maplink}}

Map
Map

{{Maplink/sandbox}}

<mapframe>{"properties":{"stroke-width":"6","stroke":"#ff0000","title":"Template:Maplink/sandbox"},"type":"ExternalData","service":"geomask"}</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}}

Map

{{Maplink/sandbox}}

<mapframe zoom="9">{"properties":{"stroke-width":"6","stroke":"#ff0000","title":"Template:Maplink/sandbox"},"type":"ExternalData","service":"geomask"}</mapframe>

Multi switcher

mudé
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}}

Map
Map
Map

{{Maplink/sandbox}}

Errore Lua in Modulo:Mapframe/sandbox alla linea 60: attempt to concatenate 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}}

Map
Map
Map

{{Maplink/sandbox}}

Errore Lua in Modulo:Mapframe/sandbox alla linea 60: attempt to concatenate a nil value.

Inside an infobox
{{maplink}} {{maplink/sandbox}}
Some infobox
Map
Map
Map
A caption for the mapframe
Some infobox
Errore Lua in Modulo:Mapframe/sandbox alla linea 60: attempt to concatenate 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}}

Map
Map
Map
Captiony thingy

{{Maplink/sandbox}}

Errore Lua in Modulo:Mapframe/sandbox alla linea 60: attempt to concatenate 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}}

Map
Map
Map

{{Maplink/sandbox}}

Errore Lua in Modulo:Mapframe/sandbox alla linea 60: attempt to concatenate 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}}

Map
Map
Map

{{Maplink/sandbox}}

Errore Lua in Modulo:Mapframe/sandbox alla linea 60: attempt to concatenate 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}}

Map
Map
Map
Foo bar baz

{{Maplink/sandbox}}

<mapframe zoom="SWITCH:2,6,10">{"type": "FeatureCollection", "features": [

] }</mapframe>

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}}

Map
Map
Map

{{Maplink/sandbox}}

<mapframe zoom="SWITCH:2,6,10">{"type": "FeatureCollection", "features": [

] }</mapframe>

Errors expected

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

{{Maplink}}

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

{{Maplink/sandbox}}

Errore Lua in Modulo:Mapframe/sandbox alla linea 60: attempt to concatenate a nil value.

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

{{Maplink}}

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

{{Maplink/sandbox}}

Errore Lua in Modulo:Mapframe/sandbox alla linea 60: attempt to concatenate a nil value.

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

{{Maplink}}

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

{{Maplink/sandbox}}

Errore Lua in Modulo:Mapframe/sandbox alla linea 60: attempt to concatenate a nil value.

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

{{Maplink}}

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

{{Maplink/sandbox}}

Errore Lua in Modulo:Mapframe/sandbox alla linea 60: attempt to concatenate a nil value.

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}}

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

{{Maplink/sandbox}}

Errore Lua in Modulo:Mapframe/sandbox alla linea 60: attempt to concatenate a nil value.

Named coordinates test data

mudé

Named coordinates

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

{{Maplink}}

Map
Map

{{Maplink/sandbox}}

<mapframe>{"properties":{"stroke-width":"6","stroke":"#ff0000","title":"Template:Maplink/sandbox"},"type":"ExternalData"}</mapframe>

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

{{Maplink}}

Map
Map

{{Maplink/sandbox}}

<mapframe>{"properties":{"stroke-width":"6","stroke":"#ff0000","title":"Template:Maplink/sandbox"},"type":"ExternalData"}</mapframe>

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

{{Maplink}}

Fal Lua: Pagina «List of bridges in Perth, Western Australia» non trovata.

{{Maplink/sandbox}}

<mapframe>{"properties":{"stroke-width":"6","stroke":"#ff0000","title":"Template:Maplink/sandbox"},"type":"ExternalData"}</mapframe>

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

{{Maplink}}

Map
Map

{{Maplink/sandbox}}

<mapframe>{"type": "FeatureCollection", "features": [ {"properties":{"stroke-width":"6","stroke":"#ff0000","title":"Template:Maplink/sandbox"},"type":"ExternalData"}, {"properties":{"stroke-width":"6","stroke":"#ff0000","title":"Template:Maplink/sandbox"},"type":"ExternalData","service":"geomask"}, {"properties":{"stroke-width":"6","stroke":"#ff0000","title":"Template:Maplink/sandbox"},"type":"ExternalData","service":"geoline"} ] }</mapframe>

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

{{Maplink}}

Map
Map

{{Maplink/sandbox}}

<mapframe>{"properties":{"stroke-width":"6","stroke":"#ff0000","title":"Template:Maplink/sandbox"},"type":"ExternalData"}</mapframe>

Overlays

mudé
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}}

Map
Map

{{Maplink/sandbox}}

Errore Lua in Modulo:Mapframe/sandbox alla linea 60: attempt to concatenate a nil value.