Module:Infobox Task

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

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

local p = {};

function p.categorise(frame)
  local categories = frame:getParent().args[1]
  local ret = "[[Category:Tasks]]"
  for v in string.gmatch(categories, "([A-Za-z]+)") do
    ret = ret .. "[[Category:" .. v .. "]]"
  end
  return ret
end

return p