Semantic Maps examples/Using templates (queries)

From semantic-mediawiki.org
Jump to: navigation, search
Semantic Maps examplesSemantic Maps examples/Using templates (queries)
Important noteImportant Note: Using the template parameter is broken in current versions of the Maps extension.1

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

{{#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...