Semantic Maps examples/Using templates (queries)

From semantic-mediawiki.org
< Category:Semantic Maps examples
Semantic Maps examplesSemantic Maps examples/Using templates (queries)

Adding a link to maps.google.com by using a template. See template.

Using the template parameter is broken in current versions of the Maps extension.1
{{#ask:
 [[Category:Locations]]
 |?Has coordinates
 |format=openlayers
 |template=Google Maps Link
}}
Loading map...

Custom formatting of the queried properties using the template and showtitle parameters. See used template.

{{#ask:
 [[Category:Locations]]
 |?Has coordinates
 |?Has location type 
 |?Located in
 |format=openlayers
 |template=Location Popup
 |showtitle=off
 |icon=Blue_marker.png
}}
Loading map...

References

  1. ^  Maps: GitHub issue gh:m:248