Difference between revisions of "Module:Yesno"

12 bytes removed ,  10:11, 28 March 2013
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:getParent().args) do
     for k,v in pairs(frame.args) do
         retvals[k] = v
         retvals[k] = v
     end
     end
Anonymous user