Difference between revisions of "Module:Sanctions/data"

From blackwiki
Jump to navigation Jump to search
blackwiki>ProcrastinatingReader
(update alias map)
m (17 revisions imported)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
local sanctions = {
+
local sanctions = { -- todo split into multiple suggested aliases (eg scwisil -> scw or isil)
 
covid = {
 
covid = {
 
         topic = "Coronavirus disease 2019",
 
         topic = "Coronavirus disease 2019",
Line 16: Line 16:
 
         scope = "post-1978 Iranian politics",
 
         scope = "post-1978 Iranian politics",
 
         wikilink = "WP:GS/IRANPOL",
 
         wikilink = "WP:GS/IRANPOL",
         restrictions = {['ds'] = true}
+
         restrictions = {['ds'] = true},
 +
        palias = "irp"
 
     },
 
     },
 
mj = {
 
mj = {
Line 40: Line 41:
 
         scope = "the [[Syrian Civil War]] and [[ISIL]]",
 
         scope = "the [[Syrian Civil War]] and [[ISIL]]",
 
         wikilink = "WP:GS/SCW&ISIL",
 
         wikilink = "WP:GS/SCW&ISIL",
         restrictions = {['ds'] = true, ['1rr'] = true}
+
         restrictions = {['ds'] = true, ['1rr'] = true},
 +
        palias = "syria"
 
     },
 
     },
 
     ukunits = {
 
     ukunits = {
Line 46: Line 48:
 
         scope = "measurement units in the United Kingdom",
 
         scope = "measurement units in the United Kingdom",
 
         wikilink = "WP:GS/UKU",
 
         wikilink = "WP:GS/UKU",
         restrictions = {['ds'] = true}
+
         restrictions = {['ds'] = true},
 +
        palias = "uku"
 
     }
 
     }
 
}
 
}
Line 56: Line 59:
 
     ['syr'] = 'scwisil',
 
     ['syr'] = 'scwisil',
 
     ['syria'] = 'scwisil',
 
     ['syria'] = 'scwisil',
 +
    ['scw'] = 'scwisil',
 
     ['isil'] = 'scwisil',
 
     ['isil'] = 'scwisil',
 +
    ['isis'] = 'scwisil',
 
     ['uku'] = 'ukunits'
 
     ['uku'] = 'ukunits'
 
}
 
}

Latest revision as of 09:13, 27 September 2020

Documentation for this module may be created at Module:Sanctions/data/doc

local sanctions = { -- todo split into multiple suggested aliases (eg scwisil -> scw or isil)
	covid = {
        topic = "Coronavirus disease 2019",
        scope = "coronavirus disease 2019 ([[COVID-19]])",
        wikilink = "WP:GS/COVID19",
		restrictions = {['ds'] = true}
	},
	crypto = {
        topic = "Blockchain and cryptocurrencies",
        scope = "[[blockchain]] and [[cryptocurrencies]]",
        wikilink = "WP:GS/CRYPTO",
		restrictions = {['ds'] = true, ['1rr'] = true}
    },
    iranpol = {
        topic = "Post-1978 Iranian politics",
        scope = "post-1978 Iranian politics",
        wikilink = "WP:GS/IRANPOL",
        restrictions = {['ds'] = true},
        palias = "irp"
    },
	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}
	},
	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},
        palias = "syria"
    },
    ukunits = {
        topic = "measurement units in the United Kingdom",
        scope = "measurement units in the United Kingdom",
        wikilink = "WP:GS/UKU",
        restrictions = {['ds'] = true},
        palias = "uku"
    }
}

local aliases = {
    ['cry'] = 'crypto',
    ['bc'] = 'crypto',
    ['irp'] = 'iranpol',
    ['syr'] = 'scwisil',
    ['syria'] = 'scwisil',
    ['scw'] = 'scwisil',
    ['isil'] = 'scwisil',
    ['isis'] = 'scwisil',
    ['uku'] = 'ukunits'
}

-- export
return {sanctions = sanctions, aliases = aliases}