Module:Grammar: Difference between revisions

Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 19: Line 19:
parsedtext = string.gsub(frame.args[1], "=([^=]+)=", function(f)
parsedtext = string.gsub(frame.args[1], "=([^=]+)=", function(f)
  for a, b, c in string.gmatch(f, "(%w*)[:%.]?(['%w]*)(:?%w*)") do
  for a, b, c in string.gmatch(f, "(%w*)[:%.]?(['%w]*)(:?%w*)") do
   if b == nil then
   if b == nil or b == "" then
       if a == "article" then
       if a == "article" then
         return "a"
         return "a "
       else
       else
         return a
         return a