Module:Sanctions/data/sandbox
Appearance
< Module:Sanctions | data
![]() | This is the module sandbox page for Module:Sanctions/data (diff). |
-- 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 = {
}
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}