Diferencia entre revisiones de «Módulo:Wikidata»

Sin resumen de edición
Sin resumen de edición
Línea 40: Línea 40:
   
   
function formatStatements( options )
function formatStatements( options )
     if options.property == 'latitud' or options.property == 'longitud' or options.property == 'altitude' then
     if options.property == 'latitud' or options.property == 'longitud' or options.property == 'precisión' then
         propiedad = 'p625'
         propiedad = 'p625'
     else  
     else  
Línea 121: Línea 121:
     elseif options.property == 'longitud' then
     elseif options.property == 'longitud' then
         return datavalue.value['longitude']
         return datavalue.value['longitude']
     elseif options.property == 'altitud' then
     elseif options.property == 'precisión' then
         return datavalue.value['altitude']
         return datavalue.value['precision']


     elseif datavalue.type == 'wikibase-entityid' then
     elseif datavalue.type == 'wikibase-entityid' then