Template:Maplink/testcases: Difference between revisions

From Jonesipedia
Jump to navigation Jump to search
Mapframe tag: fix spacing
 
m 1 revision imported
 
(No difference)

Latest revision as of 11:44, 28 April 2022

<templatestyles src="Module:Message box/ombox.css"></templatestyles>

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

<maplink longitude="17.2" latitude="-15.4" text="Map">{"type":"Feature","geometry":{"coordinates":[17.2,-15.4],"type":"Point"},"properties":{"title":"Maplink/testcases","marker-color":"5E74F3"}}</maplink>

{{Maplink/sandbox}}

<maplink longitude="17.2" latitude="-15.4" text="Map">{"type":"Feature","geometry":{"coordinates":[17.2,-15.4],"type":"Point"},"properties":{"title":"Maplink/testcases","marker-color":"5E74F3"}}</maplink>

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

{{Maplink}}

Lua error: Coordinates must be specified on Wikidata or in |coord=.

{{Maplink/sandbox}}

Lua error: Coordinates must be specified on Wikidata or in |coord=.

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

{{Maplink}}

<maplink text="Map">{"type":"Feature","geometry":{"coordinates":[[115.85,-31.941016847158807],[115.84793478250548,-31.94118943920913],[115.8459489076269,-31.94170058464579],[115.84411867231688,-31.942530645851328],[115.84251439872313,-31.94364773214374],[115.84119773369144,-31.945008924084405],[115.84021928039633,-31.946561921392906],[115.83961665300937,-31.948247051362053],[115.83941302926709,-31.94999956081199],[115.8396162568563,-31.951752103693135],[115.84021854840084,-31.95343732886627],[115.84119677729328,-31.954990468657616],[115.8425133635252,-31.956351828668243],[115.8441177159187,-31.957469083030638],[115.84594817563142,-31.958299286719022],[115.84793438635238,-31.958810527359677],[115.85,-31.958983152841196],[115.85206561364761,-31.958810527359677],[115.85405182436855,-31.958299286719022],[115.85588228408129,-31.957469083030638],[115.85748663647479,-31.956351828668243],[115.85880322270671,-31.954990468657616],[115.85978145159913,-31.95343732886627],[115.86038374314369,-31.951752103693135],[115.8605869707329,-31.94999956081199],[115.8603833469906,-31.948247051362053],[115.85978071960366,-31.946561921392906],[115.85880226630854,-31.945008924084405],[115.85748560127686,-31.94364773214374],[115.8558813276831,-31.942530645851328],[115.85405109237308,-31.94170058464579],[115.85206521749451,-31.94118943920913],[115.85,-31.941016847158807]],"type":"LineString"},"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"}}</maplink>

{{Maplink/sandbox}}

<maplink text="Map">{"type":"Feature","geometry":{"coordinates":[[115.85,-31.941016847158807],[115.84793478250548,-31.94118943920913],[115.8459489076269,-31.94170058464579],[115.84411867231688,-31.942530645851328],[115.84251439872313,-31.94364773214374],[115.84119773369144,-31.945008924084405],[115.84021928039633,-31.946561921392906],[115.83961665300937,-31.948247051362053],[115.83941302926709,-31.94999956081199],[115.8396162568563,-31.951752103693135],[115.84021854840084,-31.95343732886627],[115.84119677729328,-31.954990468657616],[115.8425133635252,-31.956351828668243],[115.8441177159187,-31.957469083030638],[115.84594817563142,-31.958299286719022],[115.84793438635238,-31.958810527359677],[115.85,-31.958983152841196],[115.85206561364761,-31.958810527359677],[115.85405182436855,-31.958299286719022],[115.85588228408129,-31.957469083030638],[115.85748663647479,-31.956351828668243],[115.85880322270671,-31.954990468657616],[115.85978145159913,-31.95343732886627],[115.86038374314369,-31.951752103693135],[115.8605869707329,-31.94999956081199],[115.8603833469906,-31.948247051362053],[115.85978071960366,-31.946561921392906],[115.85880226630854,-31.945008924084405],[115.85748560127686,-31.94364773214374],[115.8558813276831,-31.942530645851328],[115.85405109237308,-31.94170058464579],[115.85206521749451,-31.94118943920913],[115.85,-31.941016847158807]],"type":"LineString"},"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"}}</maplink>

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

{{Maplink}}

Lua error: Coordinates must be specified on Wikidata or in |coord=.

{{Maplink/sandbox}}

Lua error: Coordinates must be specified on Wikidata or in |coord=.

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

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

{{Maplink/sandbox}}

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

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

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

{{Maplink/sandbox}}

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

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>

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

