66 521
contributi
(Coordinate output fixed) |
(Coordinates output fixed) |
||
Riga 409: | Riga 409: | ||
local DMS = {} | local DMS = {} | ||
URI = "http://www.wikisky.org/v2?ra=" .. RA .. "&de=" .. D .. "&zoom= | -- Zoom value 7 is the standard one when searching object in WikiSky | ||
URI = "http://www.wikisky.org/v2?ra=" .. RA .. "&de=" .. D .. "&zoom=7" | |||
for _, Coord in pairs({RA, D}) do | for _, Coord in pairs({RA, D}) do | ||
Riga 425: | Riga 426: | ||
--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> | return "[" .. URI .. " " .. DMS[1] .. "<sup>h</sup> " .. DMS[2] .. "<sup>m</sup> " .. DMS[3] .. "<sup>s</sup>, " .. DMS[4] .. "° " .. DMS[5] .. "′ " .. DMS[6] .. "″]" | ||
end | end | ||
--- Function to expand template contained within description, | --- Function to expand template contained within description, |