Difference between revisions of "Module:Yesno"

Jump to navigation Jump to search
24 bytes added ,  10:13, 28 March 2013
use parent args again
>Mr. Stradivarius
(fix variable name)
>Mr. Stradivarius
(use parent args again)
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.args) do
     for k,v in pairs(frame:getParent().args) do
         retvals[k] = v
         retvals[k] = v
     end
     end


     val = frame.args[1]
     val = frame:getParent().args[1]


     -- First deal with the case if val is nil, then deal with other cases.
     -- First deal with the case if val is nil, then deal with other cases.
Anonymous user

Navigation menu