Template:Swiss subdivision OSM map
Usage
<syntaxhighlight lang="wikitext"> <mapframe zoom="8" align="center" frameless="1" height="250" width="300">{ "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:Q662914 . hint:Prior hint:gearing 'forward' } ?id p:P131 ?locst . ?locst ps:P131/wdt:P131* wd:. MINUS { ?locst pq:P582 [] } MINUS { ?id wdt:P576 [] } MINUS { ?id p:P31/ps:P31 wd:Q685309. } 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>
OR
<mapframe zoom="8" align="center" frameless="1" height="250" width="300">{ "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:Q70208 . hint:Prior hint:gearing 'forward' } ?id p:P131 ?locst . ?locst ps:P131/wdt:P131* wd:. MINUS { ?locst pq:P582 [] } MINUS { ?id wdt:P576 [] } MINUS { ?id p:P31/ps:P31 wd:Q685309. } 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>