Difference between revisions of "Module:Infobox Task"
Jump to navigation
Jump to search
m |
m |
||
Line 5: | Line 5: | ||
local ret = "[[Category:Tasks]]" | local ret = "[[Category:Tasks]]" | ||
for v in string.gmatch(categories, "([A-Za-z]+)") do | for v in string.gmatch(categories, "([A-Za-z]+)") do | ||
− | ret = ret .. "[[Category:" .. v .. "]]" | + | ret = ret .. "[[Category:Tasks in " .. v .. " tier]]" |
end | end | ||
return ret | return ret |
Revision as of 15:14, 18 May 2020
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:Tasks in " .. v .. " tier]]" end return ret end return p