Module:Frame
Jump to navigation
Jump to search
Documentation for this module may be created at Module:Frame/doc
local p = {}
local w_table = require( 'module:table' )
function p.args( f, untrimmed )
if type( f ) ~= 'table' or f == mw.getCurrentFrame() then
f = f.args or {}
end
if f['use parent args'] then
f = w_table.merge( f, mw.getCurrentFrame():getParent().args )
end
if not untrimmed then
f = w_table.trim( f )
end
return f
end
return p