Module:Yesno: Difference between revisions

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