-- 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 = {'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 = "the [[Russo-Ukrainian War]]",
wikilink = "WP:GS/RUSUKR",
restrictions = {['ds'] = true, ["protection"] = "ecp"}
},
["sasg"] = {
topic = "South Asian social groups",
scope = "South Asian social groups",
wikilink = "WP:GS/CASTE",
restrictions = {['ds'] = true},
aliases = {"caste"}
},
["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'},
},
["ukunits"] = {
topic = "measurement units in the United Kingdom",
scope = "measurement units in the United Kingdom",
wikilink = "WP:GS/UKU",
restrictions = {['ds'] = true},
aliases = {'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-I",
restrictions = {['ds'] = true, ["protection"] = "ecp", ["1rr"] = true}
},
["ab"] = {
topic = "abortion",
scope = "[[abortion]]",
wikilink = "WP:CT/AB",
restrictions = {['ds'] = true}
},
["ap"] = {
topic = "post-1992 politics of the United States and closely related people",
scope = "post-1992 politics of the United States and closely related people",
wikilink = "WP:CT/AP",
restrictions = {['ds'] = true},
aliases = {"tpm"}
},
["blp"] = {
topic = "articles about living or recently deceased people, and edits relating to the subject (living or recently deceased) of such biographical articles",
scope = "articles about [[WP:BLP|living or recently deceased people]], and edits relating to the subject (living or recently deceased) of such biographical articles",
wikilink = "WP:CT/BLP",
restrictions = {['ds'] = true},
aliases = {"tpm"}
},
["cam"] = {
topic = "Complementary and Alternative Medicine",
scope = "[[Complementary and Alternative Medicine]]",
wikilink = "WP:CT/CAM",
restrictions = {['ds'] = true},
aliases = {"acu"}
},
["cc"] = {
topic = "climate change",
scope = "[[climate change]]",
wikilink = "WP:CT/CC",
restrictions = {['ds'] = true},
aliases = {"gw"}
},
["cf"] = {
topic = "pseudoscience and fringe science",
scope = "[[pseudoscience]] and [[fringe science]]",
wikilink = "WP:CT/CF",
restrictions = {['ds'] = true},
aliases = {"ps"}
},
["cid"] = {
topic = "discussions about infoboxes and to edits adding, deleting, collapsing, or removing verifiable information from infoboxes",
scope = "discussions about [[Wikipedia:MoS/Infoboxes|infoboxes]] and to edits adding, deleting, collapsing, or removing verifiable information from infoboxes",
wikilink = "WP:CT/CID",
restrictions = {['ds'] = true}
},
["covid"] = {
topic = "Coronavirus disease 2019",
scope = "[[Coronavirus disease 2019]]",
wikilink = "WP:CT/COVID",
restrictions = {['ds'] = true}
},
["e-e"] = {
topic = "the Balkans or Eastern Europe",
scope = "the [[Balkans]] or [[Eastern Europe]]",
wikilink = "WP:CT/EE",
restrictions = {['ds'] = true},
aliases = {"b", "ee"}
},
["ecig"] = {
topic = "the electronic cigarette topic area",
scope = "the [[electronic cigarette]] topic area",
wikilink = "WP:CT/ECIG",
restrictions = {['ds'] = true},
aliases = {"vape"}
},
["fg"] = {
topic = "Falun Gong",
scope = "[[Falun Gong]]",
wikilink = "WP:CT/FG",
restrictions = {['ds'] = true}
},
["gc"] = {
topic = "governmental regulation of firearm ownership; the social, historical and political context of such regulation; and the people and organizations associated with these issues",
scope = "governmental regulation of firearm ownership; the social, historical and political context of such regulation; and the people and organizations associated with these issues",
wikilink = "WP:CT/GC",
restrictions = {['ds'] = true}
},
["gg"] = {
topic = "gender-related disputes or controversies or people associated with them",
scope = "gender-related disputes or controversies or people associated with them",
wikilink = "WP:CT/GG",
restrictions = {['ds'] = true},
aliases = {"ggtf", "gap", "gas", "pa"}
},
["gmo"] = {
topic = "genetically modified organisms, commercially produced agricultural chemicals and the companies that produce them, broadly construed",
scope = "genetically modified organisms, commercially produced agricultural chemicals and the companies that produce them, broadly construed",
wikilink = "WP:CT/GMO",
restrictions = {['ds'] = true, ["1rr"] = true}
},
["horn"] = {
topic = "the Horn of Africa (defined as including Ethiopia, Somalia, Eritrea, Djibouti, and adjoining areas if involved in related disputes)",
scope = "the [[Horn of Africa]] (defined as including Ethiopia, Somalia, Eritrea, Djibouti, and adjoining areas if involved in related disputes)",
wikilink = "WP:CT/HORN",
restrictions = {['ds'] = true}
},
["ipa"] = {
topic = "India, Pakistan, and Afghanistan",
scope = "[[India]], [[Pakistan]], and [[Afghanistan]]",
wikilink = "WP:CT/IPA",
restrictions = {['ds'] = true}
},
["irp"] = {
topic = "post-1978 Iranian politics",
scope = "post-1978 Iranian politics",
wikilink = "WP:CT/IRP",
restrictions = {['ds'] = true},
aliases = {"iranpol"}
},
["kurd"] = {
topic = "the topics of Kurds and Kurdistan, broadly construed",
scope = "the topics of Kurds and [[Kurdistan]], broadly construed",
wikilink = "WP:CT/KURD",
restrictions = {['ds'] = true}
},
["lr"] = {
topic = "Liancourt Rocks",
scope = "[[Liancourt Rocks]]",
wikilink = "WP:CT/LR",
restrictions = {['ds'] = true}
},
["med"] = {
topic = "discussions about pharmaceutical drug prices and pricing and for edits adding, changing, or removing pharmaceutical drug prices or pricing from articles",
scope = "discussions about pharmaceutical drug prices and pricing and for edits adding, changing, or removing pharmaceutical drug prices or pricing from articles",
wikilink = "WP:CT/MED",
restrictions = {['ds'] = true}
},
["mos"] = {
topic = "the English Wikipedia Manual of Style and article titles policy",
scope = "the English Wikipedia [[WP:MOS|Manual of Style]] and [[WP:AT|article titles policy]]",
wikilink = "WP:CT/MOS",
restrictions = {['ds'] = true},
aliases = {"mos"}
},
["old"] = {
topic = "longevity",
scope = "[[longevity]]",
wikilink = "WP:CT/OLD",
restrictions = {['ds'] = true}
},
["pr"] = {
topic = "Prem Rawat",
scope = "[[Prem Rawat]]",
wikilink = "WP:CT/PR",
restrictions = {['ds'] = true}
},
["r-i"] = {
topic = "the intersection of race/ethnicity and human abilities and behaviour",
scope = "the intersection of race/ethnicity and human abilities and behaviour",
wikilink = "WP:CT/R-I",
restrictions = {['ds'] = true}
},
["saq"] = {
topic = "the Shakespeare authorship question",
scope = "the [[Shakespeare authorship question]]",
wikilink = "WP:CT/SAQ",
restrictions = {['ds'] = true}
},
["tt"] = {
topic = "the Troubles",
scope = "[[the Troubles]]",
wikilink = "WP:CT/TT",
restrictions = {['ds'] = true, ["1rr"] = true}
}
}
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 or {}) do
sanctions[w] = sanctions[w] == nil and sanctions[k] or sanctions[w]
end
end
-- export
return {sanctions = sanctions, arbcom = arbitrationSanctions, comm = communitySanctions}