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

From WikiConference North America
Jump to navigation Jump to search
(creation; categories need to be added)
 
(Changed to 2024 categories)
Line 3: Line 3:
 
local category_base = "[[Category:Submissions/2024/"
 
local category_base = "[[Category:Submissions/2024/"
 
local categories = {
 
local categories = {
  +
"GLAM",
"Please Add Categories",
 
  +
"Partnerships",
"at Module:WCNA 2024 Session Categories"
 
  +
"Technology",
  +
"Community Engagement",
  +
"Community Health",
  +
"Research",
  +
"Legal & Advocacy",
  +
"Open Data",
  +
"Governance / Strategy",
  +
"Wild Ideas"
 
}
 
}
   

Revision as of 16:59, 11 April 2024

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

local p = {}

local category_base = "[[Category:Submissions/2024/"
local categories = {
	"GLAM",
	"Partnerships",
	"Technology",
	"Community Engagement",
	"Community Health",
	"Research",
	"Legal & Advocacy",
	"Open Data",
	"Governance / Strategy",
	"Wild Ideas"
}

function p.main( frame )
    output = ""
    for index, value in ipairs(categories) do
		if string.match(frame.args["1"], value) then
			output = output .. category_base .. string.gsub(value, " / ", ", ") .. "]]"
		end
	end

    return output
end

return p