Gebruiker:HenkvD/Monumenten: verschil tussen versies

156 bytes verwijderd ,  2 maanden geleden
geen bewerkingssamenvatting
WITH {
SELECT DISTINCT ?id ?item WHERE {
VALUES ?item { wd:Q775Q816699 } # wd:Q775 wd:Q776 Gelderland en Utrecht wd:Q776
?id wdt:P131* ?item.
?id wdt:P359 []. # met Rijksmonument id
} AS %ids
WITH {
SELECT DISTINCT ?id ?item ?img ?id_Label WHERE {
INCLUDE %ids.
SERVICE wikibase:label {bd:serviceParam wikibase:language "[AUTO_LANGUAGE],nl,en".
# Button
BIND(SUBSTR(STR(?id), 32 ) AS ?qid)
BIND(CONCAT(' {','{','Clickable button 2|class=mw-ui-progressive|Upload Photo|url=https://commons.wikimedia.org/w/index.php?title=Special:UploadWizard&campaign=wlm-br&id=', STR(?qid), '&descriptionlang=pt&description=', IF(BOUND(?descr), ENCODE_FOR_URI(?descr), ''), '&categories=', ?cats, '}','}') AS ?button)
OPTIONAL { ?id schema:description ?descr.
FILTER((LANG(?descr)) = 'pt-br') }
BIND(CONCAT(' {','{','Clickable button 2|class=mw-ui-progressive|Upload Photo|url=https://commons.wikimedia.org/w/index.php?title=Special:UploadWizard&campaign=wlm-br&id=', STR(?qid), '&descriptionlang=pt&description=', IF(BOUND(?descr), ENCODE_FOR_URI(?descr), ''), '&categories=', ?cats, '}','}') AS ?button)
# Coordinates
22.937

bewerkingen