Difference between revisions of "Module:WCNA 2021 Session Categories"
Jump to navigation
Jump to search
(copied from 2019 module) |
(2019 -> 2021 ; expanded list of categories) |
||
Line 1: | Line 1: | ||
local p = {} |
local p = {} |
||
− | local categories_base = "[[Category:Submissions/ |
+ | local categories_base = "[[Category:Submissions/2021/" |
function p.main( frame ) |
function p.main( frame ) |
||
Line 16: | Line 16: | ||
if string.match(frame.args["1"], "Editor Recruitment") then |
if string.match(frame.args["1"], "Editor Recruitment") then |
||
categories = categories .. categories_base .. "Editor Recruitment & Retention]]" |
categories = categories .. categories_base .. "Editor Recruitment & Retention]]" |
||
+ | end |
||
+ | if string.match(frame.args["1"], "Depth & Breadth for Newer Editors") then |
||
+ | categories = categories .. categories_base .. "Depth & Breadth for Newer Editors]]" |
||
end |
end |
||
if string.match(frame.args["1"], "Tech") then |
if string.match(frame.args["1"], "Tech") then |
Revision as of 22:47, 31 May 2021
Documentation for this module may be created at Module:WCNA 2021 Session Categories/doc
local p = {}
local categories_base = "[[Category:Submissions/2021/"
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"], "Depth & Breadth for Newer Editors") then
categories = categories .. categories_base .. "Depth & Breadth for Newer Editors]]"
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