66 602
contributi
(Result fixed) |
(Celestial coordinates simplified) |
||
Riga 91: | Riga 91: | ||
local IsEpisode = false | local IsEpisode = false | ||
local OperatorName | local OperatorName | ||
local | local AstroRA = nil | ||
local AstroD = nil | |||
if not Item then | if not Item then | ||
Riga 140: | Riga 141: | ||
elseif (Property == "P80" or Property == "P82") then | elseif (Property == "P80" or Property == "P82") then | ||
--Right Ascension or Declination | --Right Ascension or Declination | ||
--[==[ | |||
local DoReturn = false | local DoReturn = false | ||
if SkyMapURL == nil then | if SkyMapURL == nil then | ||
Riga 160: | Riga 163: | ||
if DoReturn then | if DoReturn then | ||
AllRows[#AllRows + 1] = {{"P80 e P82", "Coordinate celesti"}, {SkyMapURL}} | AllRows[#AllRows + 1] = {{"P80 e P82", "Coordinate celesti"}, {SkyMapURL}} | ||
end | |||
]==] | |||
if Property == "P80" then | |||
--Right ascension | |||
AstroRA = Item.claims[Property][1].mainsnak.datavalue.value.amount | |||
else | |||
--Declination | |||
AstroD = Item.claims[Property][1].mainsnak.datavalue.value.amount | |||
end | |||
if (not AstroRA) and (not AstroD) then | |||
AllRows[#AllRows + 1] = {{"P80 e P82", "Coordinate celesti"}, {p.SkyMapLink(AstroRA, AstroD)}} | |||
end | end | ||
elseif Property == "P14" then | elseif Property == "P14" then |