Modulo:DTGenerico: differenze tra le versioni

Vai alla navigazione Vai alla ricerca
(Formatting Coordinates)
m (Sign correction)
Riga 414: Riga 414:
Int, Frac = math.modf(Coord)
Int, Frac = math.modf(Coord)
table.insert(DMS, Int)
table.insert(DMS, Int)
Int, Frac = math.modf(Frac * 60)
Int, Frac = math.modf(math.abs(Frac) * 60)
table.insert(DMS, Int)
table.insert(DMS, Int)
Int, Frac = math.modf(Frac * 60)
Int, Frac = math.modf(math.abs(Frac) * 60)
table.insert(DMS, Int)
table.insert(DMS, Int)
end
end
return "[" .. URI .. " " ..  table.concat(DMS, " ") .. "]"
return "[" .. URI .. " " ..  table.concat(DMS, "<sup>s</sup> ") .. "]"
end
end
--- Function to expand template contained within description,
--- Function to expand template contained within description,