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

Content deleted Content added
add |map-data= to highlight bug (soon to be fixed); fix double escaping
use the same item for the outline as in the SPARQL query, because the resulting map makes more sense (not that it would make any difference from a testing POV)
Line 1:
{{OSM Location map/ModuleSandbox|coord = {{coord|51.86|4.36}}|zoom= 13|map-data=Q2680952Q2103147|map-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;