Module:Yesno: Difference between revisions
use parent args again
m>Mr. Stradivarius (fix variable name) |
m>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. |