-- Constant data used by Module:Political party  
local alternate = {
["Macau Business Int"] = "Macau Union of Employers Interests",
["Macau Business Interest Union"] = "Macau Union of Employers Interests",
["Macau professional Interest Union"] = "Macau Union of Professional Interests",
["Madeira First"] = "Coalition PSD/CDS",
["Madhya Pradesh Congress Committee"] = "Indian National Congress",
["Madrilenian Socialist Federation"] = "Spanish Socialist Workers' Party",
["Magdalo para sa Pilipino"] = "Magdalo Party-List",
["Maghrebin Liberal Party"] = "Maghrebi Republican Party",
["Majorité pour l'autre Europe"] = "Movement for France",
["Makabayang Koalisyon ng Mamamayan"] = "Makabayan",
["Makkal Manadu Katchi"] = "Tamizhaga Murpokku Makkal Katchi",
["Malaysia United People's Party"] = "Malaysian United People's Party",
["Malaysian Workers Party"] = "National Trust Party (Malaysia)",
["Mana Motuhake (political party)"] = "Mana Motuhake",
["Mana Party (New Zealand)"] = "Mana Movement",
["Manipur People's Party"] = "Manipur Peoples Party",
["Maori Party"] = "Te Pāti Māori",
["Māori Party"] = "Te Pāti Māori",
["Marek Hilšer"] = "Marek Hilšer to Senate",
["Marijuana Party (United States)"] = "Marijuana Party (US)",
["Marxist-Leninist Party of Germany"] = "Marxist–Leninist Party of Germany",
["Maryland Democratic Party"] = "Democratic Party (United States)",
["Maryland Green Party"] = "Green Party (US)",
["Maryland Republican Party"] = "Republican Party (United States)",
["Massachusetts Democratic Party"] = "Democratic Party (United States)",
["Maurist Conservatives"] = "Maurist Party",
["Meghalaya Democratic Alliance"] = "Meghalaya Democratic Alliance (2018)",
["MEMO"] = "Solution Movement",
["MFG – Austria People – Freedom – Fundamental Rights"] = "MFG Austria – People Freedom Fundamental Rights",
["Mouvement Militant Mauricien"] = "Mauritian Militant Movement",
["Mauritian Social Democrat Party"] = "Parti Mauricien Social-Démocrate",
["Mexican Laborist Party"] = "Laborist Party (Mexico)",
["Michigan Democratic Party"] = "Democratic Party (United States)",
["Michigan Republican Party"] = "Republican Party (United States)",
["Milan Bandić 365 - The Party of Labour and Solidarity"] = "Bandić Milan 365 – Labour and Solidarity Party",
["Mouvement Socialiste Militant"] = "Militant Socialist Movement",
["Military Rule"] = "Military rule",
["Military"] = "Military rule",
["Mineiro Republican Party"] = "Minas Republican Party",
["Minjoo Party of Korea"] = "Democratic Party of Korea",
["Minnesota Democratic Party"] = "Democratic Party (United States)",
["Minnesota Democratic-Farmer-Labor Party"] = "Minnesota Democratic–Farmer–Labor Party",
["Minnesota Progressive Party"] = "Progressive Party (US)",
["Miscellaneous far "] = "Far-",
["Miscellaneous far "] = "Far-",
["Miscellaneous Left"] = "Miscellaneous ",
["Miscellaneous Right"] = "Miscellaneous ",
["Missouri Democratic Party"] = "Democratic Party (United States)",
["Missouri Republican Party"] = "Republican Party (United States)",
["MMA"] = "Muttahida Majlis-e-Amal",
["MN"] = "German Minority Electoral Committee",
["Mochrena"] = "Christian Movement for a New Haiti",
["Moderate (Estonia)"] = "Social Democratic Party (Estonia)",
["Moderate Party (Rhode Island)"] = "Moderate Party of Rhode Island",
["Moderate People's Party"] = "Social Democratic Party (Estonia)",
["Moderates (Estonia)"] = "Social Democratic Party (Estonia)",
["Modern"] = "Modern (political party)",
["Mongolian People's Revolutionary Party (old)"] = "Mongolian People's Party",
["Mongolian People's Revolutionary Party"] = "Mongolian People's Party",
["Mongolian Traditionally United Party"] = "Mongolian Traditional United Party",
["Montana Democratic Party"] = "Democratic Party (United States)",
["Montana Republican Party"] = "Republican Party (United States)",
["Montana Libertarian Party"] = "Libertarian Party (US)",
["Moramo (political coalition)"] = "We Must (Serbia)",
["Morena"] = "Morena (political party)",
["Morley Borough Independent"] = "Morley Borough Independents",
["Most-Híd"] = "Most–Híd",
["Motherland (Latvia)"] = "New Harmony (Latvia)",
["Motherland People's Party"] = "Sinhalaye Mahasammatha Bhoomiputra Pakshaya",
["Mouvement Réformateur"] = "Reformist Movement",
["Mouvement Rodriguais"] = "Rodrigues Movement",
["Movement for a People's Party"] = "People's Party (US, 2017)",
["Movement for Autonomies"] = "Movement for Autonomy",
["Movement for Change"] = "Gorran Movement",
["Movement for Democratic Change - Tsvangirai"] = "Movement for Democratic Change – Tsvangirai",
["Movement for Democratic Change (pre-2005)"] = "Movement for Democratic Change (1999–2005)",
["Movement for Democratic Change-Tsvangirai"] = "Movement for Democratic Change – Tsvangirai",
["Movement for Justice"] = "Pakistan Tehreek-e-Insaf",
["Movement for Liberty - European Georgia"] = "European Georgia — Movement for Liberty",
["Movement for Multiparty Democracy"] = "Movement for Multi-Party Democracy",
["Movement for the Development of Mayotte"] = "Miscellaneous ",
["Movement for the Future"] = "Movement for the Future of Curaçao",
["Movement for the Liberation of São Tomé and Príncipe/Social Democratic Party"] = "Movement for the Liberation of São Tomé and Príncipe – Social Democratic Party",
["Movement of Citizens"] = "Citizen and Republican Movement",
["Movement of Democratic Socialists (Greece)"] = "Movement of Democratic Socialists",
["Movement of Ecologists - Citizens' Cooperation"] = "Movement of Ecologists – Citizens' Cooperation",
["Movement of Ecologists — Citizens' Cooperation"] = "Movement of Ecologists – Citizens' Cooperation", -- em dash
["Movement of Radicals of the Left"] = "Radical Party of the Left",
["Movementu 21"] = "Movement 21 (Bonaire)",
["Murcian Socialist Federation"] = "Spanish Socialist Workers' Party",
["Muslim League (Opposition)"] = "All-India Muslim League",
["Muslim National Unity Alliance"] = "National Unity Alliance",
["Muttahida Qaumi Movement-Pakistan"] = "Muttahida Qaumi Movement – Pakistan",
["Muttahida Qaumi Movement–Pakistan"] = "Muttahida Qaumi Movement – Pakistan", -- dash difference
}  
local full = {
["M10 (political party)"] = {abbrev = "", color = "#232575", shortname = "",},
["Macao Civic Power"] = {abbrev = "", color = "#FF007F", shortname = "Cívico",},
["Macau Union of Employers Interests"] = {abbrev = "", color = "#EDC2FD", shortname = "",},
["Macau Union of Medical Professional Interests"] = {abbrev = "", color = "#2CADC7", shortname = "",},
["Macau Union of Professional Interests"] = {abbrev = "", color = "#FBCBC7", shortname = "",},
["Macau United Citizens Association"] = {abbrev = "ACUM", color = "#DC143C", shortname = "",},
["Macau-Guangdong Union"] = {abbrev = "UGM", color = "#ED6C10", shortname = "",},
["Macedonian Alliance for European Integration"] = {abbrev = "", color = "red", shortname = "",},
["Machrouu Tounes"] = {abbrev = "", color = "#000000", shortname = "",},
["Madem G15"] = {abbrev = "", color = "#01A35A", shortname = "",},
["Madheshi Jana Adhikar Forum, Nepal"] = {abbrev = "MJF-N", color = "orangered", shortname = "",},
["Madheshi Jana Adhikar Forum, Nepal (Loktantrik)"] = {abbrev = "MJAF(L)", color = "lightgreen", shortname = "",},
["Madrid En Pie"] = {abbrev = "", color = "#86073A", shortname = "",},
["Madrilenian Independent Regional Party"] = {abbrev = "", color = "#FA641B", shortname = "",},
["Maendeleo Chap Chap Party"] = {abbrev = "MCC", color = "#632F91", shortname = "",},
["Maendeleo Democratic Party"] = {abbrev = "MDP", color = "#03F601", shortname = "",},
["Magdalo Party-List"] = {abbrev = "", color = "#DC143C", shortname = "Magdalo",},
["Maghrebi Republican Party"] = {abbrev = "", color = "#2B5D29", shortname = "",},
["Magtymguly Youth Organisation of Turkmenistan"] = {abbrev = "TMÃ G", color = "#367A00", shortname = "",},
["Magyar Party (Romania)"] = {abbrev = "PM", color = "#2e502d", shortname = "",},
["Maha Vikas Aghadi"] = {abbrev = "MVA", color = "#1C89B7", shortname = "",},