Module:WCNA 2022 Session Categories

local p = {}

local categories_base = "[[Category:Submissions/2022/"

function p.main( frame ) categories = "" if string.match(frame.args["1"], "Friday Lightning Talk Day") then categories = categories .. categories_base .. "Friday Lightning Talks]]" end if string.match(frame.args["1"], "Saturday Longer Sessions") then categories = categories .. categories_base .. "Saturday Sessions]]" end if string.match(frame.args["1"], "Sunday Wikimedia Sessions") then categories = categories .. categories_base .. "Sunday Wikimedia Sessions]]" end return categories end

return p