<mapframe zoom="3" text="Map" height="400" latitude="52" longitude="-110" width="600">{ "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>

{{Maplink/sandbox}}

<mapframe zoom="3" text="Map" height="400" latitude="52" longitude="-110" width="600">{ "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}}

<mapframe text="Map" height="200" latitude="-15.4" longitude="17.2" width="300">{"type":"Feature","geometry":{"coordinates":[17.2,-15.4],"type":"Point"},"properties":{"title":"Maplink/testcases","marker-color":"5E74F3"}}</mapframe>

{{Maplink/sandbox}}

<mapframe text="Map" height="200" latitude="-15.4" longitude="17.2" width="300">{"type":"Feature","geometry":{"coordinates":[17.2,-15.4],"type":"Point"},"properties":{"title":"Maplink/testcases","marker-color":"5E74F3"}}</mapframe>

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

{{Maplink}}

<mapframe text="Map" height="200" latitude="-15.4" longitude="17.2" width="300">{"type":"Feature","geometry":{"coordinates":[17.2,-15.4],"type":"Point"},"properties":{"title":"Maplink/testcases","marker-color":"5E74F3"}}</mapframe>

{{Maplink/sandbox}}

<mapframe text="Map" height="200" latitude="-15.4" longitude="17.2" width="300">{"type":"Feature","geometry":{"coordinates":[17.2,-15.4],"type":"Point"},"properties":{"title":"Maplink/testcases","marker-color":"5E74F3"}}</mapframe>

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

<mapframe text="Map" height="200" latitude="-15.4" longitude="17.2" width="300">{"type":"Feature","geometry":{"coordinates":[17.2,-15.4],"type":"Point"},"properties":{"title":"Maplink/testcases","marker-color":"5E74F3"}}</mapframe>

{{Maplink/sandbox}}

<mapframe text="Map" height="200" latitude="-15.4" longitude="17.2" width="300">{"type":"Feature","geometry":{"coordinates":[17.2,-15.4],"type":"Point"},"properties":{"title":"Maplink/testcases","marker-color":"5E74F3"}}</mapframe>

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

<mapframe text="Map" height="200" latitude="-15.402777777778" longitude="17.204166666667" width="300">{"type":"Feature","geometry":{"coordinates":[17.204166666666666,-15.402777777777779],"type":"Point"},"properties":{"title":"Maplink/testcases","marker-color":"5E74F3"}}</mapframe>

{{Maplink/sandbox}}

<mapframe text="Map" height="200" latitude="-15.402777777778" longitude="17.204166666667" width="300">{"type":"Feature","geometry":{"coordinates":[17.204166666666666,-15.402777777777779],"type":"Point"},"properties":{"title":"Maplink/testcases","marker-color":"5E74F3"}}</mapframe>

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

{{Maplink}}

Lua error: Coordinates must be specified on Wikidata or in |coord=.

{{Maplink/sandbox}}

Lua error: Coordinates must be specified on Wikidata or in |coord=.

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

{{Maplink}}

Lua error: Coordinates must be specified on Wikidata or in |coord=.

{{Maplink/sandbox}}

Lua error: Coordinates must be specified on Wikidata or in |coord=.

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

{{Maplink}}

<mapframe height="200" text="Map" width="300">{"type":"Feature","geometry":{"coordinates":[[115.85,-31.941016847158807],[115.84793478250548,-31.94118943920913],[115.8459489076269,-31.94170058464579],[115.84411867231688,-31.942530645851328],[115.84251439872313,-31.94364773214374],[115.84119773369144,-31.945008924084405],[115.84021928039633,-31.946561921392906],[115.83961665300937,-31.948247051362053],[115.83941302926709,-31.94999956081199],[115.8396162568563,-31.951752103693135],[115.84021854840084,-31.95343732886627],[115.84119677729328,-31.954990468657616],[115.8425133635252,-31.956351828668243],[115.8441177159187,-31.957469083030638],[115.84594817563142,-31.958299286719022],[115.84793438635238,-31.958810527359677],[115.85,-31.958983152841196],[115.85206561364761,-31.958810527359677],[115.85405182436855,-31.958299286719022],[115.85588228408129,-31.957469083030638],[115.85748663647479,-31.956351828668243],[115.85880322270671,-31.954990468657616],[115.85978145159913,-31.95343732886627],[115.86038374314369,-31.951752103693135],[115.8605869707329,-31.94999956081199],[115.8603833469906,-31.948247051362053],[115.85978071960366,-31.946561921392906],[115.85880226630854,-31.945008924084405],[115.85748560127686,-31.94364773214374],[115.8558813276831,-31.942530645851328],[115.85405109237308,-31.94170058464579],[115.85206521749451,-31.94118943920913],[115.85,-31.941016847158807]],"type":"LineString"},"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"}}</mapframe>

{{Maplink/sandbox}}

<mapframe height="200" text="Map" width="300">{"type":"Feature","geometry":{"coordinates":[[115.85,-31.941016847158807],[115.84793478250548,-31.94118943920913],[115.8459489076269,-31.94170058464579],[115.84411867231688,-31.942530645851328],[115.84251439872313,-31.94364773214374],[115.84119773369144,-31.945008924084405],[115.84021928039633,-31.946561921392906],[115.83961665300937,-31.948247051362053],[115.83941302926709,-31.94999956081199],[115.8396162568563,-31.951752103693135],[115.84021854840084,-31.95343732886627],[115.84119677729328,-31.954990468657616],[115.8425133635252,-31.956351828668243],[115.8441177159187,-31.957469083030638],[115.84594817563142,-31.958299286719022],[115.84793438635238,-31.958810527359677],[115.85,-31.958983152841196],[115.85206561364761,-31.958810527359677],[115.85405182436855,-31.958299286719022],[115.85588228408129,-31.957469083030638],[115.85748663647479,-31.956351828668243],[115.85880322270671,-31.954990468657616],[115.85978145159913,-31.95343732886627],[115.86038374314369,-31.951752103693135],[115.8605869707329,-31.94999956081199],[115.8603833469906,-31.948247051362053],[115.85978071960366,-31.946561921392906],[115.85880226630854,-31.945008924084405],[115.85748560127686,-31.94364773214374],[115.8558813276831,-31.942530645851328],[115.85405109237308,-31.94170058464579],[115.85206521749451,-31.94118943920913],[115.85,-31.941016847158807]],"type":"LineString"},"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"}}</mapframe>

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

{{Maplink}}

Lua error: Coordinates must be specified on Wikidata or in |coord=.

{{Maplink/sandbox}}

Lua error: Coordinates must be specified on Wikidata or in |coord=.

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

<maplink longitude="116" latitude="-32" text="Map">[ {"type":"Feature","geometry":{"coordinates":[116,-32],"type":"Point"},"properties":{"title":"Maplink/testcases","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[115.8,-31.8],"type":"Point"},"properties":{"title":"Maplink/testcases","marker-color":"5E74F3"}} ]</maplink>

{{Maplink/sandbox}}

<maplink longitude="116" latitude="-32" text="Map">[ {"type":"Feature","geometry":{"coordinates":[116,-32],"type":"Point"},"properties":{"title":"Maplink/testcases","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[115.8,-31.8],"type":"Point"},"properties":{"title":"Maplink/testcases","marker-color":"5E74F3"}} ]</maplink>

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

{{Maplink}}

<maplink text="Map">[ {"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"},"type":"ExternalData","service":"geoline","ids":"Q1318331"}, {"type":"Feature","geometry":{"coordinates":[116,-32],"type":"Point"},"properties":{"title":"Maplink/testcases","marker-color":"5E74F3"}} ]</maplink>

{{Maplink/sandbox}}

<maplink text="Map">[ {"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"},"type":"ExternalData","service":"geoline","ids":"Q1318331"}, {"type":"Feature","geometry":{"coordinates":[116,-32],"type":"Point"},"properties":{"title":"Maplink/testcases","marker-color":"5E74F3"}} ]</maplink>

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

{{Maplink}}

<maplink text="Map">[ {"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"},"type":"ExternalData","service":"geoshape","ids":"Q3495894"}, {"type":"Feature","geometry":{"coordinates":[116,-32],"type":"Point"},"properties":{"title":"Maplink/testcases","marker-color":"5E74F3"}} ]</maplink>

{{Maplink/sandbox}}

<maplink text="Map">[ {"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"},"type":"ExternalData","service":"geoshape","ids":"Q3495894"}, {"type":"Feature","geometry":{"coordinates":[116,-32],"type":"Point"},"properties":{"title":"Maplink/testcases","marker-color":"5E74F3"}} ]</maplink>

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

<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"}, {"type":"Feature","geometry":{"coordinates":[116,-32],"type":"Point"},"properties":{"title":"Maplink/testcases","marker-color":"5E74F3"}} ]</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"}, {"type":"Feature","geometry":{"coordinates":[116,-32],"type":"Point"},"properties":{"title":"Maplink/testcases","marker-color":"5E74F3"}} ]</maplink>

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

