Anonimo

Modulo:DTGenerico: differenze tra le versioni

Da Wikitrek.
Pulizia
mNessun oggetto della modifica
(Pulizia)
Riga 139: Riga 139:
end
end
table.insert(AllP, 1, "P14")
mw.smw.set("AllP=" .. table.concat(AllP, ","))
mw.smw.set("AllP=" .. table.concat(AllP, ","))
for _, Property in pairs(AllP) do
for _, Property in pairs(AllP) do
Riga 151: Riga 152:
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
--SkyMapURL = "https://secure.sky-map.org/v2?ra=|RA|&de=|D|"
SkyMapURL = "https://secure.sky-map.org/v2?"
else
SkyMapURL = SkyMapURL .. "&"
DoReturn = true
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
if DoReturn then
AllRows[#AllRows + 1] = {{"P80 e P82", "Coordinate celesti"}, {SkyMapURL}}
end
]==]
if Property == "P80" then
if Property == "P80" then
--Right ascension
--Right ascension