Jump to content

Module:Yesno: Difference between revisions

47 bytes removed ,  11 years ago
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
            any = true
             retvals[k] = v
             retvals[k] = v
         end
         end
Line 35: Line 34:
     end
     end


     val = val:lower()          -- Coerce to blank if nil; make lowercase.
     val = val:lower()          -- Make lowercase.
     val = val:match'^%s*(.*%S)' or ''  -- Trim whitespace.
     val = val:match'^%s*(.*%S)' or ''  -- Trim whitespace.


Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.