This is an archive of past discussions about Module:Political party. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page.
I would like to suggest an edit change due to inaccuracy for the Direction – Social Democracy.
The current use of "SMER–SD" as an abbreviation is incorrect because "Smer" is a word, not an acronym. In Slovak, "Smer" means "Direction," and it’s not an initialism where each letter stands for a separate word. Therefore, it should be written as "Smer–SD" with only the first letter capitalized, which accurately reflects its status as a proper noun, not an abbreviation. Additionally, using all capitals misleadingly suggests that it is an acronym, which it is not, and this goes against proper linguistic conventions.
However, an even better solution would be to simply use "Smer" without the "–SD." The hyphen in "Smer–SD" implies the connection of two distinct entities, which is not accurate since "SD" merely functions as an adjective (Social Democracy), not a separate entity. This would align more closely with both the linguistic and political nature of the term.
Moreover, it is more practical, for example when listing the coalition in a results table. Instead of the potentially confusing "SMER–SD–Hlas–SNS" or "Smer–SD–Hlas–SNS," simply using "Smer–Hlas–SNS" provides a clearer and more streamlined presentation.
Hello, thank you. However, you changed HLAS–SD to HLAS, but Hlas is also a word, it means "Voice", so the abbreviation should be Hlas, not HLAS.--90.64.64.22 (talk) 13:31, 19 August 2024 (UTC)
I would like to suggest an edit change due to inaccuracy for Most–Híd.
"Most" means "bridge" in Slovak, and "Híd" means "bridge" in Hungarian, symbolizing the party’s role in connecting these two linguistic and cultural communities. Therefore, for greater clarity and accessibility to English-speaking audiences, the abbreviation "Bridge" should be used. This straightforward translation of both "Most" and "Híd" effectively conveys the party’s mission of bridging Slovak and Hungarian communities. Additionally, using "Bridge" might improve searchability and recognition in English-language contexts.
Moreover, using "Bridge" as the abbreviation would enhance clarity and coherence in coalition lists or political alliances, such as Smer–SNS–Bridge (government from 2016 to 2020). This format is more concise and user-friendly than Smer–SNS–Most–Híd, which could be cumbersome and less recognizable in general usage.--90.64.64.22 (talk) 17:42, 19 August 2024 (UTC)
Most–Híd never uses the abbreviation "Bridge" in Slovak or English, and the party exclusively refers to itself by its full name. The correct form is Most–Híd with an en dash, reflecting the official name and branding. Currently, Wikipedia uses a hyphen (Most-Híd), which must be changed to the en dash for accuracy.
Given that Most–Híd literally means "Bridge" in Slovak (most) and Hungarian (híd), "Bridge" could be considered for clarity in English contexts, particularly in coalition listings like Smer–SNS–Bridge. That is why I propose this alternative to the abbreviation Most–Híd with an en dash. 90.64.70.48 (talk) 20:39, 21 August 2024 (UTC)
As far as I am aware, the following parties’ colours are not correctly stored: (might be outdated)
-Renew Europe (European Parliament group, not a formal political party): Its colour returned by the template is yellow, while its official colour is light (sky) blue
-Liberal Democrats (UK): the Liberal Democrats official colours are yellow (FAA61A) and black (charcoal/process black) or (secondary) navy and coral.
The template spits out what appears to be gold (also what the article infobox says) but this is contradicted by the official Liberal Democrat website79.170.253.184 (talk) 11:56, 12 July 2024 (UTC)
User:Primefac
Indian National Congress is a liberal party which has not one official color. It's official colors are colors of Indian flag. Currently in Wikipedia it's represented by blue which represents conservative right-wing parties. So, I suggest to change the color to yellow which stands for liberalism. Das capitalist (talk) 15:53, 2 September 2024 (UTC)
Description of suggested change:
["Samajwadi Party"] = {abbrev = "SP", color = "#E3265B", shortname = "Samajwadi",}
["Communist Party of India (Marxist)"] = {abbrev = "CPI(M)", color = "#F0001C", shortname = "Marxist",}
["Communist Party of India"] = {abbrev = "CPI", color = "#B71C1C", shortname = "Communist",}
I suggest to change this colors they make problem in identifying. Interchange CPI and CPI(M) color.
49.47.141.165 (talk) 05:56, 7 September 2024 (UTC)
Edit request 13 September 2024
This edit request has been answered. Set the |answered= parameter to no to reactivate your request.
Description of suggested change:
Could you please update the colour listed for the West Dunbartonshire Community Party in line with the party colour listed on its page, taken from its logo.
Diff:
−
["West Dunbartonshire Community Party"] = {abbrev = "", color = "#C5000B", shortname = "West Dunbartonshire Community",},
+
["West Dunbartonshire Community Party"] = {abbrev = "", color = "#862C8A", shortname = "West Dunbartonshire Community",},
I am interested in the use of Wikidata data in Wikipedia, especially for infoboxes. The core idea, of course, is to avoid duplication of work and there are many instances where this could be beneficial.
From a "how easy is this to figure out for a relatively new editor", I am not really a fan of those example changes. My own personal bugbear with WD has always been how bloody obscure and unintuitive everything is; if I saw those edits in the wild I would have no idea what the WD calls were doing or even how I would check what values they access. Primefac (talk) 10:07, 13 September 2024 (UTC)
I guess this can be a broader discussion, but my question is specifically for this module, since this is in relation to what I mostly edit. I have worked to keep both Wikipedia and Wikidata up to date, and it seems like a lot of duplication, so I am interested in pushing for more integration -- maybe starting with pilot initiatives -- and the first question is whether this has been attempted or discussed before. Julius Schwarz (talk) 07:28, 13 September 2024 (UTC)
It has been discussed before, mostly in relation to biographical infoboxes, where the consensus is that WD is to be used very sparingly if at all because of the long-standing issues WD has with verifiability and sourcing as it relates to BLP-related matters. I haven't seen any of those types of discussions pop up lately so I honestly couldn't tell you the general feeling about WD, but my general advice would be that if you see duplication between the projects, get consensus before going around and mass-changing them; there are still a lot of folks who will either find the edits unnecessary or (for some individuals) outright problematic. Primefac (talk) 10:05, 13 September 2024 (UTC)
Thanks for the feedback @Primefac and fair points. I have already reverted changes after a discussion made me realise I had been too hasty. I also tested some integration and it does come with a few challenges, from the point of view of the layout already. Julius Schwarz (talk) 11:45, 14 September 2024 (UTC)
Dark mode compatibility
Any chance this can be updated to make it friendlier to dark mode? This could be as simple as using class="mw-no-invert" to avoid colors becoming washed out/reversed, but curious what others would think would be a good solution here. —Locke Cole • t • c17:02, 14 September 2024 (UTC)
Edit request 16 September 2024
This edit request has been answered. Set the |answered= parameter to no to reactivate your request.
This isn't an edit request, it's a request to figure out what's wrong with the template. For what it's worth the party is listed in /C, so it's likely an issue with either implementation or the template call on the article in question. I'll try to take a look but other eyes would be appreciated. Primefac (talk) 15:07, 10 October 2024 (UTC)
Huh... it was the module... someone added an extra bit of code that caused it to point to the wrong place (which incidentally didn't exist).
I suggest the color change of Gerindra party (Indonesia) to color #B79164. Because it's similar to Indonesian Democratic Party of Struggle (PDIP) MesinKetik (talk) 08:58, 16 October 2024 (UTC)
Not done for now: User is sock-blocked, so they can't respond. If anyone knows which one it is with a source, feel free to reopen. SWinxy (talk) 18:11, 28 October 2024 (UTC)
Edit request 13 September 2024 (La France Insoumise)
La France Insoumise's red is currently too similar to the reds of PS and PCF for my liking, I'd like to propose a return to its more official purple , the party's article describes the red as "customary", but in almost all media I personally see, purple is more commonly used, plus, as I said, the colour has poor contrast with the country's other left-wing and left-leaning parties' colours. What are people's thoughts on this?
Diff:
−
["La France Insoumise"] = {abbrev = "LFI", color = "#E53D40", shortname = "",},
+
["La France Insoumise"] = {abbrev = "LFI", color = "#56277E", shortname = "",},
This edit request has been answered. Set the |answered= parameter to no to reactivate your request.
Description of suggested change: Should the Bucktails not be added? They ran dozens of candidates for Congress from New York and won several elections. See here. I have no idea what the colors would be or if there should be a separate entry for their rivals, the Clintonians, though I suspect those were basically just the mainline Democratic-Republicans.
Aontú (Ireland) Colour should be reverted to 47532F. Along with all other edits to the colours of Irish political parties. Dyflinn (talk) 22:27, 27 November 2024 (UTC)
This module is split into submodules based on the letters of the alphabet, if only because having one module with all of the parties would just be too massive. I suspect you could do something similar for Cyrillic, i.e. have one submodule for each letter that a party starts with. Everything else should follow the same rules from there. Primefac (talk) 12:41, 3 December 2024 (UTC)
I have to put every political party into Module:Political party/1 because it wants only latin letters (for example I created Module:Political party/В etc and it isn't working) Enkhsaihan2005 (talk) 14:37, 7 December 2024 (UTC)
Interesting. I am surprised getFirstLetter(party) only works for Latin, but if that is the case then I do not know how to get around that issue. I have cross-posted to a few other places, hopefully someone that knows will be able to help. Primefac (talk) 14:54, 8 December 2024 (UTC)
Actually, all of the string functions should be replaced, like this. If that is not done, the module will fail to fetch color data. Snævar (talk) 18:17, 8 December 2024 (UTC)
Yeah, sort of.
returnstring.upper(index) – certainly; I missed that one
text=text:match('(%S.-)%s*$') – this just trims leading/trailing ascii whitespace ("\t\r\n\f\v ")
if out_type == 'color' and string.find(return_value, '#') then – # is an ascii character
return_value = string.gsub(return_value, '#', '#') – # is an ascii character
For those latter three, no need for the slower mw.ustring functions.
I have fundamental issues with the whole thing, because
in most cases there are no sources for the colour, it's WP:OR
in many cases parties are using a combination of colours and not just "the" colour
what, generally is "the" colour of a party? The main colour used in its marketing (who defines "main")? The party colours as defined in the statutes? The colour the party is referred to in the media? The colour used (by whom?) in election result graphics?
what happens, if several of the above are (widely) differing?
a WP page about a specific party is not editable regarding the colour, even if blatantly wrong!
Speaking very generally, this module isn't strictly giving "the" colour of a political party. As you say, colours are gathered from a variety of sources; political parties aren't necessarily known for publishing acceptable hex values as part of their identity. If something seems to be blatantly wrong, it can be discussed here and potentially changed. Primefac (talk) 13:02, 27 December 2024 (UTC)
it should be editable on the respective page, and not via a discussion on a template page! I arrived here because I wanted to change the colours of Siumut from the blatantly wrong "gold" (before 2021), but I was not able there on the page.
And given the fact that the colours are "from a variety of sources", we either have edit wars or lengthy discussions.
Siumut is blatantly wrong, but a lot of others are dubious at least. And I would love to see
the sources
and the way how someone arrived at the respective colour from the sources, so one could contest the conclusion
This module exists to give consistency across multiple articles for the same value (e.g. the colour of the Siumut party); having the values hard-coded into specific articles and then transcluded onto every other page that would need those colour values just isn't feasible. If there is a dispute about the colour choices for a particular party, then by all means discuss it on the talk page of the party's article; if there is a consensus to change, a simple cross-post here can be made and the value updated (or, if the editor is Extended Confirmed, they can just change it directly). Discussing changes here is also acceptable, though I do note that there are likely fewer talk page watchers to engage in discussion. Primefac (talk) 12:13, 29 December 2024 (UTC)
Request (Voice of Reason)
I have a request for the Hellenic political party Voice of Reason. The color of the party used on the module, is actually the secondary color. As you could see from a) most of the presentations by media, b) the main color at the party's website, and the main color at the emblem of the party (the letters of the party's name), dark blue (#020C6A) is the main color, and not the light blue. Could somebody update it? Greek Rebel (talk) 12:22, 20 December 2024 (UTC)
@Number 57 Happy New Year, first of all! Sorry, but we have another issue with the Greek party colors. This time it seems that Victory, according to its new statute, changed from ochre to imperial purple (#910048). Is it possible to change it? Thanks! Hellenic Rebel (talk) 19:50, 1 January 2025 (UTC)
Rename People's Socialist Party (Nepal) to People's Socialist Party (Nepal, 2024) and People's Socialist Party, Nepal to People's Socialist Party, Nepal (2020)PenGear (talk) 03:28, 7 January 2025 (UTC)
According its new statute, ([1]) Niki changed its colors. I think an update should be happen here. The color according the statute (the statute literally gives us the colorcode) is #910048. It is also in the new logo. Could somebody change it? Hellenic Rebel (talk) 22:01, 27 December 2024 (UTC)
Partly done: I only added the English name as we don't really need the Polish one, see the Law and Justice Party/PiS as an example. Aydoh8[contribs]15:01, 8 February 2025 (UTC)
Edit request for Together (Estonian political party) on 24 February 2025
Module:Piechart needs a color such as #FF9933 for Bharatiya Janata Party. However, {{party color|Bharatiya Janata Party}} outputs #FF9933. Module:Political party#L-104 seems to have been escaping the # for HTML display for a long time. Is there a mechanism to get #FF9933 instead? Or, should any module needing the color un-escape the output from this module? Johnuniq (talk) 20:37, 12 March 2025 (UTC)
You could try and replace in Module:Piechart the result string and replace # with "#" (the opposite of line 104). Gonnym (talk) 06:47, 17 March 2025 (UTC)
Thanks, I added that workaround a while ago and it appears it will be needed forever. Perhaps no other template/module needs a plain "#" but it would be good if Module:Political_party at least documented what it outputs. Johnuniq (talk) 07:22, 17 March 2025 (UTC)
This edit request has been answered. Set the |answered= parameter to no to reactivate your request.
Description of suggested change:
Request to change the party color for **DuterTen** to #015420. The current color for Partido Demokratiko Pilipino (PDP) does not reflect the color used in official campaign materials. The green (#015420) is consistently used on their posters and other visual branding.
Description of suggested change:
Request to change the party color for *Partido Federal ng Pilipinas* to #0500B4. The current color for the said political party does not reflect the color used in their official logo and campaign materials. The green (#0500B4) is consistently used on their posters and other visual branding.
style="width: 2px; color:inherit; background-color: #f50222;" data-sort-value="Communist Party of India" |
| scope="row" style="text-align: left;" | Communist Party of India
style="width: 2px; color:inherit; background-color: #cc0d0d;" data-sort-value="Communist Party of India (Marxist)" |
| scope="row" style="text-align: left;" | Communist Party of India
Done at Module:Political party/M due to alphabetical order. From the docs page: "Note that the alternate name of a party should be stored in its corresponding letter-based subpage; "Alabama Democratic Party" is listed in /A even though it is an alternate name for "Democratic Party (US)" (which is stored in /D)."Liu1126 (talk) 12:32, 13 June 2025 (UTC)
Edit request 13 June 2025
This edit request has been answered. Set the |answered= parameter to no to reactivate your request.
I'll like to ask for these two Czech parties to be added: