Jump to content

Module:Sanctions/AlertHelper

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by ProcrastinatingReader (talk | contribs) at 10:54, 24 July 2020 (add topic lists). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
local p = {}
local getArgs = require('Module:Arguments').getArgs

function p.build(frame, args)
	topic = args[1] or args['topic']
	if not topic then
		--
	end
	
	local dsTopics = {
		"9/11", "a-a", "a-i", "ab", "acu", "aerc", "ap", "at", "mos", "b", "blp",
		"cam", "cc", "cid", "e-e", "ecig", "fg", "gc", "gg", "ggtf", "gap", "gmo",
		"ipa", "lr", "lw", "med", "muh-im", "old", "pa", "pr", "ps", "r-i", "saq",
		"sen", "sci", "tm", "tpm", "tt", "we"
	}
	local gsTopics = {
		"syr", "cry", "sasg", "mj", "covid", "uku", "pw", "irp"
	}
	
	return frame:expandTemplate{
		title = 'Ds/alert/sandbox',
		args = { topic }
	}
end

function p.main(frame)
	local args = getArgs(frame)
	return p.build(frame, args)
end

return p