Jump to content

Module talk:Political party

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Edit request 13 September 2024 (La France Insoumise)

[edit]

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 = "#E53D40", shortname = "",},
+
["La France Insoumise"] = {abbrev = "LFI", color = "#56277E", shortname = "",},

– GlowstoneUnknown (Talk) 06:12, 13 September 2024 (UTC)[reply]

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)[reply]
 Done Sceptre (talk) 23:20, 16 November 2024 (UTC)[reply]

Edit request 16 September 2024

[edit]

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)[reply]

 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)[reply]
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)[reply]
@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)[reply]
Thank you Infinite Hydra (talk) 16:52, 1 October 2024 (UTC)[reply]

Colorado Center Party

[edit]

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)[reply]

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)[reply]
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)[reply]
Thanks for the help! FoamingInDenver (talk) 17:00, 10 October 2024 (UTC)[reply]

Extended-confirmed-protected edit request on 16 October 2024

[edit]

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)[reply]

 Done Primefac (talk) 11:47, 16 October 2024 (UTC)[reply]

Change UDF color

[edit]

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)[reply]

@Primace हिन्दू खतरे में हैं (talk) 10:19, 22 October 2024 (UTC)[reply]
@हिन्दू खतरे में हैं 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)[reply]
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)[reply]

Edit request 11 November 2024

[edit]

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)[reply]

Do you have a reliable source we can cite for the change? - Adolphus79 (talk) 20:03, 24 November 2024 (UTC)[reply]
 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)[reply]

Edit request 23 November 2024

[edit]

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)[reply]

Edit Request 23 November 2024

[edit]

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)[reply]

 Already done Primefac (talk) 12:40, 28 November 2024 (UTC)[reply]

References

Edit Request 26 November 2023

[edit]

Please add Progressive Democratic Front (Andhra Pradesh) with #DB5353 456legendtalk 06:20, 26 November 2024 (UTC)[reply]

 Done Primefac (talk) 12:43, 28 November 2024 (UTC)[reply]
Hi @Primefac, can you please add the abbreviation in the module for this party: PDF 456legendtalk 10:43, 1 December 2024 (UTC)[reply]
Sure. Primefac (talk) 22:00, 1 December 2024 (UTC)[reply]

Edit request, JLKM party color

[edit]

JLKM use #7FFF00 color (not #E3F899) in their party flag. Ritwik Mahatat@lk 20:46, 26 November 2024 (UTC)[reply]

@Ahecht Ritwik Mahatat@lk 06:27, 27 November 2024 (UTC)[reply]
@RITWIK MAHATA https://jlkmparty.org/ uses  #007236  and  #0d5a30 . I don't see  #7FFF00  anywhere. --Ahecht (TALK
PAGE
)
15:04, 27 November 2024 (UTC)[reply]
See their party flag. Ritwik Mahatat@lk 15:13, 27 November 2024 (UTC)[reply]
@Primefac Ritwik Mahatat@lk 13:12, 28 November 2024 (UTC)[reply]
@Ahecht
Here Ritwik Mahatat@lk 19:31, 29 November 2024 (UTC)[reply]
@RITWIK MAHATA That's not the flag they're currently using on their website. --Ahecht (TALK
PAGE
)
05:58, 30 November 2024 (UTC)[reply]
See partywise result section of Election Commission of India. Ritwik Mahatat@lk 07:00, 30 November 2024 (UTC)[reply]
for party color. Ritwik Mahatat@lk 13:00, 30 November 2024 (UTC)[reply]
@Ahecht Ritwik Mahatat@lk 12:51, 2 December 2024 (UTC)[reply]
@Primefac Ritwik Mahatat@lk 11:04, 3 December 2024 (UTC)[reply]

Extended-confirmed-protected edit request on 27 November 2024

[edit]

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)[reply]

 Already done Primefac (talk) 12:44, 28 November 2024 (UTC)[reply]

Extended-confirmed-protected edit request on 29 November 2024

[edit]
37.76.20.78 (talk) 19:41, 29 November 2024 (UTC)[reply]

Tisza Party #ED4551 > #112866

For languages not using latin

[edit]

Hi, I am trying to do Module:Political party/ submodules in cyrillic. How to do that? Enkhsaihan2005 (talk) 08:25, 3 December 2024 (UTC)[reply]

How to code Module:Political party that it requires cyrillic submodules Enkhsaihan2005 (talk) 08:28, 3 December 2024 (UTC)[reply]
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)[reply]
The problem is in cyrillic it doesn't work Enkhsaihan2005 (talk) 20:20, 4 December 2024 (UTC)[reply]
What isn't working? Primefac (talk) 12:50, 5 December 2024 (UTC)[reply]
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)[reply]
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)[reply]
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)[reply]
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)[reply]
Yeah, sort of.
  • return string.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.
Trappist the monk (talk) 19:08, 8 December 2024 (UTC)[reply]

Edit request (JLKM party color)

[edit]

@Jonesey95,@Primefac,@Ahecht

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)[reply]

Democratic party (Serbia)

[edit]

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)[reply]