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
value = entity.claims.P625[
lat = round(value.latitude, 6)
long = round(value.longitude, 6)
|