{{Maplink}}

<maplink text="Map">[ {"type":"Feature","geometry":{"coordinates":[[116.00000000000001,-31.982033694317604],[115.99586771195187,-31.982378844874933],[115.99189413509161,-31.98340104022101],[115.98823189516263,-31.985061019653298],[115.98502167879272,-31.987295023561014],[115.98238683477908,-31.99001723873337],[115.98042863661283,-31.99312309028585],[115.97922238788105,-31.996493254583214],[115.97881452062225,-31.99999823983185],[115.97922079932219,-32.00350335906529],[115.98042570133876,-32.00687390491911],[115.98238299965855,-32.009980327511194],[115.98501752768804,-32.01270321627073],[115.98822806004185,-32.01493789376565],[115.99189119981716,-32.016598444237616],[115.99586612339274,-32.01762102114022],[116.00000000000001,-32.017966305682386],[116.00413387660727,-32.01762102114022],[116.00810880018285,-32.016598444237616],[116.01177193995817,-32.01493789376565],[116.01498247231197,-32.01270321627073],[116.01761700034146,-32.009980327511194],[116.01957429866127,-32.00687390491911],[116.02077920067782,-32.00350335906529],[116.02118547937776,-31.99999823983185],[116.02077761211898,-31.996493254583214],[116.01957136338719,-31.99312309028585],[116.01761316522095,-31.99001723873337],[116.0149783212073,-31.987295023561014],[116.0117681048374,-31.985061019653298],[116.0081058649084,-31.98340104022101],[116.00413228804814,-31.982378844874933],[116.00000000000001,-31.982033694317604]],"type":"LineString"},"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"}}, {"type":"Feature","geometry":{"coordinates":[116,-32],"type":"Point"},"properties":{"title":"Maplink/testcases","marker-color":"5E74F3"}} ]</maplink>

{{Maplink/sandbox}}

<maplink text="Map">[ {"type":"Feature","geometry":{"coordinates":[[116.00000000000001,-31.982033694317604],[115.99586771195187,-31.982378844874933],[115.99189413509161,-31.98340104022101],[115.98823189516263,-31.985061019653298],[115.98502167879272,-31.987295023561014],[115.98238683477908,-31.99001723873337],[115.98042863661283,-31.99312309028585],[115.97922238788105,-31.996493254583214],[115.97881452062225,-31.99999823983185],[115.97922079932219,-32.00350335906529],[115.98042570133876,-32.00687390491911],[115.98238299965855,-32.009980327511194],[115.98501752768804,-32.01270321627073],[115.98822806004185,-32.01493789376565],[115.99189119981716,-32.016598444237616],[115.99586612339274,-32.01762102114022],[116.00000000000001,-32.017966305682386],[116.00413387660727,-32.01762102114022],[116.00810880018285,-32.016598444237616],[116.01177193995817,-32.01493789376565],[116.01498247231197,-32.01270321627073],[116.01761700034146,-32.009980327511194],[116.01957429866127,-32.00687390491911],[116.02077920067782,-32.00350335906529],[116.02118547937776,-31.99999823983185],[116.02077761211898,-31.996493254583214],[116.01957136338719,-31.99312309028585],[116.01761316522095,-31.99001723873337],[116.0149783212073,-31.987295023561014],[116.0117681048374,-31.985061019653298],[116.0081058649084,-31.98340104022101],[116.00413228804814,-31.982378844874933],[116.00000000000001,-31.982033694317604]],"type":"LineString"},"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"}}, {"type":"Feature","geometry":{"coordinates":[116,-32],"type":"Point"},"properties":{"title":"Maplink/testcases","marker-color":"5E74F3"}} ]</maplink>

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

{{Maplink}}

Lua error: Coordinates must be specified on Wikidata or in |coord=.

{{Maplink/sandbox}}

Lua error: Coordinates must be specified on Wikidata or in |coord=.

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

{{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":"geomask","ids":"Q3495894"}, {"type":"Feature","geometry":{"coordinates":[116,-32],"type":"Point"},"properties":{"title":"Maplink/testcases","marker-color":"5E74F3"}} ]</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":"geomask","ids":"Q3495894"}, {"type":"Feature","geometry":{"coordinates":[116,-32],"type":"Point"},"properties":{"title":"Maplink/testcases","marker-color":"5E74F3"}} ]</maplink>

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

<mapframe height="200" text="Map" width="300">[ {"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"} ]</mapframe>

{{Maplink/sandbox}}

<mapframe height="200" text="Map" width="300">[ {"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"} ]</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}}

<mapframe text="Map" height="200" latitude="-32" longitude="116" width="300">[ {"type":"Feature","geometry":{"coordinates":[116,-32],"type":"Point"},"properties":{"title":"Maplink/testcases","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[115.8,-31.8],"type":"Point"},"properties":{"title":"Maplink/testcases","marker-color":"5E74F3"}} ]</mapframe>

{{Maplink/sandbox}}

<mapframe text="Map" height="200" latitude="-32" longitude="116" width="300">[ {"type":"Feature","geometry":{"coordinates":[116,-32],"type":"Point"},"properties":{"title":"Maplink/testcases","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[115.8,-31.8],"type":"Point"},"properties":{"title":"Maplink/testcases","marker-color":"5E74F3"}} ]</mapframe>

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

{{Maplink}}

<mapframe height="200" text="Map" width="300">[ {"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"},"type":"ExternalData","service":"geoline","ids":"Q1318331"}, {"type":"Feature","geometry":{"coordinates":[116,-32],"type":"Point"},"properties":{"title":"Maplink/testcases","marker-color":"5E74F3"}} ]</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"}, {"type":"Feature","geometry":{"coordinates":[116,-32],"type":"Point"},"properties":{"title":"Maplink/testcases","marker-color":"5E74F3"}} ]</mapframe>

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

{{Maplink}}

<mapframe height="200" text="Map" width="300">[ {"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"},"type":"ExternalData","service":"geoshape","ids":"Q3495894"}, {"type":"Feature","geometry":{"coordinates":[116,-32],"type":"Point"},"properties":{"title":"Maplink/testcases","marker-color":"5E74F3"}} ]</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"}, {"type":"Feature","geometry":{"coordinates":[116,-32],"type":"Point"},"properties":{"title":"Maplink/testcases","marker-color":"5E74F3"}} ]</mapframe>

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

<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"}, {"type":"Feature","geometry":{"coordinates":[116,-32],"type":"Point"},"properties":{"title":"Maplink/testcases","marker-color":"5E74F3"}} ]</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"}, {"type":"Feature","geometry":{"coordinates":[116,-32],"type":"Point"},"properties":{"title":"Maplink/testcases","marker-color":"5E74F3"}} ]</mapframe>

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: Coordinates must be specified on Wikidata or in |coord=.

{{Maplink/sandbox}}

Lua error: Coordinates must be specified on Wikidata or in |coord=.

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

<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":"geomask","ids":"Q3495894"}, {"type":"Feature","geometry":{"coordinates":[116,-32],"type":"Point"},"properties":{"title":"Maplink/testcases","marker-color":"5E74F3"}} ]</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":"geomask","ids":"Q3495894"}, {"type":"Feature","geometry":{"coordinates":[116,-32],"type":"Point"},"properties":{"title":"Maplink/testcases","marker-color":"5E74F3"}} ]</mapframe>

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: Coordinates must be specified on Wikidata or in |coord=.

