Semantic Maps examples/Using templates (queries)

From semantic-mediawiki.org
Jump to: navigation, search
Semantic Maps examplesSemantic Maps examples/Using templates (queries)

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

{{#ask: [[Category:Locations]]
| ?Has coordinates
| format=googlemaps
| 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=googlemaps
| template=Location Popup
| showtitle=off
| icon=Blue_marker.png
}}
Loading map...