m
Allow passing in the current frame to norm() and still do proper processing
(updates to make compatible with upcoming changes to Module:Language, hopefully this won't break) |
m (Allow passing in the current frame to norm() and still do proper processing) |
||
-- A frame's arg table can never be nil since it is a metatable
function p.norm( origArgs )
if type( origArgs ) ~= 'table' or origArgs == mw.getCurrentFrame() then
local frame = mw.getCurrentFrame()
local parent = frame:getParent()
local normedParent = {}
|