Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Yesno: Difference between revisions

Content added Content deleted
(fix variable name)
(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.
Cookies help us deliver our services. By using our services, you agree to our use of cookies.