Anonimo

Modulo:DTGenerico: differenze tra le versioni

Da Wikitrek.
Result fixed
(AR and D)
(Result fixed)
Riga 140: Riga 140:
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
if SkyMapURL == nil then
if SkyMapURL == nil then
--SkyMapURL = "https://secure.sky-map.org/v2?ra=|RA|&de=|D|"
--SkyMapURL = "https://secure.sky-map.org/v2?ra=|RA|&de=|D|"
SkyMapURL = "https://secure.sky-map.org/v2?"
SkyMapURL = "https://secure.sky-map.org/v2?"
else
else
SkyMapURL = SkyMapURL .. "&"
SkyMapURL = SkyMapURL .. "&"
DoReturn = true
end
end
local Parameter
local Parameter
Riga 156: Riga 158:
SkyMapURL = SkyMapURL .. Parameter .. "=" .. Item.claims[Property][1].mainsnak.datavalue.value.amount
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}}
if DoReturn then
AllRows[#AllRows + 1] = {{"P80 e P82", "Coordinate celesti"}, {SkyMapURL}}
end
elseif Property == "P14" then
elseif Property == "P14" then
--Instance
--Instance