66 506
contributi
(Abbreviation HT) |
(AR and D) |
||
Riga 91: | Riga 91: | ||
local IsEpisode = false | local IsEpisode = false | ||
local OperatorName | local OperatorName | ||
local SkyMapURL = nil | |||
if not Item then | if not Item then | ||
Riga 137: | Riga 138: | ||
--Previous or Next | --Previous or Next | ||
CollectionTable = string.char(10) .. MakeNavTable(Item.claims, nil) | CollectionTable = string.char(10) .. MakeNavTable(Item.claims, nil) | ||
elseif (Property == "P80" or Property == "P82") then | |||
--Right Ascension or Declination | |||
if SkyMapURL == nil then | |||
--SkyMapURL = "https://secure.sky-map.org/v2?ra=|RA|&de=|D|" | |||
SkyMapURL = "https://secure.sky-map.org/v2?" | |||
else | |||
SkyMapURL = SkyMapURL .. "&" | |||
end | |||
local Parameter | |||
if Property == "P80" then | |||
--Right ascension | |||
Parameter = "ra" | |||
else | |||
--Declination | |||
Parameter = "de" | |||
end | |||
SkyMapURL = SkyMapURL .. Parameter .. "=" .. Item.claims[Property][1].mainsnak.datavalue.value.amount | |||
AllRows[#AllRows + 1] = {{Property, (mw.wikibase.getLabelByLang(Property, 'it') or mw.wikibase.getLabel(Property))}, {SkyMapURL}} | |||
elseif Property == "P14" then | elseif Property == "P14" then | ||
--Instance | --Instance |