Module:PP

local p = {}

function p.getParty( frame ) if partiesData[frame.args[1]] ~= nil then return (partiesData[frame.args[1]][tonumber(frame.args[2])]) else if frame.args[2] == "4" then return "ffffff" else return "" end end end

--1 Abbreviation	2 Shortname	3 Longname	4 Color	5 Doggish abbr	6 Doggish shortname	7 Doggish longname

partiesData = { USF = {"USF", "United Socialist", "United Socialist Front", "b90006"}, LWP = {"LWP", "Labour Workers'", "Labour Workers' Party", "c6080b"}, ["3P"] = {"3P", "Progressives, Populists, Pirates", "Progressives, Populists, Pirates", "75D155"}, LP = {"LP", "Liberal", "Liberal Party", "ffc022"}, UsN = {"ÚN", "Ús Noardlân", "Ús Noardlân", "004080"}, CU = {"CU", "Civic", "Civic Union", "396ccc"}, PLUS = {"PLUS", "Plus", "Party for Liberty, Unity, and Self-Determination", "ba852e"}, ILA = {"ILP", "Independent Liberty", "Independent Liberty Alliance", "55a45a"}, DXT = {"Dogxit", "Dogxit", "Dogxit Party", "0CB4D4"}, NCU = {"NCU", "National Conservative", "National Conservative Union", "1C0054"},

-- Alliances a_CON = {"CON", "Conservative", "Conservative Alliance", "338abc"}, a_UP = {"UP", "United Progressives", "United Progressives", "5dce36"}, a_FDM = {"Fdm", "Freedom", "Freedom Bloc", "33b5b3"}, a_ULPB = {"ULPB", "United Left People's", "United Left People's Bloc", "f6786a"}, -- Presidential & Senate coalitions FSA = {"FSA", "Forward Senate", "Forward Senate Alliance", "c447d1"}, FPA = {"FPA", "Forward", "Forward Presidential Alliance", "AD275C"}, ACA = {"ACA", "Action Alliance", "Action Alliance", "47C4d1"}, ATS = {"ATS", "Abolish The Senate", "Abolish The Senate", "000f99"}, LLP = {"LLP", "Labour-Liberal", "Labour-Liberal Party", "ff8856"}, CR = {"CR", "Constitutional Reform", "Constitutional Reform", "fe9900"}, RDA = {"RDA", "Reform Doggerland", "Reform Doggerland Alliance", "FF6600"}, -- Provincial parties zv_L = {"L", "Laborers", "Zuidvis Laborers", "c6080b"}, -- Zuidvis zv_RA = {"RA", "Reform", "Zuidvis Reform Alliance", "5a83e2"}, zv_SP = {"SP", "Socialist", "Zuidvis Socialist Party", "0f7606"}, zv_Lbt = {"Lbt", "Libertarians", "Zuidvis Libertarians", "c9a726"},

so_DL = {"DL", "Democratic Left", "Democratic Left", "ee2a3c"}, -- Steibo so_LA = {"LA", "Liberal", "Liberal Alliance", "ffc022"}, so_LWP = {"LWP", "Labor Worker's", "Labor Worker's Party of Steibo", "c6080b"}, so_CPS = {"CPS", "Co-operative", "Co-operative Party of Steibo", "5A2E89"}, so_SFU = {"SFU", "Farmers'", "Steibo Farmers' Union", "06a709"}, so_TAS = {"TAS", "Taxpers'", "Taxpayers' Association of Steibo", "2E6889"}, so_CSS = {"CSS", "Christian Socialists", "Christian Socialists of Steibo", "ed8173"}, so_CNP = {"CNP", "Conservative National", "Conservative and National Party", "3442ad"}, so_E_J = {"E&J", "Equality & Justice", "Equality and Justice", "be60fd"}, so_FLS = {"FLS", "Free Liberals", "Free Liberals of Steibo", "5ac2f6"}, so_HHA = {"HHA", "Hoovsted Housing", "Hoovsted Housing Association", "f6a713"}, -- Referendum options Yes = {"Yes", "Yes", "Yes", "008142"}, No = {"No", "No", "No", "dc241f"}, -- Defunct parties ULPP = {"ULPP", "United Left People's", "United Left People's Party", "0f7606"}, JP = {"JP", "Justice", "Justice Party", "be60fd"}, Grn = {"Grn", "Green", "Green Party", "2cb517"}, G21 = {"G21", "Green", "Green Party (February 2021)", "2cb517"}, GDP = {"GDP", "Green Democratic", "Green Democratic Party", "3cb371"}, PP = {"PP", "Populist", "Populist Party", "392d87"}, Volt = {"Volt", "Volt", "Volt Doggerland", "7c17bf"}, ["V+P"] = {"V+P", "Volt+Pirates", "Volt + Pirates", "7c17bf"}, HC = {"HC", "Humanist Center", "Humanist Center", "ff5900"}, ["V+H"] = {"V+H", "Volt+Humanists", "Humanist Center", "7c17bf"}, AGP = {"AGP", "Anarcho-Garfieldist", "Anarcho-Garfieldist Party", "e3891d"}, PL = {"PL", "Progressive Libertarian", "Progressive Libertarian Party", "AAF0D1"}, PFP = {"PFP", "Peoples' Freedom", "Peoples' Freedom Party", "7c17bf"}, CP = {"CP", "Communist", "Communist Party", "ee2e3c"}, DL = {"DL", "Left", "Doggerland Left", "0f7606"}, Lbt = {"Lbt", "Libertarian", "Libertarian Party", "c9a726"}, Ref = {"Ref", "Reform", "Reform Party", "55a45a"}, IDP = {"IDP", "Independent Democracy", "Independent Democracy Party", "10275b"}, ["ASU/DFS"] = {"ASU/DFS", "ASU/DFS", "Agrarian Social Union/Doggerland Farmer's Society", "cfb997"}, Cent = {"Cent", "Centre", "Centre Party", "cfb997"}, SR = {"SR", "Self-Reliance!", "Self-Reliance!", "004aad"}, THF = {"THF", "Transhumanist", "Transhumanist Front", "a9eed1"}, NR = {"NR", "New Right", "New Right", "710099"}, ERA = {"ERA", "Evangelical Reform", "Evangelical Reform Alliance", "4F5951"}, FaE = {"FaE", "Free and Equal", "Free and Equal", "990f4b"}, SA = {"SA", "Solidarity", "Socialist Alternative", "5BB286"}, Rbw = {"Rbw", "Rainbow", "Rainbow Party", "ff66c4"}, -- Lore parties NDP = {"NDP", "National Democratic", "National Democratic Party", "003884"}, WP = {"WP", "Worker's", "Worker's Party", "610410"}, SCP = {"SCP", "Social Credit", "Social Credit Party", "a0e4a0"}, LAB = {"LAB", "Arbeid", "Arbeidspartij", "ba0f26"}, NO = {"NO", "Non-Partisan", "Non-Partisan Caucus", "e3e3e3"}, NP = {"NP", "National Populist", "National Populist Party", "7F0000"}, JL = {"JL", "Joint List", "Joint List (2009)", "0f7606"}, -- Default Ind = {"Ind", "Independent", "Independent", "d0d0d0"}, }

return p