Zum Inhalt springen

Modul:TwitterSnowflake: Unterschied zwischen den Versionen

Update from sandbox
(Add datecheck function, duplicating Template:TwitterSnowflake/datecheck, for WP:PEIS reasons.)
(Update from sandbox)
Zeile 55: Zeile 55:
args.error3 or 'Invalid id_str'
args.error3 or 'Invalid id_str'
}
}
if mw.title.getCurrentTitle():inNamespace(0) and args.error_cat then
for i = 1, 3 do errors[i] = errors[i] .. '[[' .. args.error_cat .. ']]' end
end
if not args.date:match('^%s*$') then -- #if:{{{date|}}}
if not args.date:match('^%s*$') then -- #if:{{{date|}}}
local testResult = p.getDate{ args = { date = args.date, id_str = args.id_str }}
local testResult = p.getDate{ args = { date = args.date, id_str = args.id_str }}
Anonymer Benutzer