Difference between revisions of "Module:WCNA 2023 Session Categories"

From WikiConference North America
Jump to navigation Jump to search
(Starting session categories module for 2023)
 
(Updating categories)
Line 5: Line 5:
 
function p.main( frame )
 
function p.main( frame )
 
categories = ""
 
categories = ""
if string.match(frame.args["1"], "Global") then
+
if string.match(frame.args["1"], "Reliability") then
categories = categories .. categories_base .. "Global & Local]]"
+
categories = categories .. categories_base .. "Reliability of Information]]"
 
end
 
end
 
if string.match(frame.args["1"], "Relationship Building") then
 
if string.match(frame.args["1"], "Relationship Building") then
Line 14: Line 14:
 
categories = categories .. categories_base .. "Inclusion & Diversity]]"
 
categories = categories .. categories_base .. "Inclusion & Diversity]]"
 
end
 
end
if string.match(frame.args["1"], "Depth") then
+
if string.match(frame.args["1"], "Editor") then
categories = categories .. categories_base .. "Depth & Breadth for Newer Editors]]"
+
categories = categories .. categories_base .. "Editor Recruitment & Retention]]"
 
end
 
end
 
if string.match(frame.args["1"], "Tech") then
 
if string.match(frame.args["1"], "Tech") then

Revision as of 05:40, 18 March 2023

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

local p = {}

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

function p.main( frame )
    categories = ""
    if string.match(frame.args["1"], "Reliability") then
        categories = categories .. categories_base .. "Reliability of Information]]"
    end
    if string.match(frame.args["1"], "Relationship Building") then
        categories = categories .. categories_base .. "Relationship Building & Support]]"
    end
    if string.match(frame.args["1"], "Inclusion") then
        categories = categories .. categories_base .. "Inclusion & Diversity]]"
    end
    if string.match(frame.args["1"], "Editor") then
        categories = categories .. categories_base .. "Editor Recruitment & Retention]]"
    end
    if string.match(frame.args["1"], "Tech") then
        categories = categories .. categories_base .. "Tech & Tools]]"
    end
    if string.match(frame.args["1"], "Harassment") then
        categories = categories .. categories_base .. "Harassment, Civility, & Safety]]"
    end
    if string.match(frame.args["1"], "Other") then
        categories = categories .. categories_base .. "Other]]"
    end
    return categories
end

return p