Template:OSM Location map/ModuleSandbox/doc: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 1:
{{OSM Location map/ModuleSandbox|coord = {{coord|51.86|4.36}}|zoom= 13|map-wdqs-type=geopoint|map-wdqs=
|maq-wdqs-type=geopoint|map-wdqs=
SELECT DISTINCT ?id ?geo (?idLabel AS ?title) (IF(BOUND(?image), CONCAT(?typeLabel, "\\n", "[[File:", SUBSTR(STR(?image), 52 , 400 ), "{{!}}200px]]"), ?typeLabel) AS ?description) (IF(?type = wd:Q860861, "#800000", IF(?type = wd:Q245117, "#000080", "#008000")) AS ?marker_color) WHERE {
?id wdt:P136 wd:Q557141;
Line 16 ⟶ 15:
}}
 
{{OSM Location map/ModuleSandbox|coord = {{coord|51.86|4.36}}|zoom= 13|map-wdqs-type=geoshape||map-wdqs=
|maq-wdqs-type=geoshape||map-wdqs=
SELECT ?id ?head (SAMPLE(?img) AS ?img_) (MIN(?partyId) AS ?party) (IF(?party = "0", "#800000", IF(?party = "1", "#000080", "#008000")) AS ?fill) (CONCAT("[[w:", SUBSTR(STR(?link), 31 , 400 ), "{{!}}", ?headLabel, "]]") AS ?title) (CONCAT(?stateLabel, "\\n", "[[File:", SUBSTR(STR(?img_), 52 , 400 ), "{{!}}200px]]") AS ?description) WHERE {
?id wdt:P31 wd:Q35657;