Modulo:Coord/sandbox: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
aggiornato al nuovo comportamento della getEntityObject (tabella detta di tipo "non-legacy style") |
+controllo getWikidataCoordinates |
||
Riga 59:
entity = mw.wikibase.getEntityObject()
if entity and entity.claims and
entity.claims.P625 and #entity.claims.P625 > 0 and entity.claims.P625[1].mainsnak.snaktype == "value" then
value = entity.claims.P625[1].mainsnak.datavalue.value
|