Modul:Icon: Unterschied zwischen den Versionen
get the args with pairs so that we don't fetch args.size and args.class from the frame object every time
(create replacement for Template:Icon) |
(get the args with pairs so that we don't fetch args.size and args.class from the frame object every time) |
||
| Zeile 24: | Zeile 24: | ||
function p.main(frame) | function p.main(frame) | ||
local args = {} | |||
for k, v in pairs(frame:getParent().args) do | |||
args[k] = v | |||
end | |||
return p._main(args) | |||
end | end | ||
return p | return p | ||