Difference between revisions of "Module:Yesno"
use frame.args for testing
>Mr. Stradivarius (simplify/optimise) |
>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 |