Module:WCNA 2024 Session Categories

From WikiConference North America
Revision as of 17:45, 11 March 2024 by Peaceray (talk | contribs) (creation; categories need to be added)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Documentation for this module may be created at Module:WCNA 2024 Session Categories/doc

local p = {}

local category_base = "[[Category:Submissions/2024/"
local categories = {
	"Please Add Categories",
	"at Module:WCNA 2024 Session Categories"
}

function p.main( frame )
    output = ""
    for index, value in ipairs(categories) do
		if string.match(frame.args["1"], value) then
			output = output .. category_base .. string.gsub(value, " / ", ", ") .. "]]"
		end
	end

    return output
end

return p