Module:Yesno: Difference between revisions
removing code that's no longer used
m>Mr. Stradivarius (fix logic for the case where the first positional parameter is "¬") |
m>Mr. Stradivarius (removing code that's no longer used) |
||
Line 23: | Line 23: | ||
args = pframe.args | args = pframe.args | ||
for k,v in pairs(args) do | for k,v in pairs(args) do | ||
retvals[k] = v | retvals[k] = v | ||
end | end | ||
Line 35: | Line 34: | ||
end | end | ||
val = val:lower() -- | val = val:lower() -- Make lowercase. | ||
val = val:match'^%s*(.*%S)' or '' -- Trim whitespace. | val = val:match'^%s*(.*%S)' or '' -- Trim whitespace. | ||