{{Maplink/sandbox}}

Lua error: Coordinates must be specified on Wikidata or in |coord=.

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: Coordinates must be specified on Wikidata or in |coord=.

{{Maplink/sandbox}}

Lua error: Coordinates must be specified on Wikidata or in |coord=.

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: Coordinates must be specified on Wikidata or in |coord=.

{{Maplink/sandbox}}

Lua error: Coordinates must be specified on Wikidata or in |coord=.

Circles

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

{{Maplink}}

<maplink text="Map">{"type":"Feature","geometry":{"coordinates":[[115.85,-31.94002870034628],[115.84770763275722,-31.94022027548192],[115.84550333213886,-31.940787641106436],[115.84347178464274,-31.94170900034848],[115.84169104576746,-31.942948955874396],[115.84022954277818,-31.944459868668478],[115.83914344592854,-31.94618368698116],[115.83847450903197,-31.94805417543184],[115.83824846249519,-31.94999945887645],[115.83847402093173,-31.951944783511642],[115.83914254403692,-31.953815389263163],[115.84022836439999,-31.95553938312895],[115.84168977030006,-31.957050503002048],[115.84347060626453,-31.958290665606977],[115.84550243024721,-31.959212200402142],[115.84770714465695,-31.959779683327497],[115.85,-31.959971299653724],[115.85229285534304,-31.959779683327497],[115.85449756975277,-31.959212200402142],[115.85652939373546,-31.958290665606977],[115.85831022969991,-31.957050503002048],[115.85977163559998,-31.95553938312895],[115.86085745596307,-31.953815389263163],[115.86152597906826,-31.951944783511642],[115.8617515375048,-31.94999945887645],[115.86152549096802,-31.94805417543184],[115.86085655407145,-31.94618368698116],[115.85977045722181,-31.944459868668478],[115.85830895423253,-31.942948955874396],[115.85652821535724,-31.94170900034848],[115.85449666786113,-31.940787641106436],[115.85229236724277,-31.94022027548192],[115.85,-31.94002870034628]],"type":"LineString"},"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"}}</maplink>

{{Maplink/sandbox}}

<maplink text="Map">{"type":"Feature","geometry":{"coordinates":[[115.85,-31.94002870034628],[115.84770763275722,-31.94022027548192],[115.84550333213886,-31.940787641106436],[115.84347178464274,-31.94170900034848],[115.84169104576746,-31.942948955874396],[115.84022954277818,-31.944459868668478],[115.83914344592854,-31.94618368698116],[115.83847450903197,-31.94805417543184],[115.83824846249519,-31.94999945887645],[115.83847402093173,-31.951944783511642],[115.83914254403692,-31.953815389263163],[115.84022836439999,-31.95553938312895],[115.84168977030006,-31.957050503002048],[115.84347060626453,-31.958290665606977],[115.84550243024721,-31.959212200402142],[115.84770714465695,-31.959779683327497],[115.85,-31.959971299653724],[115.85229285534304,-31.959779683327497],[115.85449756975277,-31.959212200402142],[115.85652939373546,-31.958290665606977],[115.85831022969991,-31.957050503002048],[115.85977163559998,-31.95553938312895],[115.86085745596307,-31.953815389263163],[115.86152597906826,-31.951944783511642],[115.8617515375048,-31.94999945887645],[115.86152549096802,-31.94805417543184],[115.86085655407145,-31.94618368698116],[115.85977045722181,-31.944459868668478],[115.85830895423253,-31.942948955874396],[115.85652821535724,-31.94170900034848],[115.85449666786113,-31.940787641106436],[115.85229236724277,-31.94022027548192],[115.85,-31.94002870034628]],"type":"LineString"},"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"}}</maplink>

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

{{Maplink}}

<maplink text="Map">{"type":"Feature","geometry":{"coordinates":[[115.85,-31.86016847158805],[115.8293656173176,-31.861892890630344],[115.80952195722428,-31.867000068542428],[115.79122969539935,-31.87529427844094],[115.7751905171764,-31.886457585866385],[115.76202034625538,-31.90006194454343],[115.75222574488166,-31.915585501379805],[115.7461843815195,-31.93243250593327],[115.74413032607436,-31.949956081218332],[115.74614476627332,-31.96748299961181],[115.75215254541672,-31.984339524536825],[115.76192470647766,-31.999877329627832],[115.77508699734038,-32.013498495285226],[115.79113405546167,-32.02467860971055],[115.80944875753315,-32.03298706791088],[115.82932600191147,-32.03810376624169],[115.85,-32.03983152841195],[115.87067399808852,-32.03810376624169],[115.89055124246684,-32.03298706791088],[115.9088659445383,-32.02467860971055],[115.92491300265961,-32.013498495285226],[115.93807529352233,-31.999877329627832],[115.94784745458327,-31.984339524536825],[115.95385523372666,-31.96748299961181],[115.95586967392563,-31.949956081218332],[115.95381561848049,-31.93243250593327],[115.94777425511833,-31.915585501379805],[115.9379796537446,-31.90006194454343],[115.92480948282359,-31.886457585866385],[115.90877030460064,-31.87529427844094],[115.89047804277571,-31.867000068542428],[115.87063438268238,-31.861892890630344],[115.85,-31.86016847158805]],"type":"LineString"},"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"}}</maplink>

{{Maplink/sandbox}}

