Module:WCNA 2022 Session Categories

From WikiConference North America
Jump to navigation Jump to search

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

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