-- todo split into multiple suggested aliases (eg scwisil -> scw or isil)
local sanctions = {
["crypto"] = {
topic = "Blockchain and cryptocurrencies",
scope = "[[blockchain]] and [[cryptocurrencies]]",
type = "comm",
wikilink = "WP:GS/CRYPTO",
decision = "Special:PermaLink/842448517#General_sanctions_proposal",
restrictions = {['ds'] = true, ['1rr'] = true},
aliases = {'btc', 'bt', 'et'}
},
["mj"] = {
topic = "Michael Jackson",
scope = "[[Michael Jackson]]",
type = "comm",
wikilink = "WP:GS/MJ",
decision = "Special:PermaLink/932717898#RfC_on_establishing_general_sanctions_on_the_topic_of_Michael_Jackson,_broadly_construed",
restrictions = {['ds'] = true}
},
["pw"] = {
topic = "professional wrestling",
scope = "[[professional wrestling]]",
type = "comm",
wikilink = "WP:GS/PW",
decision = "Special:PermaLink/846970509#General_sanctions_for_articles_on_professional_wrestling",
restrictions = {['ds'] = true}
},
["rusukr"] = {
topic = "Russo-Ukrainian war",
scope = "the [[Russo-Ukrainian War]]",
type = "comm",
wikilink = "WP:GS/RUSUKR",
decision = "Special:PermaLink/1114726646#Proposal:_Extended-confirmed_restriction_for_all_articles_related_to_the_Russia-Ukraine_War",
restrictions = {['ds'] = true, ["protection"] = "ecp"}
},
["sasg"] = {
topic = "South Asian social groups",
scope = "South Asian social groups",
type = "comm",
wikilink = "WP:GS/CASTE",
decision = "Wikipedia:Administrators'_noticeboard/Archive350#Procedural_quirk_in_WP:GS/CASTE",
restrictions = {['ds'] = true},
aliases = {"caste"}
},
["scwisil"] = {
topic = "Syrian Civil War and ISIL",
scope = "the [[Syrian Civil War]] and [[ISIL]]",
type = "comm",
wikilink = "WP:GS/SCW&ISIL",
decision = "Wikipedia:Administrators' noticeboard/Archive253#Request to amend sanctions on Syrian civil war articles",
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",
type = "comm",
wikilink = "WP:GS/UKU",
decision = "Wikipedia:Administrators' noticeboard/Archive266#General sanctions for matters pertaining to units of measurement in Britain",
restrictions = {['ds'] = true},
aliases = {'uku'}
},
["uyghur"] = {
topic = "Uyghur genocide",
scope = "[[Uyghurs]], [[Uyghur genocide]], or topics that are related to Uyghurs or Uyghur genocide",
type = "comm",
wikilink = "WP:GS/UYGHUR",
decision = "Special:PermaLink/1028175952#Proposal:_place_the_Uyghur_genocide_and_any_articles_relating_to_it,_WP:Broadly_construed,_under_community_discretionary_sanctions",
restrictions = {['ds'] = true}
},
["a-a"] = {
topic = "Armenia, Azerbaijan, or related conflicts",
scope = "[[Armenia]], [[Azerbaijan]], or related conflicts",
type = "both",
wikilink = "WP:CT/A-A",
decision = "Wikipedia:Requests for arbitration/Armenia-Azerbaijan 2",
restrictions = {['ds'] = true, ["protection"] = "ecp"},
aliases = {"aa2"}
},
["a-i"] = {
topic = "the Arab–Israeli conflict",
scope = "the [[Arab–Israeli conflict]]",
type = "arbcom",
wikilink = "WP:CT/A-I",
decision = "Wikipedia:Arbitration/Index/Palestine-Israel articles",
restrictions = {['ds'] = true, ["protection"] = "ecp", ["1rr"] = true}
},
["ab"] = {
topic = "abortion",
scope = "[[abortion]]",
type = "arbcom",
wikilink = "WP:CT/AB",
decision = "Wikipedia:Arbitration/Requests/Case/Abortion",
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",
type = "arbcom",
wikilink = "WP:CT/AP",
decision = "Wikipedia:Arbitration/Requests/Case/American politics 2",
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",
type = "arbcom",
wikilink = "WP:CT/BLP",
decision = "Wikipedia:Requests_for_arbitration/Editing_of_Biographies_of_Living_Persons#Remedies",
restrictions = {['ds'] = true},
aliases = {"tpm"}
},
["cam"] = {
topic = "Complementary and Alternative Medicine",
scope = "[[Complementary and Alternative Medicine]]",
type = "arbcom",
wikilink = "WP:CT/CAM",
decision = "Wikipedia:Arbitration/Requests/Case/Acupuncture",
restrictions = {['ds'] = true},
aliases = {"acu"}
},
["cc"] = {
topic = "climate change",
scope = "[[climate change]]",
type = "arbcom",
wikilink = "WP:CT/CC",
decision = "Wikipedia:Arbitration/Requests/Case/Climate change",
restrictions = {['ds'] = true},
aliases = {"gw"}
},
["cf"] = {
topic = "pseudoscience and fringe science",
scope = "[[pseudoscience]] and [[fringe science]]",
type = "arbcom",
wikilink = "WP:CT/CF",
decision = "Wikipedia:Requests for arbitration/Pseudoscience",
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",
type = "arbcom",
wikilink = "WP:CT/CID",
decision = "Wikipedia:Arbitration/Requests/Case/Civility in infobox discussions",
restrictions = {['ds'] = true}
},
["covid"] = {
topic = "Coronavirus disease 2019",
scope = "[[Coronavirus disease 2019]]",
type = "arbcom",
wikilink = "WP:CT/COVID",
decision = "Wikipedia:Arbitration/Requests/Case/COVID-19",
restrictions = {['ds'] = true}
},
["e-e"] = {
topic = "the Balkans or Eastern Europe",
scope = "the [[Balkans]] or [[Eastern Europe]]",
type = "arbcom",
wikilink = "WP:CT/EE",
decision = "Wikipedia:Requests for arbitration/Eastern Europe",
restrictions = {['ds'] = true},
aliases = {"b", "ee"}
},
["fg"] = {
topic = "Falun Gong",
scope = "[[Falun Gong]]",
type = "arbcom",
wikilink = "WP:CT/FG",
decision = "Wikipedia:Requests for arbitration/Falun Gong",
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",
type = "arbcom",
wikilink = "WP:CT/GC",
decision = "Wikipedia:Arbitration/Requests/Case/Gun control",
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",
type = "arbcom",
wikilink = "WP:CT/GG",
decision = "Wikipedia:Arbitration/Requests/Case/Gender and sexuality",
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",
type = "arbcom",
wikilink = "WP:CT/GMO",
decision = "Wikipedia:Arbitration/Requests/Case/Genetically modified organisms",
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)",
type = "arbcom",
wikilink = "WP:CT/HORN",
decision = "Wikipedia:Arbitration/Requests/Case/Horn of Africa",
restrictions = {['ds'] = true}
},
["ipa"] = {
topic = "India, Pakistan, and Afghanistan",
scope = "[[India]], [[Pakistan]], and [[Afghanistan]]",
type = "arbcom",
wikilink = "WP:CT/IPA",
decision = "Wikipedia:Requests for arbitration/India-Pakistan",
restrictions = {['ds'] = true}
},
["irp"] = {
topic = "post-1978 Iranian politics",
scope = "post-1978 Iranian politics",
type = "arbcom",
wikilink = "WP:CT/IRP",
decision = "Wikipedia:Arbitration/Requests/Case/Iranian politics",
restrictions = {['ds'] = true},
aliases = {"iranpol"}
},
["kurd"] = {
topic = "the topics of Kurds and Kurdistan, broadly construed",
scope = "the topics of Kurds and [[Kurdistan]], broadly construed",
type = "both",
wikilink = "WP:CT/KURD",
decision = "Wikipedia:Arbitration/Requests/Case/Kurds and Kurdistan",
restrictions = {['ds'] = true, ["protection"] = "ecp"}
},
["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]]",
type = "arbcom",
wikilink = "WP:CT/MOS",
decision = "Wikipedia:Arbitration/Requests/Case/Article titles and capitalisation",
restrictions = {['ds'] = true},
aliases = {"mos"}
},
["pr"] = {
topic = "Prem Rawat",
scope = "[[Prem Rawat]]",
type = "arbcom",
wikilink = "WP:CT/PR",
decision = "Wikipedia:Requests for arbitration/Prem Rawat",
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",
type = "arbcom",
wikilink = "WP:CT/R-I",
decision = "Wikipedia:Arbitration/Requests/Case/Race and intelligence",
restrictions = {['ds'] = true}
},
["rne"] = {
topic = "the results of any national or sub-national election",
scope = "the results of any national or sub-national election",
type = "arbcom",
wikilink = "WP:CT/RNE",
decision = "Wikipedia:Arbitration/Requests/Case/Historical elections",
restrictions = {['ds'] = true}
},
["sl"] = {
topic = "Sri Lanka",
scope = "[[Sri Lanka]]",
type = "arbcom",
wikilink = "WP:CT/SL",
decision = "Special:PermaLink/1219893542#Sri_Lanka_motion",
restrictions = {['ds'] = true}
},
["tt"] = {
topic = "the Troubles",
scope = "[[the Troubles]]",
type = "arbcom",
wikilink = "WP:CT/TT",
decision = "Wikipedia:Requests for arbitration/The Troubles",
restrictions = {['ds'] = true, ["1rr"] = true}
}
}
local communitySanctions = {}
for k,v in pairs(sanctions) do
if (sanctions.type == "comm" or sanctions.type == "both") then
communitySanctions[k] = v
end
end
local arbitrationSanctions = {}
for k,v in pairs(sanctions) do
if (sanctions.type == "arbcom" or sanctions.type == "both") then
arbitrationSanctions[k] = v
end
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}