Modul:Partier se/20
Utseende
Dokumentationen för denna modul kan skapas på Modul:Partier se/20/dok
local p = {}
function p.partisnack(frame)
args = frame.args
local white = 'white'
local black = 'black'
local color = {
['2021-kp'] = { ['a'] = 'KP', ['n'] = 'Kommunpartiet - Vansbro', ['l'] = 'Kommunpartiet (Vansbro)', ['f'] = '#ffa500', ['t'] = black },
['2023-msp'] = { ['a'] = 'MSP', ['n'] = 'Malung-Sälenpartiet', ['l'] = 'Malung-Sälenpartiet', ['f'] = '#ffa500', ['t'] = black },
['2026-salt'] = { ['a'] = 'S-Alt', ['n'] = 'S-Alternativet', ['l'] = 'S-Alternativet (Gagnef)', ['f'] = '#cc0000', ['t'] = white },
['2026-kosa'] = { ['a'] = 'KOSA', ['n'] = 'Kommunal Samling', ['l'] = 'Kommunal Samling (Gagnef)', ['f'] = '#ffa500', ['t'] = black },
['2029-byp'] = { ['a'] = 'ByP', ['n'] = 'Bygdepartiet', ['l'] = 'Bygdepartiet', ['f'] = '#ffa500', ['t'] = black },
['2029-lp'] = { ['a'] = 'LP', ['n'] = 'Leksandspartiet', ['l'] = 'Leksandspartiet', ['f'] = '#ff7800', ['t'] = black },
['2031-cd'] = { ['a'] = 'C-D', ['n'] = 'Centrum-Demokraterna', ['l'] = 'Centrumdemokraterna (Sverige)', ['f'] = '#E3E600', ['t'] = black },
['2039-kl'] = { ['a'] = 'KL', ['n'] = 'Kommunlistan', ['l'] = 'Kommunlistan (Älvdalens kommun)', ['f'] = '#ffa500', ['t'] = black },
['2039-äp'] = { ['a'] = 'ÄP', ['n'] = 'Älvdalspartiet', ['l'] = 'Älvdalspartiet', ['f'] = '#ff7800', ['t'] = black },
['2062-mop'] = { ['a'] = 'MOP', ['n'] = 'Morapartiet', ['l'] = 'Morapartiet', ['f'] = '#ffa500', ['t'] = black },
['2062-enm'] = { ['a'] = 'ENM', ['n'] = 'Ekonomi och näringsliv i Mora', ['l'] = 'Ekonomi och näringsliv i Mora', ['f'] = 'gray', ['t'] = white },
['2080-fap'] = { ['a'] = 'FAP', ['n'] = 'Falupartiet', ['l'] = 'Falupartiet', ['f'] = '#ffa500', ['t'] = black },
['2081-ofa'] = { ['a'] = 'Ofa', ['n'] = 'Omsorg för alla', ['l'] = 'Omsorg för alla', ['f'] = '#ffa500', ['t'] = black },
['2081-tmv'] = { ['a'] = 'TMV', ['n'] = 'Tunabygdens miljövänner', ['l'] = 'Tunabygdens miljövänner', ['f'] = '#83cf39', ['t'] = black },
['2081-nyf'] = { ['a'] = 'NyF', ['n'] = 'NyFramtid', ['l'] = 'NyFramtid', ['f'] = '#ffa500', ['t'] = black },
['2083-hdp'] = { ['a'] = 'Hdp', ['n'] = 'Hedemorapartiet', ['l'] = 'Hedemorapartiet', ['f'] = '#ffa500', ['t'] = black },
['2083-lhp'] = { ['a'] = 'Lhp', ['n'] = 'Långshyttepartiet', ['l'] = 'Långshyttepartiet', ['f'] = '#ff7800', ['t'] = black },
['2083-kl'] = { ['a'] = 'KL', ['n'] = 'Kommunlistan', ['l'] = 'Kommunlistan (Hedemora)', ['f'] = '#ff7800', ['t'] = black },
['2084-ail'] = { ['a'] = 'AIL', ['n'] = 'Kommunlistan', ['l'] = 'Kommunlistan (Avesta)', ['f'] = '#ffa500', ['t'] = black },
['2085-bop'] = { ['a'] = 'BOP', ['n'] = 'Bopartiet', ['l'] = 'Bopartiet', ['f'] = '#ffa500', ['t'] = black },
['2085-ddem'] = { ['a'] = 'Ddem', ['n'] = 'Dalademokraterna', ['l'] = 'Dalademokraterna', ['f'] = '#ff7800', ['t'] = black },
['20-dsp'] = { ['a'] = 'DSP', ['n'] = 'Dalarnas Sjukvårdsparti', ['l'] = 'Dalarnas Sjukvårdsparti', ['f'] = '#ffa500', ['t'] = black }
}
if args[1] == 'demonstration' then
return color
end
return color[args[1]]
end
return p