Template:Mappa Rolli di Genova: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
fix formato JSON con caratteri non validi
Fix
Riga 2:
"type": "ExternalData",
"service": "geoshape",
"query": "SELECT DISTINCT ?id ?idLabel (if(?class = wd:Q41318677Q10293286, '#F00', '#AAA') as ?fill)\n(concat('[[', substr(str(?link),31,500), ']]') as ?title)\n(concat(if(?class = wd:Q41318677Q10293286, 'Patrimonio UNESCO', ''), '\\n', '[[File:', substr(str(?img), 52, 500), '{{!}}200px]]') as \n?description)\nWHERE\n{\n ?id wdt:P361 ?class.\n FILTER (?class = wd:Q51279768 || ?class = wd:Q41318677Q10293286).\n OPTIONAL {?id wdt:P18 ?img.}\n\n \t?link schema:about ?id .\n ?link schema:inLanguage 'it' .\n\tSERVICE wikibase:label { bd:serviceParam wikibase:language 'it' }\n}"}</includeonly><noinclude>
Questo template restituisce il [[GeoJSON]] per evidenziare i [[Rolli di Genova|Palazzi dei Rolli]] su una mappa [[OpenStreetMap]]. Va utilizzata con i tag mapframe o maplink (usando #tag:mapframe e #tag:maplink, documentazione a [[mw:Help:Extension:Kartographer]]) oppure con un template itwiki che supporti il GeoJSON, come [[T:Mappa OSM]].