Modulo:FictionTV/sandbox: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
m debug |
+controllo nocatperanno e ns0 |
||
Riga 42:
function p.categorie_anno(frame)
local args, inizio, produzione, fine, err, cat, finecat
local ns0 = mw.title.getCurrentTitle().namespace == 0
local ret = {}
args = getArgs(frame)
-- con il parametro nocatperanno restituisce direttamente annoprimatv
if args.nocatperanno then
return args.annoprimatv
end
-- annoprimatv e tipofiction sono obbligatori
Line 81 ⟶ 87:
end
if cat and (ns0 or args.debug) then
table.insert(ret, string.format('[[Categoria:%s]]', cat))
end
if finecat and (ns0 or args.debug) then
table.insert(ret, string.format('[[Categoria:%s]]', finecat))
end
|