<maplink text="Map">{"type":"Feature","geometry":{"coordinates":[[115.85,-31.86016847158805],[115.8293656173176,-31.861892890630344],[115.80952195722428,-31.867000068542428],[115.79122969539935,-31.87529427844094],[115.7751905171764,-31.886457585866385],[115.76202034625538,-31.90006194454343],[115.75222574488166,-31.915585501379805],[115.7461843815195,-31.93243250593327],[115.74413032607436,-31.949956081218332],[115.74614476627332,-31.96748299961181],[115.75215254541672,-31.984339524536825],[115.76192470647766,-31.999877329627832],[115.77508699734038,-32.013498495285226],[115.79113405546167,-32.02467860971055],[115.80944875753315,-32.03298706791088],[115.82932600191147,-32.03810376624169],[115.85,-32.03983152841195],[115.87067399808852,-32.03810376624169],[115.89055124246684,-32.03298706791088],[115.9088659445383,-32.02467860971055],[115.92491300265961,-32.013498495285226],[115.93807529352233,-31.999877329627832],[115.94784745458327,-31.984339524536825],[115.95385523372666,-31.96748299961181],[115.95586967392563,-31.949956081218332],[115.95381561848049,-31.93243250593327],[115.94777425511833,-31.915585501379805],[115.9379796537446,-31.90006194454343],[115.92480948282359,-31.886457585866385],[115.90877030460064,-31.87529427844094],[115.89047804277571,-31.867000068542428],[115.87063438268238,-31.861892890630344],[115.85,-31.86016847158805]],"type":"LineString"},"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"}}</maplink>

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

{{Maplink}}

<maplink text="Map">{"type":"Feature","geometry":{"coordinates":[[115.85,-31.805430168739395],[115.81681151491782,-31.80820372056959],[115.78489264417267,-31.816418278580173],[115.75546508759207,-31.82975955398392],[115.72965642629126,-31.847716934737896],[115.70845729252153,-31.869602793181915],[115.69268348331867,-31.894578538340244],[115.6829444448901,-31.921686467685984],[115.67961936182239,-31.949886250957938],[115.68284184213599,-31.978094692794595],[115.69249389791709,-32.005227279674884],[115.70820958680233,-32.0302399275201],[115.72938831097217,-32.05216931577241],[115.75521738079992,-32.070170226465784],[115.7847030572537,-32.08354840487294],[115.81670891109073,-32.091787620734586],[115.85,-32.0945698312606],[115.88329108890925,-32.091787620734586],[115.9152969427463,-32.08354840487294],[115.94478261920007,-32.070170226465784],[115.97061168902782,-32.05216931577241],[115.99179041319765,-32.0302399275201],[116.0075061020829,-32.005227279674884],[116.017158157864,-31.978094692794595],[116.0203806381776,-31.949886250957938],[116.01705555510988,-31.921686467685984],[116.00731651668131,-31.894578538340244],[115.99154270747846,-31.869602793181915],[115.97034357370873,-31.847716934737896],[115.94453491240792,-31.82975955398392],[115.9151073558273,-31.816418278580173],[115.88318848508217,-31.80820372056959],[115.85,-31.805430168739395]],"type":"LineString"},"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"}}</maplink>

{{Maplink/sandbox}}

<maplink text="Map">{"type":"Feature","geometry":{"coordinates":[[115.85,-31.805430168739395],[115.81681151491782,-31.80820372056959],[115.78489264417267,-31.816418278580173],[115.75546508759207,-31.82975955398392],[115.72965642629126,-31.847716934737896],[115.70845729252153,-31.869602793181915],[115.69268348331867,-31.894578538340244],[115.6829444448901,-31.921686467685984],[115.67961936182239,-31.949886250957938],[115.68284184213599,-31.978094692794595],[115.69249389791709,-32.005227279674884],[115.70820958680233,-32.0302399275201],[115.72938831097217,-32.05216931577241],[115.75521738079992,-32.070170226465784],[115.7847030572537,-32.08354840487294],[115.81670891109073,-32.091787620734586],[115.85,-32.0945698312606],[115.88329108890925,-32.091787620734586],[115.9152969427463,-32.08354840487294],[115.94478261920007,-32.070170226465784],[115.97061168902782,-32.05216931577241],[115.99179041319765,-32.0302399275201],[116.0075061020829,-32.005227279674884],[116.017158157864,-31.978094692794595],[116.0203806381776,-31.949886250957938],[116.01705555510988,-31.921686467685984],[116.00731651668131,-31.894578538340244],[115.99154270747846,-31.869602793181915],[115.97034357370873,-31.847716934737896],[115.94453491240792,-31.82975955398392],[115.9151073558273,-31.816418278580173],[115.88318848508217,-31.80820372056959],[115.85,-31.805430168739395]],"type":"LineString"},"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"}}</maplink>

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

{{Maplink}}

<maplink text="Map">{"type":"Feature","geometry":{"coordinates":[[115.85,-31.949452387002793],[115.849874093005,-31.94946290917087],[115.84975302446142,-31.94949407132114],[115.8496414468945,-31.949544675929776],[115.84954364812009,-31.949612778320187],[115.8494633864736,-31.94969576139123],[115.84940374638175,-31.949790436185562],[115.84936701982726,-31.94989316443408],[115.84935461826208,-31.94999999836792],[115.84936701835511,-31.950106832426002],[115.84940374366157,-31.95020956102831],[115.84946338291951,-31.950304236352128],[115.84954364427317,-31.950387220047737],[115.84964144334039,-31.950455323062712],[115.84975302174124,-31.95050592820083],[115.84987409153283,-31.95053709070489],[115.85,-31.950547612997198],[115.85012590846715,-31.95053709070489],[115.85024697825875,-31.95050592820083],[115.8503585566596,-31.950455323062712],[115.8504563557268,-31.950387220047737],[115.85053661708048,-31.950304236352128],[115.85059625633842,-31.95020956102831],[115.85063298164486,-31.950106832426002],[115.8506453817379,-31.94999999836792],[115.85063298017273,-31.94989316443408],[115.85059625361822,-31.949790436185562],[115.85053661352637,-31.94969576139123],[115.8504563518799,-31.949612778320187],[115.8503585531055,-31.949544675929776],[115.85024697553855,-31.94949407132114],[115.85012590699499,-31.94946290917087],[115.85,-31.949452387002793]],"type":"LineString"},"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"}}</maplink>

{{Maplink/sandbox}}

<maplink text="Map">{"type":"Feature","geometry":{"coordinates":[[115.85,-31.949452387002793],[115.849874093005,-31.94946290917087],[115.84975302446142,-31.94949407132114],[115.8496414468945,-31.949544675929776],[115.84954364812009,-31.949612778320187],[115.8494633864736,-31.94969576139123],[115.84940374638175,-31.949790436185562],[115.84936701982726,-31.94989316443408],[115.84935461826208,-31.94999999836792],[115.84936701835511,-31.950106832426002],[115.84940374366157,-31.95020956102831],[115.84946338291951,-31.950304236352128],[115.84954364427317,-31.950387220047737],[115.84964144334039,-31.950455323062712],[115.84975302174124,-31.95050592820083],[115.84987409153283,-31.95053709070489],[115.85,-31.950547612997198],[115.85012590846715,-31.95053709070489],[115.85024697825875,-31.95050592820083],[115.8503585566596,-31.950455323062712],[115.8504563557268,-31.950387220047737],[115.85053661708048,-31.950304236352128],[115.85059625633842,-31.95020956102831],[115.85063298164486,-31.950106832426002],[115.8506453817379,-31.94999999836792],[115.85063298017273,-31.94989316443408],[115.85059625361822,-31.949790436185562],[115.85053661352637,-31.94969576139123],[115.8504563518799,-31.949612778320187],[115.8503585531055,-31.949544675929776],[115.85024697553855,-31.94949407132114],[115.85012590699499,-31.94946290917087],[115.85,-31.949452387002793]],"type":"LineString"},"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"}}</maplink>

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

