Difference between revisions of "Module:WCNA 2021 Session Categories"
Jump to navigation
Jump to search
(2019 -> 2021 ; expanded list of categories) |
(Matching 2021/Submissions) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
function p.main( frame ) |
function p.main( frame ) |
||
categories = "" |
categories = "" |
||
− | if string.match(frame.args["1"], " |
+ | if string.match(frame.args["1"], "Global") then |
− | categories = categories .. categories_base .. " |
+ | categories = categories .. categories_base .. "Global & Local]]" |
⚫ | |||
⚫ | |||
⚫ | |||
end |
end |
||
if string.match(frame.args["1"], "Relationship Building") then |
if string.match(frame.args["1"], "Relationship Building") then |
||
categories = categories .. categories_base .. "Relationship Building & Support]]" |
categories = categories .. categories_base .. "Relationship Building & Support]]" |
||
end |
end |
||
− | if string.match(frame.args["1"], " |
+ | if string.match(frame.args["1"], "Inclusion") then |
− | categories = categories .. categories_base .. " |
+ | categories = categories .. categories_base .. "Inclusion & Diversity]]" |
end |
end |
||
− | + | if string.match(frame.args["1"], "Depth") then |
|
categories = categories .. categories_base .. "Depth & Breadth for Newer Editors]]" |
categories = categories .. categories_base .. "Depth & Breadth for Newer Editors]]" |
||
end |
end |
||
Line 25: | Line 22: | ||
if string.match(frame.args["1"], "Harassment") then |
if string.match(frame.args["1"], "Harassment") then |
||
categories = categories .. categories_base .. "Harassment, Civility, & Safety]]" |
categories = categories .. categories_base .. "Harassment, Civility, & Safety]]" |
||
⚫ | |||
⚫ | |||
⚫ | |||
end |
end |
||
return categories |
return categories |
Latest revision as of 23:29, 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"], "Global") then
categories = categories .. categories_base .. "Global & Local]]"
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"], "Depth") 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
if string.match(frame.args["1"], "Other") then
categories = categories .. categories_base .. "Other]]"
end
return categories
end
return p