62 737
modifications
mAucun résumé des modifications |
mAucun résumé des modifications |
||
Ligne 2 : | Ligne 2 : | ||
function p.build(frame) | function p.build(frame) | ||
local args = | local args = {} | ||
local argsParent = frame:getParent().args | |||
local | |||
--Paramètres vides interprétés par Lua | |||
for cle, val in pairs(argsParent) do | |||
if val ~= '' then | |||
args[cle] = mw.text.trim(val) | |||
end | |||
end | end | ||
return p._build(args) | |||
end | |||
function p._build(args) | |||
local bannerType = args[1] or '' | local bannerType = args[1] or '' | ||
local source = args['source'] or 'source ?' | local source = args['source'] or 'source ?' |
modifications