{{Maplink}}

<maplink text="Map">{"type":"Feature","geometry":{"coordinates":[[115.85,-31.941016847158807],[115.84251439872313,-31.94364773214374],[115.83941302926709,-31.94999956081199],[115.8425133635252,-31.956351828668243],[115.85,-31.958983152841196],[115.85748663647479,-31.956351828668243],[115.8605869707329,-31.94999956081199],[115.85748560127686,-31.94364773214374],[115.85,-31.941016847158807]],"type":"LineString"},"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"}}</maplink>

{{Maplink/sandbox}}

<maplink text="Map">{"type":"Feature","geometry":{"coordinates":[[115.85,-31.941016847158807],[115.84251439872313,-31.94364773214374],[115.83941302926709,-31.94999956081199],[115.8425133635252,-31.956351828668243],[115.85,-31.958983152841196],[115.85748663647479,-31.956351828668243],[115.8605869707329,-31.94999956081199],[115.85748560127686,-31.94364773214374],[115.85,-31.941016847158807]],"type":"LineString"},"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"}}</maplink>

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

{{Maplink}}

<maplink text="Map">{"type":"Feature","geometry":{"coordinates":[[115.85,-31.941016847158807],[115.84902325266705,-31.941055163966812],[115.84805483617166,-31.94116978758071],[115.84710301035804,-31.941359740355125],[115.8461758936871,-31.941623402140717],[115.84528139404657,-31.94195852409106],[115.84442714135,-31.942362247827788],[115.8436204224969,-31.942831129801288],[115.84286811924724,-31.943361170639918],[115.84217664953864,-31.943947849238437],[115.84155191274614,-31.944586161295852],[115.84099923935078,-31.94527066197523],[115.84052334544671,-31.945995512322405],[115.84012829247526,-31.946754529049144],[115.83981745253034,-31.947541237256804],[115.83959347953339,-31.948348925651807],[115.8394582865245,-31.949170703782826],[115.83941302926709,-31.94999956081199],[115.83945809630738,-31.950828425319166],[115.83959310557674,-31.951650225629567],[115.83981690756886,-31.952457950150016],[115.8401275950669,-31.953244707198987],[115.84052251934094,-31.95400378381968],[115.84099831267959,-31.954728703073823],[115.84155091706621,-31.95541327932663],[115.84217561875668,-31.956051671050396],[115.84286708846528,-31.95663843069522],[115.84361942681696,-31.9571685512002],[115.84442621467878,-31.95763750874714],[115.84528056794076,-31.958041301390836],[115.84617519627875,-31.95837648323513],[115.84710246539656,-31.958640193862042],[115.848054462215,-31.958830182761904],[115.84902306244993,-31.958944828555182],[115.85,-31.958983152841196],[115.85097693755006,-31.958944828555182],[115.85194553778497,-31.958830182761904],[115.85289753460343,-31.958640193862042],[115.85382480372122,-31.95837648323513],[115.85471943205923,-31.958041301390836],[115.85557378532121,-31.95763750874714],[115.85638057318303,-31.9571685512002],[115.8571329115347,-31.95663843069522],[115.8578243812433,-31.956051671050396],[115.85844908293377,-31.95541327932663],[115.8590016873204,-31.954728703073823],[115.85947748065905,-31.95400378381968],[115.85987240493307,-31.953244707198987],[115.86018309243111,-31.952457950150016],[115.86040689442324,-31.951650225629567],[115.86054190369259,-31.950828425319166],[115.8605869707329,-31.94999956081199],[115.86054171347548,-31.949170703782826],[115.8604065204666,-31.948348925651807],[115.86018254746963,-31.947541237256804],[115.85987170752473,-31.946754529049144],[115.85947665455328,-31.945995512322405],[115.8590007606492,-31.94527066197523],[115.85844808725385,-31.944586161295852],[115.85782335046133,-31.943947849238437],[115.85713188075273,-31.943361170639918],[115.85637957750308,-31.942831129801288],[115.85557285864999,-31.942362247827788],[115.85471860595342,-31.94195852409106],[115.85382410631289,-31.941623402140717],[115.85289698964195,-31.941359740355125],[115.85194516382833,-31.94116978758071],[115.85097674733294,-31.941055163966812],[115.85,-31.941016847158807]],"type":"LineString"},"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"}}</maplink>

{{Maplink/sandbox}}

