Modulo:Software: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
m disabling cache
re-enabling cache
Riga 213:
local licenseIsFree_ = {}
function p._licenseIsFree(license)
--if licenseIsFree_[license] == nil then
return mWikidata._instanceOf({'Q3943414'}, {from = license})
-- TODO cache does not work?
 
--if licenseIsFree_[license] == nil then
-- Q3943414 free software license
-- licenseIsFree_[license] = mWikidata._instanceOf({'Q3943414'}, {from = license}) or false
--end
--return licenseIsFree_[license]
end
 
Riga 228 ⟶ 225:
if licenseIsProprietary_[license] == nil then
-- Q725920 end-user license agreement
licenseIsProprietary_[license] = mWikidata._instanceOf({'Q725920'}, {from = license}) or false
end
return licenseIsProprietary_[license]