66 506
contributi
m (Sign correction) |
(Coordinate output fixed) |
||
Riga 417: | Riga 417: | ||
table.insert(DMS, Int) | table.insert(DMS, Int) | ||
Int, Frac = math.modf(math.abs(Frac) * 60) | Int, Frac = math.modf(math.abs(Frac) * 60) | ||
if Frac > 0.5 then | |||
Int = Int + 1 | |||
end | |||
table.insert(DMS, Int) | table.insert(DMS, Int) | ||
end | end | ||
return "[" .. URI .. " " .. table.concat(DMS, "<sup>s</sup> ") .. "]" | --return "[" .. URI .. " " .. table.concat(DMS, "<sup>s</sup> ") .. "]" | ||
return "[" .. URI .. " " .. DMS[1] .. "<sup>h</sup> " .. DMS[2] .. "<sup>m</sup> " .. DMS[3] .. "<sup>s</sup><br />" .. DMS[4] .. "° " .. DMS[5] .. "′ " .. DMS[6] .. "″]" | |||
end | end | ||
--- Function to expand template contained within description, | --- Function to expand template contained within description, |