Modulo:Software: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
super ricorsione Wikidata Considerazioni implementative -- ora nessuna licenza ci scappa!
recursion 4 perchè il caso peggiore si allunga con d:Q28920174 free software copyleft license < d:Q7603 GNU GPL
Riga 10:
local PROPRIETARY = 2 -- È una licenza di software proprietario
 
local MAX_RECURSION = 34 -- [[Modulo:Software/man#Considerazioni implementative]]
 
-------------------------------- Sgabuzzino ------------------------------------
Riga 66:
* ]]
local function rawProperties(from, property)
return mWikidata._getProperty({property, from = from, formatting = 'raw'}, true)
end
 
Riga 377:
]]
return license == 'Q3943414' and FREE
or (license == 'Q14624820' or license == 'Q218616') and PROPRIETARY
or UNKNOWN
end
Riga 388:
* ]]
function p._findLicenseType(licenses)
local type = UNKNOWN
for _, license in pairs(licenses) do
type = p._singleLicenseType(license)
if type ~= UNKNOWN then
break
end
end
return type
end