Difference between revisions of "Module:Yesno"

Jump to navigation Jump to search
47 bytes removed ,  10:29, 23 March 2013
removing code that's no longer used
>Mr. Stradivarius
(fix logic for the case where the first positional parameter is "¬")
>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

Navigation menu