Module:Sandbox/DixonD/DateTemplates: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 7:
local function getArgs(frame)
local args = frame.args;
if args[1] == nil then
-- if there are any arguments, then assume that we've got proper ones
local parent = frame:getParent();
for k,v in pairs(args) =do parent.args;
return args
end
return args
-- otherwise, return args from the parent
local parent = frame:getParent();
return parent.args;
end