Difference between revisions of "Module:IDs"

From Taskman Wiki
Jump to navigation Jump to search
m
m
Line 9: Line 9:
 
   return ret .. "</span>"
 
   return ret .. "</span>"
 
end
 
end
 +
 +
return p

Revision as of 14:19, 18 May 2020

Documentation for this module may be created at Module:IDs/doc

local p = {};

function p.run(frame)
  local ids = frame.args[1]
  local ret = "<span style=\"font-family: monospace; font-size: 13px;\">"
  for id in string.gmatch(ids, "([A-Z0-9]{4,})(?:,|$)") do
    ret = ret .. id .. utf8.char(2002)
  end
  return ret .. "</span>"
end

return p