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
 
   local ids = frame:getParent().args
 
   local ret = "<span style=\"font-family: monospace; font-size: 13px;\">"
 
   local ret = "<span style=\"font-family: monospace; font-size: 13px;\">"
   for id in ids do
+
   for k,v in pairs(ids) do
     ret = ret .. id .. utf8.char(2002)
+
     ret = ret .. v .. utf8.char(2002)
 
   end
 
   end
 
   return ret .. "</span>"
 
   return ret .. "</span>"

Revision as of 14:26, 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
  local ret = "<span style=\"font-family: monospace; font-size: 13px;\">"
  for k,v in pairs(ids) do
    ret = ret .. v .. utf8.char(2002)
  end
  return ret .. "</span>"
end

return p