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
}}
 Has coordinatesHas location typeLocated in
Asia34° 2' 52.31" N, 100° 37' 10.76" EContinent
Belgium50° 30' 13.99" N, 4° 28' 11.77" ECountryEurope
Brussels50° 51' 1.22" N, 4° 21' 6.16" ECityBelgium
Christophe Ducamp48° 53' 9.02" N, 2° 20' 59.60" ELocal placeParis
Coasting41° 27' 41.08" N, 12° 40' 3.97" ECountryNettuno
Externsteine51° 52' 4.31" N, 8° 55' 4.90" ELocal placeGermany
Gent51° 3' 12.48" N, 3° 43' 49.37" ECityBelgium
Hamburg53° 33' 3.90" N, 9° 59' 37.25" ECityGermany
Khabarovsk48° 29' 8.29" N, 135° 4' 46.52" ECity
Moscow55° 44' 34.05" N, 37° 36' 55.44" ECityRussia
Netherlands52° 9' 37.64" N, 5° 37' 30.00" ECountryEurope
Norway60° 28' 19.29" N, 8° 28' 8.21" ECountryEurope
Portugal39° 34' 4.33" N, 8° 48' 39.73" WCountry
Russia61° 31' 26.44" N, 105° 19' 7.52" ECountryAsia

References

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