Modulo:Controllo Wikidata/sandboxUnitTest: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
m -parentOnly per p.category
m fix
Riga 82:
]]--
function p._main(args)
local wdprop, userval, catprefix = args[1], args[2], args[3]
 
-- namespace 0 obbligatorio salvo everyNS
if mw.title.getCurrentTitle().namespace ~= 0 and args.everyNS ~= 'sì' then
Riga 92 ⟶ 94:
end
 
local wdprop, userval, catprefix = args[1], args[2], args[3]
local category = p._category(wdprop, userval, catprefix, args)
return category and string.format('[[Categoria:%s]]', category) or ''