Module:Parti politique/Data
Apparence
La documentation de ce module est générée par le modèle {{Documentation module}}.
Les éditeurs peuvent travailler dans le bac à sable (créer).
Voir les statistiques d'appel depuis le wikicode sur l'outil wstat et les appels depuis d'autres modules.
local data = {
-- à remplir avec suivant le modèle :
--["nom de la page sur Wikipédia"] = "couleur",
-- la couleur peut être en texte ou en hexadécimal.
-- Allemagne
["Die Linke"] = { couleur = "#be3075", logo = "Die Linke logo.svg" },
["Parti social-démocrate d'Allemagne"] = { couleur = "#e2001a", logo = "SPD logo.svg" },
["Alliance 90 / Les Verts"] = { couleur = "#008b00", logo = "Bündnis 90 - Die Grünen Logo.svg" },
["Union chrétienne-démocrate d'Allemagne"] = { couleur = "#000000", logo = "Cdu-logo.svg" },
["Union chrétienne-sociale en Bavière"] = { couleur = "#000000", logo = "CSU-logo.svg" },
["Alternative pour l'Allemagne"] = { couleur = "#009ee0", logo = "Alternative-fuer-Deutschland-Logo-2013.svg" },
-- Canada
["Parti libéral du Québec"] = { couleur = "lightcoral", logo = "Logo PLQ.svg" },
["Parti québécois"] = { couleur ="#004c9d", logo = "Parti Québécois.svg" },
-- États-Unis
["Parti républicain (États-Unis)"] = { couleur = "#ff3333", logo = "Logo-GOP.png" },
["Parti démocrate (États-Unis)"] = { couleur = "#3333ff", logo = "US Democratic Party Logo.svg" },
["Parti whig (États-Unis)"] = { couleur = "#f0dc82" },
-- France
["Front de gauche (France)"] = { couleur = "#ff0000", logo = "Logo frontdegauche.jpg" },
["Parti communiste français"] = { couleur = "#ff0000", logo = "Logopcf14.png" },
["Europe Écologie Les Verts"] = { couleur = "#7ab51d", logo = "Europe écologie les Verts logo 2011.png" },
["Parti socialiste (France)"] = { couleur = "#e20040", logo = "Ps-france-2016.svg" },
["Mouvement démocrate (France)"] = { couleur = "#f39900", logo = "LogoModem.gif" },
["Union pour la démocratie française"] = { couleur = "#00bfff", logo = "Logo udf.png" },
["Union pour un mouvement populaire"] = { couleur = "#0066cc", logo = "Logo de l'UMP.svg" },
["Les Républicains (parti français)"] = { couleur = "#0066cc", logo = "LesRépublicains15logo.svg" },
["Front national (parti français)"] = { couleur = "#010b5f", logo = "Logo Front National.svg" },
["Les Patriotes (parti politique)"] = { couleur = "#ed8b00", logo = "Les Patriotes 2018.png"},
-- Royaume-Uni
["Parti travailliste (Royaume-Uni)"] = { couleur = "#dc241f", logo = "Logo Labour Party.svg" },
["Libéraux-démocrates (Royaume-Uni)"] = { couleur = "#fdbb30", logo = "Liberal Democrats logo.svg" },
["Parti conservateur (Royaume-Uni)"] = { couleur = "#0087dc", logo = "Conservative logo 2006.svg" },
["UKIP"] = { couleur = "#70147a", logo = "UKIP logo.png" },
}
-- pour faciliter la détection de couleur standard et éviter les recherches dans 'Module:Couleur/data'
local webColor = { "AliceBlue", "AntiqueWhite", "Aqua", "Aquamarine", "Azure", "Beige", "Bisque", "Black", "BlanchedAlmond", "Blue", "BlueViolet", "Brown", "BurlyWood", "CadetBlue", "Chartreuse", "Chocolate", "Coral", "CornflowerBlue", "Cornsilk", "Crimson", "Cyan", "DarkBlue", "DarkCyan", "DarkGoldenRod", "DarkGray", "DarkGrey", "DarkGreen", "DarkKhaki", "DarkMagenta", "DarkOliveGreen", "DarkOrange", "DarkOrchid", "DarkRed", "DarkSalmon", "DarkSeaGreen", "DarkSlateBlue", "DarkSlateGray", "DarkSlateGrey", "DarkTurquoise", "DarkViolet", "DeepPink", "DeepSkyBlue", "DimGray", "DimGrey", "DodgerBlue", "FireBrick", "FloralWhite", "ForestGreen", "Fuchsia", "Gainsboro", "GhostWhite", "Gold", "GoldenRod", "Gray", "Grey", "Green", "GreenYellow", "HoneyDew", "HotPink", "IndianRed ", "Indigo ", "Ivory", "Khaki", "Lavender", "LavenderBlush", "LawnGreen", "LemonChiffon", "LightBlue", "LightCoral", "LightCyan", "LightGoldenRodYellow", "LightGray", "LightGrey", "LightGreen", "LightPink", "LightSalmon", "LightSeaGreen", "LightSkyBlue", "LightSlateGray", "LightSlateGrey", "LightSteelBlue", "LightYellow", "Lime", "LimeGreen", "Linen", "Magenta", "Maroon", "MediumAquaMarine", "MediumBlue", "MediumOrchid", "MediumPurple", "MediumSeaGreen", "MediumSlateBlue", "MediumSpringGreen", "MediumTurquoise", "MediumVioletRed", "MidnightBlue", "MintCream", "MistyRose", "Moccasin", "NavajoWhite", "Navy", "OldLace", "Olive", "OliveDrab", "Orange", "OrangeRed", "Orchid", "PaleGoldenRod", "PaleGreen", "PaleTurquoise", "PaleVioletRed", "PapayaWhip", "PeachPuff", "Peru", "Pink", "Plum", "PowderBlue", "Purple", "RebeccaPurple", "Red", "RosyBrown", "RoyalBlue", "SaddleBrown", "Salmon", "SandyBrown", "SeaGreen", "SeaShell", "Sienna", "Silver", "SkyBlue", "SlateBlue", "SlateGray", "SlateGrey", "Snow", "SpringGreen", "SteelBlue", "Tan", "Teal", "Thistle", "Tomato", "Turquoise", "Violet", "Wheat", "White", "WhiteSmoke", "Yellow", "YellowGreen"
}
-- accès plus direct
for i = 1, #webColor do
webColor[ webColor[i] ] = true
end
data.webColor = webColor
return data