Module:IDs

From Taskman Wiki
Revision as of 14:19, 18 May 2020 by Annilys (talk | contribs)
Jump to navigation Jump to search

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