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

From WikiConference North America
Jump to: navigation, search
(ah)
(expand, because it worked)
 
Line 7: Line 7:
 
     if string.match(frame.args["1"], "Reliability") then
 
     if string.match(frame.args["1"], "Reliability") then
 
         categories = categories .. categories_base .. "Reliability‎]]"
 
         categories = categories .. categories_base .. "Reliability‎]]"
 +
    end
 +
    if string.match(frame.args["1"], "Inclusion") then
 +
        categories = categories .. categories_base .. "Inclusion & Diversity]]"
 +
    end
 +
    if string.match(frame.args["1"], "Relationship Building") then
 +
        categories = categories .. categories_base .. "Relationship Building & Support]]"
 +
    end
 +
    if string.match(frame.args["1"], "Editor Recruitment") 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
 
     end
 
     return categories
 
     return categories

Latest revision as of 04:50, 22 September 2019

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

local p = {}

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

function p.main( frame )
    categories = ""
    if string.match(frame.args["1"], "Reliability") then
        categories = categories .. categories_base .. "Reliability‎]]"
    end
    if string.match(frame.args["1"], "Inclusion") then
        categories = categories .. categories_base .. "Inclusion & Diversity]]"
    end
    if string.match(frame.args["1"], "Relationship Building") then
        categories = categories .. categories_base .. "Relationship Building & Support]]"
    end
    if string.match(frame.args["1"], "Editor Recruitment") 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
    return categories
end

return p