<maplink text="Map">{"type":"Feature","geometry":{"coordinates":[[115.85,-31.941016847158807],[115.84902325266705,-31.941055163966812],[115.84805483617166,-31.94116978758071],[115.84710301035804,-31.941359740355125],[115.8461758936871,-31.941623402140717],[115.84528139404657,-31.94195852409106],[115.84442714135,-31.942362247827788],[115.8436204224969,-31.942831129801288],[115.84286811924724,-31.943361170639918],[115.84217664953864,-31.943947849238437],[115.84155191274614,-31.944586161295852],[115.84099923935078,-31.94527066197523],[115.84052334544671,-31.945995512322405],[115.84012829247526,-31.946754529049144],[115.83981745253034,-31.947541237256804],[115.83959347953339,-31.948348925651807],[115.8394582865245,-31.949170703782826],[115.83941302926709,-31.94999956081199],[115.83945809630738,-31.950828425319166],[115.83959310557674,-31.951650225629567],[115.83981690756886,-31.952457950150016],[115.8401275950669,-31.953244707198987],[115.84052251934094,-31.95400378381968],[115.84099831267959,-31.954728703073823],[115.84155091706621,-31.95541327932663],[115.84217561875668,-31.956051671050396],[115.84286708846528,-31.95663843069522],[115.84361942681696,-31.9571685512002],[115.84442621467878,-31.95763750874714],[115.84528056794076,-31.958041301390836],[115.84617519627875,-31.95837648323513],[115.84710246539656,-31.958640193862042],[115.848054462215,-31.958830182761904],[115.84902306244993,-31.958944828555182],[115.85,-31.958983152841196],[115.85097693755006,-31.958944828555182],[115.85194553778497,-31.958830182761904],[115.85289753460343,-31.958640193862042],[115.85382480372122,-31.95837648323513],[115.85471943205923,-31.958041301390836],[115.85557378532121,-31.95763750874714],[115.85638057318303,-31.9571685512002],[115.8571329115347,-31.95663843069522],[115.8578243812433,-31.956051671050396],[115.85844908293377,-31.95541327932663],[115.8590016873204,-31.954728703073823],[115.85947748065905,-31.95400378381968],[115.85987240493307,-31.953244707198987],[115.86018309243111,-31.952457950150016],[115.86040689442324,-31.951650225629567],[115.86054190369259,-31.950828425319166],[115.8605869707329,-31.94999956081199],[115.86054171347548,-31.949170703782826],[115.8604065204666,-31.948348925651807],[115.86018254746963,-31.947541237256804],[115.85987170752473,-31.946754529049144],[115.85947665455328,-31.945995512322405],[115.8590007606492,-31.94527066197523],[115.85844808725385,-31.944586161295852],[115.85782335046133,-31.943947849238437],[115.85713188075273,-31.943361170639918],[115.85637957750308,-31.942831129801288],[115.85557285864999,-31.942362247827788],[115.85471860595342,-31.94195852409106],[115.85382410631289,-31.941623402140717],[115.85289698964195,-31.941359740355125],[115.85194516382833,-31.94116978758071],[115.85097674733294,-31.941055163966812],[115.85,-31.941016847158807]],"type":"LineString"},"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Maplink/testcases"}}</maplink>

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

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: Coordinates must be specified on Wikidata or in |coord=.

{{Maplink/sandbox}}

Lua error: Coordinates must be specified on Wikidata or in |coord=.

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: Coordinates must be specified on Wikidata or in |coord=.

{{Maplink/sandbox}}

Lua error: Coordinates must be specified on Wikidata or in |coord=.

Inside an infobox
{{maplink}} {{maplink/sandbox}}
coord=.
coord=.
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: Coordinates must be specified on Wikidata or in |coord=.

{{Maplink/sandbox}}

Lua error: Coordinates must be specified on Wikidata or in |coord=.

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: Coordinates must be specified on Wikidata or in |coord=.

{{Maplink/sandbox}}

Lua error: Coordinates must be specified on Wikidata or in |coord=.

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: Coordinates must be specified on Wikidata or in |coord=.

{{Maplink/sandbox}}

Lua error: Coordinates must be specified on Wikidata or in |coord=.

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: Coordinates must be specified on Wikidata or in |coord=.

{{Maplink/sandbox}}

Lua error: Coordinates must be specified on Wikidata or in |coord=.

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: Coordinates must be specified on Wikidata or in |coord=.

{{Maplink/sandbox}}

Lua error: Coordinates must be specified on Wikidata or in |coord=.

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

<mapframe height="200" text="Map" width="300">[ {"type":"Feature","geometry":{"coordinates":[-2.04331,52.52204],"type":"Point"},"properties":{"description":"52.52204°N 2.04331°W","title":"Dudley Port Junction","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[-2.0476,52.51758],"type":"Point"},"properties":{"description":"52.51758°N 2.04760°W","title":"Groveland Bridge (Tipton Road, A457)","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[-2.04843,52.5164],"type":"Point"},"properties":{"description":"52.51640°N 2.04843°W","title":"Tividale Aqueduct (Old BCN Main Line)","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[-2.04948,52.51534],"type":"Point"},"properties":{"description":"52.51534°N 2.04948°W","title":"Northern tunnel portal","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[-2.05518,52.5085],"type":"Point"},"properties":{"description":"52.50850°N 2.05518°W","title":"Aston Road air vent","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[-2.05708,52.50697],"type":"Point"},"properties":{"description":"52.50697°N 2.05708°W","title":"Regent Road air vent","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[-2.05932,52.50435],"type":"Point"},"properties":{"description":"52.50435°N 2.05932°W","title":"Approx. tunnel midpoint","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[-2.06916,52.49335],"type":"Point"},"properties":{"description":"52.49335°N 2.06916°W","title":"Southern tunnel portal","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[-2.07019,52.49157],"type":"Point"},"properties":{"description":"52.49157°N 2.07019°W","title":"Windmill End Junction","marker-color":"5E74F3"}} ]</mapframe>

{{Maplink/sandbox}}

<mapframe height="200" text="Map" width="300">[ {"type":"Feature","geometry":{"coordinates":[-2.04331,52.52204],"type":"Point"},"properties":{"description":"52.52204°N 2.04331°W","title":"Dudley Port Junction","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[-2.0476,52.51758],"type":"Point"},"properties":{"description":"52.51758°N 2.04760°W","title":"Groveland Bridge (Tipton Road, A457)","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[-2.04843,52.5164],"type":"Point"},"properties":{"description":"52.51640°N 2.04843°W","title":"Tividale Aqueduct (Old BCN Main Line)","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[-2.04948,52.51534],"type":"Point"},"properties":{"description":"52.51534°N 2.04948°W","title":"Northern tunnel portal","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[-2.05518,52.5085],"type":"Point"},"properties":{"description":"52.50850°N 2.05518°W","title":"Aston Road air vent","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[-2.05708,52.50697],"type":"Point"},"properties":{"description":"52.50697°N 2.05708°W","title":"Regent Road air vent","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[-2.05932,52.50435],"type":"Point"},"properties":{"description":"52.50435°N 2.05932°W","title":"Approx. tunnel midpoint","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[-2.06916,52.49335],"type":"Point"},"properties":{"description":"52.49335°N 2.06916°W","title":"Southern tunnel portal","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[-2.07019,52.49157],"type":"Point"},"properties":{"description":"52.49157°N 2.07019°W","title":"Windmill End Junction","marker-color":"5E74F3"}} ]</mapframe>

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

{{Maplink}}

