Modulo:Software: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
recursion 4 perchè il caso peggiore si allunga con d:Q28920174 free software copyleft license < d:Q7603 GNU GPL
+p.licenseCategories()
Riga 93:
function p.licenses(frame)
local s = ''
for i, l in pairs( p._licenses(frame) ) do
local space = i == 1 and '' or '<br />'
s = s .. space .. mWikidata._formatStatement(l, {formatting = 'raw'})
end
return s
end
 
function p.licenseCategories()
local s = ''
for i, l in pairs( p._licenses() ) do
l = mWikidata._formatStatement(l, {formatting = 'raw'})
catpart = config.licenseCategory[l]
if catpart then
s = s .. string.format("[[Categoria:Software in licenza %s]]", catpart)
end
end
return s
end