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

{{Maplink}}

Map

{{Maplink/sandbox}}

Map

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

{{Maplink}}

Map

{{Maplink/sandbox}}

Map

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

{{Maplink}}

Map

{{Maplink/sandbox}}

Map

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

{{Maplink}}

Map

{{Maplink/sandbox}}

Map

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

{{Maplink}}

Map

{{Maplink/sandbox}}

Map

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

{{Maplink}}

Map

{{Maplink/sandbox}}

Map

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

{{Maplink}}

Map

{{Maplink/sandbox}}

Map

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

{{Maplink}}

Map

{{Maplink/sandbox}}

Map

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

{{Maplink}}

Map

{{Maplink/sandbox}}

Map

Mapframe tag

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

{{Maplink}}

Map
Map

{{Maplink/sandbox}}

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

{{Maplink}}

Map
Map

{{Maplink/sandbox}}

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

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

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

Map

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

{{Maplink}}

Map
Map

{{Maplink/sandbox}}

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

{{Maplink}}

Map
Map

{{Maplink/sandbox}}

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

{{Maplink}}

Map
Map

{{Maplink/sandbox}}

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

{{Maplink}}

Map
Map

{{Maplink/sandbox}}

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

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

{{Maplink}}

Map
Map

{{Maplink/sandbox}}

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

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

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

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

{{Maplink}}

Map
Map

{{Maplink/sandbox}}

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

{{Maplink}}

Lua error: Coordinates not found on Wikidata.

{{Maplink/sandbox}}

Lua error: Coordinates not found on Wikidata.

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

{{Maplink}}

Map
Map

{{Maplink/sandbox}}

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

{{Maplink}}

Map
Map

{{Maplink/sandbox}}

Map
Map

Multiple features

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

{{Maplink}}

Map

{{Maplink/sandbox}}

Map

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

{{Maplink}}

Map

{{Maplink/sandbox}}

Map

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

Map

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

Map

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

{{Maplink}}

Map

{{Maplink/sandbox}}

Map

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

{{Maplink}}

Map

{{Maplink/sandbox}}

Map

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

{{Maplink}}

Map

{{Maplink/sandbox}}

Map

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

{{Maplink}}

Map

{{Maplink/sandbox}}

Map

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

{{Maplink}}

Map

{{Maplink/sandbox}}

Map

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

{{Maplink}}

Map

{{Maplink/sandbox}}

Map

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

Map

Mapframe tag

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

{{Maplink}}

Map
Map

{{Maplink/sandbox}}

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

{{Maplink}}

Map
Map

{{Maplink/sandbox}}

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

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

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

{{Maplink}}

Map
Map

{{Maplink/sandbox}}

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

{{Maplink}}

Map
Map

{{Maplink/sandbox}}

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

{{Maplink}}

Map
Map

{{Maplink/sandbox}}

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

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

Map

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

Map
Map

Styles

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

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

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

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

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

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

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

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

Map
Map

Circles

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

{{Maplink}}

Map

{{Maplink/sandbox}}

Map

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

{{Maplink}}

Map

{{Maplink/sandbox}}

Map

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

{{Maplink}}

Map

{{Maplink/sandbox}}

Map

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

{{Maplink}}

Map

{{Maplink/sandbox}}

Map

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

{{Maplink}}

Map

{{Maplink/sandbox}}

Map

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

{{Maplink}}

Map

{{Maplink/sandbox}}

Map

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

{{Maplink}}

Lua error: Circle radius must be specified.

{{Maplink/sandbox}}

Lua error: Circle radius must be specified.

Geomasks

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

{{Maplink}}

Map
Map

{{Maplink/sandbox}}

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

Map

Multi switcher

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

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

Map
Map
Map
Inside an infobox
{{maplink}} {{maplink/sandbox}}
Some infobox
Map
Map
Map
A caption for the mapframe
Some infobox
Map
Map
Map
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}}

Map
Map
Map
Captiony thingy
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}}

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

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

Map
Map
Map
Foo bar baz
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}}

Map
Map
Map

Errors expected

edit
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

edit

Named coordinates

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

{{Maplink}}

Map
Map

{{Maplink/sandbox}}

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

{{Maplink}}

Map
Map

{{Maplink/sandbox}}

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

{{Maplink}}

Map
Map

{{Maplink/sandbox}}

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

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

{{Maplink}}

Map
Map

{{Maplink/sandbox}}

Map
Map

Overlays

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

Map
Map