Module:Yesno: Difference between revisions

Jump to navigation Jump to search
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.