Jump to content

Module:Sanctions/data/sandbox

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Awesome Aasim (talk | contribs) at 16:32, 21 September 2023 (start adding arbcom sanctions). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
-- todo split into multiple suggested aliases (eg scwisil -> scw or isil)
local communitySanctions = {
	["crypto"] = {
        topic = "Blockchain and cryptocurrencies",
        scope = "[[blockchain]] and [[cryptocurrencies]]",
        wikilink = "WP:GS/CRYPTO",
		restrictions = {['ds'] = true, ['1rr'] = true},
		aliases = {'crypto', 'btc', 'bt', 'et'}
    },
	["mj"] = {
        topic = "Michael Jackson",
        scope = "[[Michael Jackson]]",
        wikilink = "WP:GS/MJ",
		restrictions = {['ds'] = true}
    },
    ["pw"] = {
        topic = "Professional wrestling",
        scope = "[[professional wrestling]]",
        wikilink = "WP:GS/PW",
		restrictions = {['ds'] = true}
	},
	["rusukr"] = {
		topic = "Russo-Ukrainian war",
		scope = "[[Russo-Ukrainian war]]",
		wikilink = "WP:GS/RUSUKR",
		restrictions = {['ds'] = true, ['restriction1'] = "Only [[WP:ECP|extended-confirmed editors]] may make edits related to the topic area, though editors who are not extended-confirmed may post constructive comments and make [[WP:Edit request|edit requests]] related to articles within the topic area on [[Help:Talk pages|article talk pages]]. Should disruption occur on article talk pages, administrators may take enforcement actions against disruptive editors and/or apply [[WP:Page protection|page protection]] on article talk pages. However, non-extended-confirmed editors may <u>not</u> make edits to internal project discussions related to the topic area, even on article talk pages. Internal project discussions include, but are not limited to, [[WP:AFD|Articles for deletion]] nominations, [[WP:WikiProject|WikiProjects]], [[WP:Requests for comment|requests for comment]], [[WP:RM|requested moves]], and noticeboard discussions."}
	},
	["sasg"] = {
        topic = "South Asian social groups",
        scope = "South Asian social groups",
        wikilink = "WP:GS/CASTE",
		restrictions = {['ds'] = true}
    },
    ["scwisil"] = {
        topic = "Syrian Civil War and ISIL",
        scope = "the [[Syrian Civil War]] and [[ISIL]]",
        wikilink = "WP:GS/SCW&ISIL",
        restrictions = {['ds'] = true, ['1rr'] = true},
		aliases = {'syr', 'syria', 'scw', 'isil', 'isis'},
        palias = "syria"
    },
    ["ukunits"] = {
        topic = "measurement units in the United Kingdom",
        scope = "measurement units in the United Kingdom",
        wikilink = "WP:GS/UKU",
        restrictions = {['ds'] = true},
        aliases = {'uku'},
        palias = "uku"
    },
    ["uyghur"] = {
        topic = "Uyghur genocide",
        scope = "[[Uyghurs]], [[Uyghur genocide]], or topics that are related to Uyghurs or Uyghur genocide",
        wikilink = "WP:GS/UYGHUR",
        restrictions = {['ds'] = true}
	}
}

local arbitrationSanctions = {
	
	["9/11"] = {
        topic = "the September 11 attacks",
        scope = "the [[September 11 attacks]]",
        wikilink = "WP:CT/9/11",
		restrictions = {['ds'] = true}
    },
	["a-a"] = {
        topic = "Armenia, Azerbaijan, or related conflicts",
        scope = "[[Armenia]], [[Azerbaijan]], or related conflicts",
        wikilink = "WP:CT/A-A",
		restrictions = {['ds'] = true},
		aliases = {"aa2"}
    },
	["a-i"] = {
        topic = "the Arab–Israeli conflict",
        scope = "the [[Arab–Israeli conflict]]",
        wikilink = "WP:CT/A-A",
		restrictions = {['ds'] = true, ["500/30"] = true, ["1rr"] = true}
    },
	["ab"] = {
        topic = "abortion",
        scope = "[[abortion]]",
        wikilink = "WP:CT/AB",
		restrictions = {['ds'] = true}
    },
	["cam"] = {
        topic = "Complementary and Alternative Medicine",
        scope = "[[Complementary and Alternative Medicine]]",
        wikilink = "WP:CT/CAM",
		restrictions = {['ds'] = true},
		aliases = {"acu"}
    },
}

local sanctions = {}

for k,v in pairs(communitySanctions) do
	sanctions[k] = v
	sanctions[k].type = "comm"
end

for k,v in pairs(arbitrationSanctions) do
	sanctions[k] = v
	sanctions[k].type = "arbcom"
end

-- alias handling
for k,v in pairs(sanctions) do
	for l,w in pairs(v.aliases) do
		sanctions[w] = sanctions[w] == nil and sanctions[k] or sanctions[w]
	end
end

-- export
return {sanctions = sanctions, arbcom = arbitrationSanctions, comm = communitySanctions}