Modulo:Software: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
+yesNo +yesNoNil; bool2human → yesNoNil
m fix p.licenses()
Riga 188:
end
 
--[[
* Le licenze della voce.
*
* @return pairs( {} )
]]
-- Cache
local licenses_ = false
function p.licenses(frame)
if licenses_ == false then
licenses_ = mWikidata._getClaims('P275') or {}
-- Property:P275 license
licenses_ = mWikidata._getClaims('P275')
end
return licenses_
Riga 222 ⟶ 226:
]]
function p._hasAFreeLicense(frame)
for _, license in pairs( p.licenses(frame) ) do
if p._licenseIsFree(license) then
return true
Riga 234 ⟶ 238:
]]
function p._hasAProprietaryLicense(frame)
for _, license in pairs( p.licenses(frame) ) do
if p._licenseIsProprietary(license) then
return true