Template:Moscow district OSM map/doc
![]() | This is a documentation subpage for Template:Moscow district OSM map. It may contain usage information, categories and other content that is not part of the original template page. |
Usage
<syntaxhighlight lang="wikitext"> <mapframe zoom="8" text="Map" height="320" latitude="55.55" longitude="37.45" width="270">{ "type": "ExternalData", "service": "geoshape", "properties": { "stroke-width": 1 }, "query": " SELECT ?id (if(?id = wd:, '#C12838', '#07c63e') as ?fill) (if(BOUND(?link), concat('', ?idLabel, ''), ?idLabel) as ?title) WHERE { { ?id p:P31/ps:P31/wdt:P279* wd:Q4373614 . hint:Prior hint:gearing 'forward' } UNION { ?id p:P31/ps:P31/wdt:P279* wd:Q4389092 . hint:Prior hint:gearing 'forward' } ?id p:P131 ?locst . ?locst ps:P131/wdt:P131* wd:Q649. hint:Prior hint:gearing 'forward' MINUS { ?locst pq:P582 [] } SERVICE wikibase:label { bd:serviceParam wikibase:language 'en' . ?id rdfs:label ?idLabel . } OPTIONAL {?link schema:about ?id . ?link schema:isPartOf <https://en.wikipedia.org/> . } } GROUP BY ?id ?link ?idLabel "}</mapframe> </syntaxhighlight>