Difference between revisions of "Module:IDs"

From Taskman Wiki
Jump to navigation Jump to search
m
m
Line 4: Line 4:
 
   local ids = frame:getParent().args[1]
 
   local ids = frame:getParent().args[1]
 
   local ret = "<span style=\"font-family: monospace; font-size: 13px;\">"
 
   local ret = "<span style=\"font-family: monospace; font-size: 13px;\">"
 +
  mw.logObject(ids)
 
   for v in string.gmatch(ids, "([A-Z0-9]{4,})") do
 
   for v in string.gmatch(ids, "([A-Z0-9]{4,})") do
 
     ret = ret .. v .. " "
 
     ret = ret .. v .. " "

Revision as of 14:35, 18 May 2020

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

local p = {};

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

return p