Modulo:Coord/sandbox: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
m uniformate virgolette
aggiornato al nuovo comportamento della getEntityObject (tabella detta di tipo "non-legacy style")
Riga 60:
entity = mw.wikibase.getEntityObject()
if entity and entity.claims and entity.claims.P625 and
entity.claims.P625[01].mainsnak.snaktype == "value" then
value = entity.claims.P625[01].mainsnak.datavalue.value
lat = round(value.latitude, 6)
long = round(value.longitude, 6)