<mapframe height="200" text="Map" width="300">[ {"type":"Feature","geometry":{"coordinates":[-2.06916,52.49335],"type":"Point"},"properties":{"description":"52.49335°N 2.06916°W","title":"Southern tunnel portal","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[-2.07019,52.49157],"type":"Point"},"properties":{"description":"52.49157°N 2.07019°W","title":"Windmill End Junction","marker-color":"5E74F3"}} ]</mapframe>

{{Maplink/sandbox}}

<mapframe height="200" text="Map" width="300">[ {"type":"Feature","geometry":{"coordinates":[-2.06916,52.49335],"type":"Point"},"properties":{"description":"52.49335°N 2.06916°W","title":"Southern tunnel portal","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[-2.07019,52.49157],"type":"Point"},"properties":{"description":"52.49157°N 2.07019°W","title":"Windmill End Junction","marker-color":"5E74F3"}} ]</mapframe>

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

{{Maplink}}

<mapframe height="200" text="Map" width="300">[ {"type":"Feature","geometry":{"coordinates":[115.86156,-31.95191],"type":"Point"},"properties":{"description":"31.95191°S 115.86156°E","title":"Barrack Street Bridge","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[115.853194,-32.010972],"type":"Point"},"properties":{"description":"32.010972°S 115.853194°E","title":"Canning Bridge","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[115.886,-31.966806],"type":"Point"},"properties":{"description":"31.966806°S 115.886000°E","title":"The Causeway","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[115.7546,-32.041],"type":"Point"},"properties":{"description":"32.0410°S 115.7546°E","title":"Fremantle Traffic Bridge","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[115.9164,-31.9324],"type":"Point"},"properties":{"description":"31.9324°S 115.9164°E","title":"Garratt Road Bridge","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[115.85944,-31.95083],"type":"Point"},"properties":{"description":"31.95083°S 115.85944°E","title":"Horseshoe Bridge","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[115.85861,-32.03333],"type":"Point"},"properties":{"description":"32.03333°S 115.85861°E","title":"Mount Henry Bridge","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[115.84694,-31.96333],"type":"Point"},"properties":{"description":"31.96333°S 115.84694°E","title":"Narrows Bridge","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[115.937028,-31.930194],"type":"Point"},"properties":{"description":"31.930194°S 115.937028°E","title":"Redcliffe Bridge","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[115.9013194,-32.027833],"type":"Point"},"properties":{"description":"32.027833°S 115.9013194°E","title":"Riverton Bridge","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[115.9017,-32.0237],"type":"Point"},"properties":{"description":"32.0237°S 115.9017°E","title":"Shelley Bridge","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[115.7593,-32.0392],"type":"Point"},"properties":{"description":"32.0392°S 115.7593°E","title":"Stirling Bridge","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[115.8451,-32.2718],"type":"Point"},"properties":{"description":"32.2718°S 115.8451°E","title":"Walley Bridge","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[115.8828,-31.9474],"type":"Point"},"properties":{"description":"31.9474°S 115.8828°E","title":"Windan Bridge","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[115.88286,-31.94794],"type":"Point"},"properties":{"description":"31.94794°S 115.88286°E","title":"Bunbury Bridge","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[115.8829,-31.9477],"type":"Point"},"properties":{"description":"31.9477°S 115.8829°E","title":"Goongoongup Bridge","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[115.85861,-32.03333],"type":"Point"},"properties":{"description":"32.03333°S 115.85861°E","title":"Mount Henry Bridge","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[115.84694,-31.96333],"type":"Point"},"properties":{"description":"31.96333°S 115.84694°E","title":"Narrows Bridge","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[115.85581,-31.95923],"type":"Point"},"properties":{"description":"31.95923°S 115.85581°E","title":"Elizabeth Quay Bridge","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[115.885,-31.954],"type":"Point"},"properties":{"description":"31.954°S 115.885°E","title":"Matagarup Bridge","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[115.88022,-31.95193],"type":"Point"},"properties":{"description":"31.95193°S 115.88022°E","title":"Trafalgar Bridge","marker-color":"5E74F3"}} ]</mapframe>

{{Maplink/sandbox}}

<mapframe height="200" text="Map" width="300">[ {"type":"Feature","geometry":{"coordinates":[115.86156,-31.95191],"type":"Point"},"properties":{"description":"31.95191°S 115.86156°E","title":"Barrack Street Bridge","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[115.853194,-32.010972],"type":"Point"},"properties":{"description":"32.010972°S 115.853194°E","title":"Canning Bridge","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[115.886,-31.966806],"type":"Point"},"properties":{"description":"31.966806°S 115.886000°E","title":"The Causeway","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[115.7546,-32.041],"type":"Point"},"properties":{"description":"32.0410°S 115.7546°E","title":"Fremantle Traffic Bridge","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[115.9164,-31.9324],"type":"Point"},"properties":{"description":"31.9324°S 115.9164°E","title":"Garratt Road Bridge","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[115.85944,-31.95083],"type":"Point"},"properties":{"description":"31.95083°S 115.85944°E","title":"Horseshoe Bridge","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[115.85861,-32.03333],"type":"Point"},"properties":{"description":"32.03333°S 115.85861°E","title":"Mount Henry Bridge","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[115.84694,-31.96333],"type":"Point"},"properties":{"description":"31.96333°S 115.84694°E","title":"Narrows Bridge","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[115.937028,-31.930194],"type":"Point"},"properties":{"description":"31.930194°S 115.937028°E","title":"Redcliffe Bridge","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[115.9013194,-32.027833],"type":"Point"},"properties":{"description":"32.027833°S 115.9013194°E","title":"Riverton Bridge","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[115.9017,-32.0237],"type":"Point"},"properties":{"description":"32.0237°S 115.9017°E","title":"Shelley Bridge","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[115.7593,-32.0392],"type":"Point"},"properties":{"description":"32.0392°S 115.7593°E","title":"Stirling Bridge","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[115.8451,-32.2718],"type":"Point"},"properties":{"description":"32.2718°S 115.8451°E","title":"Walley Bridge","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[115.8828,-31.9474],"type":"Point"},"properties":{"description":"31.9474°S 115.8828°E","title":"Windan Bridge","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[115.88286,-31.94794],"type":"Point"},"properties":{"description":"31.94794°S 115.88286°E","title":"Bunbury Bridge","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[115.8829,-31.9477],"type":"Point"},"properties":{"description":"31.9477°S 115.8829°E","title":"Goongoongup Bridge","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[115.85861,-32.03333],"type":"Point"},"properties":{"description":"32.03333°S 115.85861°E","title":"Mount Henry Bridge","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[115.84694,-31.96333],"type":"Point"},"properties":{"description":"31.96333°S 115.84694°E","title":"Narrows Bridge","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[115.85581,-31.95923],"type":"Point"},"properties":{"description":"31.95923°S 115.85581°E","title":"Elizabeth Quay Bridge","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[115.885,-31.954],"type":"Point"},"properties":{"description":"31.954°S 115.885°E","title":"Matagarup Bridge","marker-color":"5E74F3"}}, {"type":"Feature","geometry":{"coordinates":[115.88022,-31.95193],"type":"Point"},"properties":{"description":"31.95193°S 115.88022°E","title":"Trafalgar Bridge","marker-color":"5E74F3"}} ]</mapframe>

Lua error: Internal error: The interpreter has terminated with signal "24". Lua error: Internal error: The interpreter has terminated with signal "24".

Overlays

Lua error: Internal error: The interpreter has terminated with signal "24".