Module talk:Political party/Archive 4
![]() | 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. |
Archive 1 | Archive 2 | Archive 3 | Archive 4 |
Edit Request Libertarian Party (Australia)
The former Liberal Democratic Party (Australia) has changed its article's name to Libertarian Party (Australia), please update the party in the Template. – GlowstoneUnknown (Talk) 14:00, 26 July 2024 (UTC)
Help?: ‘Independent’ not linking correctly
At the very bottom of the infobox of Ikaroa-Rāwhiti, the previous MP is listed as independent, with “Independent” being passed via {{Infobox New Zealand electorate}} into {{Party abbrev linked}}, and returning “Ind”. But for whatever reason, the link returned is Independent, and not Independent politician. Any ideas where this is going wrong? — HTGS (talk) 08:02, 18 August 2024 (UTC)
- That's a GIGO issue. {{party abbrev linked}} returns a link to the input value, not the value passed by the module; if you want it to link to Independent politician then you'll need to put that as the
|previous_mp_party=
Primefac (talk) 11:35, 18 August 2024 (UTC)
Edit request 19 August 2024
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.
The same principle applies to Voice – Social Democracy, which is currently incorrectly abbreviated as "HLAS–SD." 90.64.64.22 (talk) 08:41, 19 August 2024 (UTC)
Done. Primefac (talk) 11:56, 19 August 2024 (UTC)
- 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)
- You were non-specific. Primefac (talk) 13:53, 19 August 2024 (UTC)
- 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)
Edit request 19 August 2024
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)
- Does this organisation actually use the shorthand "Bridge" to describe themselves? Primefac (talk) 12:27, 20 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)
- If they refer to themselves as Most–Híd then we will do the same. I have fixed the endash issue. Primefac (talk) 15:56, 23 August 2024 (UTC)
Edit request relating to multiple parties
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 website 79.170.253.184 (talk) 11:56, 12 July 2024 (UTC)
- The website confirms that the colour is FAA61A. It calls itself yellow, but it looks to me like orange Cal3000000 (talk) 11:31, 1 September 2024 (UTC)
Change the color of Indian National Congress
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)
- Indian National Congress says sky blue is customary. Feel free to get consensus to change it. Primefac (talk) 16:12, 2 September 2024 (UTC)
Change the short name of Christian Democratic Union from
Can the short name of "Christian Democratic Union" be changed from "Christian Democratic Union" to "CDU". DotCoder (talk) 21:06, 2 September 2024 (UTC)
- It is already CDU. I suspect wherever you are seeing it not as CDU, it has been changed manually in the article. Number 57 00:29, 3 September 2024 (UTC)
Edit request 5 September 2024
![]() | This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Can "European Conservatives and Reformists Group" be added as "ECR"? This group alliance page was moved to European Conservatives and Reformists Group. Natg 19 (talk) 17:38, 5 September 2024 (UTC)
Not done: According to the page's protection level you should be able to edit the page yourself. If you seem to be unable to, please reopen the request with further details. See Module:Political party § Updating the module for more info. Primefac (talk) 18:16, 5 September 2024 (UTC)
- Thanks! I did not see these instructions of how to edit. Natg 19 (talk) 01:21, 6 September 2024 (UTC)
Edit request 16 August 2024
![]() | This edit request to Module:Political party/U has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Request to add the United Labor Party (New York), a regional and now defunct political party. The Hex Code is #6666e0 and the abbreviation is "ULP"
["United Labor Party (New York)"] = {abbrev = "ULP", color = "#6666e0", shortname = "",},
— Preceding unsigned comment added by 74.104.136.138 (talk) 23:27, 16 August 2024 (UTC)
Done. Primefac (talk) 12:05, 17 August 2024 (UTC)
- ["Secular Democratic Alliance"] = {abbrev = "SDA", color = "#E4032E", shortname = "Mahajot", 49.47.141.165 (talk) 05:58, 6 September 2024 (UTC)
Edit request 6 September 2024
![]() | This edit request to Module:Political party/S has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Description of suggested change: ["Secular Democratic Alliance"] = {abbrev = "SDA", color = "#E4032E", shortname = "Mahajot",} Diff:
− | + | ["Secular Democratic Alliance"] = {abbrev = "SDA", color = "#E4032E", shortname = "Mahajot",} |
49.47.141.165 (talk) 05:56, 6 September 2024 (UTC)
Completed. P.I. Ellsworth , ed. put'er there 10:41, 6 September 2024 (UTC)
Edit request 7 September 2024
![]() | This edit request to Module:Political party/S has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
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= or |ans= 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 = | + | ["West Dunbartonshire Community Party"] = {abbrev = "", color = "#862C8A", shortname = "West Dunbartonshire Community",}, |
WanderingPlaywright (talk) 19:04, 13 September 2024 (UTC)
Edit request 13 September 2024
![]() | This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Description of suggested change: Make the colour for the Old Windsor Residents' Association #019642
Diff:
− | + | ["Old Windsor Residents Association"] = {abbrev = "OWRA", color = "#019642", shortname = "",}, |
Infinite Hydra (talk) 18:26, 13 September 2024 (UTC)
Integration with Wikidata
Hi,
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.
Has this been discussed previously? Are there initiatives in this sense? Julius Schwarz (talk) 18:53, 12 September 2024 (UTC)
- Are you talking about this in regard specifically to this module, or are you just asking for general opinions? Primefac (talk) 19:54, 12 September 2024 (UTC)
- This discussion started in User talk:Julius Schwarz#Linking party colours to Wikidata, after they started replacing the use of Template:Party color with links to Wikidata (example 1, example 2). Brainiac242 (talk) 20:15, 12 September 2024 (UTC)
- 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)
- 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)
- This discussion started in User talk:Julius Schwarz#Linking party colours to Wikidata, after they started replacing the use of Template:Party color with links to Wikidata (example 1, example 2). Brainiac242 (talk) 20:15, 12 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 • c 17:02, 14 September 2024 (UTC)
Edit request 16 September 2024
![]() | This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Description of suggested change: Make the colour for the West Windsor Residents Association #3863C1
Diff:
− | + | ["West Windsor Residents Association"] = {abbrev = "WWRA", color = "#3863C1", shortname = "",}, |
Infinite Hydra (talk) 16:35, 16 September 2024 (UTC)
Not done: please provide reliable sources that support the change you want to be made. I see that they use that color for links on their website, but it's not in their official logo. --Ahecht (TALK
PAGE) 14:53, 27 September 2024 (UTC)- Never mind about the colour then, I get what you're saying. Would you still be able to add the party's abbreviation? Infinite Hydra (talk) 15:57, 27 September 2024 (UTC)
- @Infinite Hydra I had to modify the module to allow it to take "default" as the color value, but this is now
Done. --Ahecht (TALK
PAGE) 16:25, 1 October 2024 (UTC)- Thank you Infinite Hydra (talk) 16:52, 1 October 2024 (UTC)
- @Infinite Hydra I had to modify the module to allow it to take "default" as the color value, but this is now
- Never mind about the colour then, I get what you're saying. Would you still be able to add the party's abbreviation? Infinite Hydra (talk) 15:57, 27 September 2024 (UTC)
Colorado Center Party
![]() | This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Description of suggested change:
The Colorado Center Party has values for its short name and color in the module, but neither show up on articles such as 2024 Colorado House of Representatives election#District 34. I have not a clue as to why it isn't working. If someone could make the Colorado Center Party appear in election boxes with the shortname "center" and a purple hue, that'd be great! FoamingInDenver (talk) 20:47, 9 October 2024 (UTC)
- 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).
Fixed the problem and it looks like it should be working as intended. Primefac (talk) 15:13, 10 October 2024 (UTC)
- Thanks for the help! FoamingInDenver (talk) 17:00, 10 October 2024 (UTC)
Extended-confirmed-protected edit request on 16 October 2024
![]() | This edit request to Module:Political party/G has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
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)
Change UDF color
![]() | This edit request to Module:Political party has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Description of suggested change: ["United Democratic Alliance"] = {abbrev = "UDF", color = "#FFD700", shortname = "UDF",} Diff:
− | + | ["United Democratic Alliance"] = {abbrev = "UDF", color = "#FFD700", shortname = "UDF",} |
हिन्दू खतरे में हैं (talk) 10:19, 22 October 2024 (UTC)
- @Primace हिन्दू खतरे में हैं (talk) 10:19, 22 October 2024 (UTC)
- @हिन्दू खतरे में हैं Did you mean UDA or UDF? There are currently five political parties named "United Democratic Alliance" supported in the template (they're the ones listed at United Democratic Alliance) and a handful that are abbreviated UDF. Based on your username, I'm assuming you're referring to United Democratic Alliance (Nagaland), but you'll need to specify. In addition, you'll also need to provide a source that the party uses that color. --Ahecht (TALK
PAGE) 16:27, 22 October 2024 (UTC)
- @हिन्दू खतरे में हैं Did you mean UDA or UDF? There are currently five political parties named "United Democratic Alliance" supported in the template (they're the ones listed at United Democratic Alliance) and a handful that are abbreviated UDF. Based on your username, I'm assuming you're referring to United Democratic Alliance (Nagaland), but you'll need to specify. In addition, you'll also need to provide a source that the party uses that color. --Ahecht (TALK
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)
![]() | This edit request to Module:Political party/L has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Description of suggested change:
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 = | + | ["La France Insoumise"] = {abbrev = "LFI", color = "#56277E", shortname = "",}, |
– GlowstoneUnknown (Talk) 06:12, 13 September 2024 (UTC)
- I notified Wikipedia talk:WikiProject France, Wikipedia talk:WikiProject Politics/Political parties, and Talk:La France Insoumise of this request on 27 September. If there is no reply by 4 October, I think we can safely assume this is uncontrovertial. --Ahecht (TALK
PAGE) 16:09, 1 October 2024 (UTC) Done Sceptre (talk) 23:20, 16 November 2024 (UTC)
Edit request 23 November 2024
![]() | This edit request has been answered. Set the |answered= or |ans= 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.
Not done: it's not clear what changes you want to be made. Please mention the specific changes in a "change X to Y" format and provide a reliable source if appropriate. – Jonesey95 (talk) 02:46, 23 November 2024 (UTC)
Edit request 11 November 2024
![]() | This edit request to Module:Political party/D has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Description of suggested change: Please add the following Northern Ireland Assembly designations:
Designated Unionist - #448BEE
Designated Nationalist - #1B9750
Designated Other - #808080
Thank you. PointUnderstander (talk) 00:06, 11 November 2024 (UTC)
- Do you have a reliable source we can cite for the change? - Adolphus79 (talk) 20:03, 24 November 2024 (UTC)
Not done: it's not clear what changes you want to be made. Please mention the specific changes in a "change X to Y" format and provide a reliable source if appropriate. Primefac (talk) 12:39, 28 November 2024 (UTC)
Edit Request 23 November 2024
![]() | This edit request to Module:Political party/N has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
This is to inform that Nationalist Congress Party has changed the color from Pacific Blue to Pink (#FFC0CB). So change the party color as soon as possible. For reference pls see the page [1]. Thank You. Brandon Perker (talk) 12:11, 23 November 2024 (UTC)
Already done Primefac (talk) 12:40, 28 November 2024 (UTC)
References
Extended-confirmed-protected edit request on 27 November 2024
![]() | This edit request to Module:Political party/A has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
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)
Already done Primefac (talk) 12:44, 28 November 2024 (UTC)
Edit Request 26 November 2023
![]() | This edit request to Module:Political party/P has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please add Progressive Democratic Front (Andhra Pradesh) with #DB5353 456legendtalk 06:20, 26 November 2024 (UTC)
Done Primefac (talk) 12:43, 28 November 2024 (UTC)
- Hi @Primefac, can you please add the abbreviation in the module for this party: PDF 456legendtalk 10:43, 1 December 2024 (UTC)
- Sure. Primefac (talk) 22:00, 1 December 2024 (UTC)
- Hi @Primefac, can you please add the abbreviation in the module for this party: PDF 456legendtalk 10:43, 1 December 2024 (UTC)
Edit request, JLKM party color
JLKM use #7FFF00 color (not #E3F899) in their party flag. Ritwik Mahatat@lk 20:46, 26 November 2024 (UTC)
- @Ahecht Ritwik Mahatat@lk 06:27, 27 November 2024 (UTC)
- @RITWIK MAHATA https://jlkmparty.org/ uses #007236 and #0d5a30 . I don't see #7FFF00 anywhere. --Ahecht (TALK
PAGE) 15:04, 27 November 2024 (UTC)- See their party flag. Ritwik Mahatat@lk 15:13, 27 November 2024 (UTC)
- @Primefac Ritwik Mahatat@lk 13:12, 28 November 2024 (UTC)
- @Ahecht
- Here Ritwik Mahatat@lk 19:31, 29 November 2024 (UTC)
- @RITWIK MAHATA That's not the flag they're currently using on their website. --Ahecht (TALK
PAGE) 05:58, 30 November 2024 (UTC)- See partywise result section of Election Commission of India. Ritwik Mahatat@lk 07:00, 30 November 2024 (UTC)
- @RITWIK MAHATA That's not the flag they're currently using on their website. --Ahecht (TALK
- See their party flag. Ritwik Mahatat@lk 15:13, 27 November 2024 (UTC)
- @RITWIK MAHATA https://jlkmparty.org/ uses #007236 and #0d5a30 . I don't see #7FFF00 anywhere. --Ahecht (TALK
Edit request (JLKM party color)
JLKM use #7FFF00 color (not #E3F899) in their party flag. For party color see partywise result section. Ritwik Mahatat@lk 20:50, 4 December 2024 (UTC)
For languages not using latin
Hi, I am trying to do Module:Political party/ submodules in cyrillic. How to do that? Enkhsaihan2005 (talk) 08:25, 3 December 2024 (UTC)
- How to code Module:Political party that it requires cyrillic submodules Enkhsaihan2005 (talk) 08:28, 3 December 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)
- The problem is in cyrillic it doesn't work Enkhsaihan2005 (talk) 20:20, 4 December 2024 (UTC)
- What isn't working? Primefac (talk) 12:50, 5 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)- Change line 18 to:
if mw.ustring.match(index, '%A') then
string.match()
works on bytes, not unicode characters.- —Trappist the monk (talk) 15:11, 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.
return string.upper(index)
– certainly; I missed that onetext = 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 characterreturn_value = string.gsub(return_value, '#', '#')
–#
is an ascii character
- For those latter three, no need for the slower mw.ustring functions.
- —Trappist the monk (talk) 19:08, 8 December 2024 (UTC)
- Yeah, sort of.
- 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)
- Change line 18 to:
- Interesting. I am surprised
- 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)
- What isn't working? Primefac (talk) 12:50, 5 December 2024 (UTC)
- The problem is in cyrillic it doesn't work Enkhsaihan2005 (talk) 20:20, 4 December 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)
Democratic party (Serbia)
This module has wrong color according to the DS statue yellow on the flag has #FFF500 in RGB color space. No.cilepogača (talk) 21:35, 16 December 2024 (UTC)
Extended-confirmed-protected edit request on 29 November 2024
![]() | This edit request to Module:Political party/T has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
37.76.20.78 (talk) 19:41, 29 November 2024 (UTC)
Tisza Party #ED4551 > #112866
Not done for now: I'd like some sort of explanation since both colours are listed on the party's page Ultraodan (talk) 11:28, 29 December 2024 (UTC)
I have fundamental issues with the whole thing
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!
2001:A61:11A9:A601:475:5E48:DA20:B367 (talk) 10:23, 26 December 2024 (UTC)
- 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
- 2001:A61:11A9:A601:40DF:684:A6B1:A178 (talk) 00:47, 28 December 2024 (UTC)
- 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)