Template:Query map and Template:Query map/sandbox: Difference between pages
(Difference between pages)
imported>MSGJ blank template because maps are not working currently |
imported>MSGJ default zoom=4 for countries |
||
| Line 1: | Line 1: | ||
<noinclude> | <div class="thumb tright> | ||
<div class="thumbinner" style="width:{{#expr:{{{width|350}}}+2}}px"> | |||
{{Map with marks | |||
|minimap=false | |||
|colorScaleField=type | |||
|lat = {{#invoke:WikidataIB|getValue|P625|qid={{{location|{{{country|<noinclude>Q131277</noinclude>}}}}}}|show=lat|noicon=true|fwd=ALL|osd=no}} | |||
|lon = {{#invoke:WikidataIB|getValue|P625|qid={{{location|{{{country|<noinclude>Q131277</noinclude>}}}}}}|show=lon|noicon=true|fwd=ALL|osd=no}} | |||
|zoom = {{{zoom|{{#if:{{#Property:P6592|from={{{location|{{{country|}}}}}}}}|{{#Property:P6592|from={{{location|{{{country|}}}}}}}}|{{#if:{{{country|}}}|4|6}}}}}}} | |||
|wdqs= #defaultView:Map | |||
SELECT ?item ?itemLabel (SAMPLE(?coordinate) as ?coord) WITH { | |||
SELECT ?item WHERE { | |||
?item {{#if:{{{country|}}}|wdt:P17 wd:{{{country}}}|wdt:P131/wdt:P131* wd:{{{location|<noinclude>Q131277</noinclude>}}}}}. | |||
} } as %i | |||
WHERE { | |||
INCLUDE %i | |||
?item wdt:P625 ?coordinate. | |||
?item wdt:P31/wdt:P279* wd:{{{class|<noinclude>Q12323</noinclude>}}}. hint:Prior hint:gearing "forward". | |||
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } | |||
} | |||
GROUP BY ?item ?itemLabel | |||
|caption={{{caption|Map of {{label|{{{class|<noinclude>Q12323</noinclude>}}}}}s in {{label|{{{location|{{{country|<noinclude>Q131277</noinclude>}}}}}}}}.}}} | |||
}} | |||
</div></div><noinclude> | |||
{{doc}} | {{doc}} | ||
</noinclude> | </noinclude> | ||