Module:Yesno: Difference between revisions
Jump to navigation
Jump to search
m>Mr. Stradivarius simplify/optimise |
m>Mr. Stradivarius use frame.args for testing |
||
Line 12: | Line 12: | ||
-- Allow arguments to override defaults. Arguments are taken from | -- Allow arguments to override defaults. Arguments are taken from | ||
-- the parent frame; other arguments are ignored. | -- the parent frame; other arguments are ignored. | ||
for k,v in pairs(frame | for k,v in pairs(frame.args) do | ||
retvals[k] = v | retvals[k] = v | ||
end | end |