Jump to content

Module talk:Political party

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

Edit request 7 September 2024

[edit]

@Primefac @Paine Ellsworth

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

Integration with Wikidata

[edit]

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

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

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 13 September 2024

[edit]

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

 Done Vacant0 (talkcontribs) 19:10, 13 September 2024 (UTC)[reply]

Edit request 13 September 2024

[edit]

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",},

WanderingPlaywright (talk) 19:04, 13 September 2024 (UTC)[reply]

 Done Vacant0 (talkcontribs) 19:08, 13 September 2024 (UTC)[reply]

Dark mode compatibility

[edit]

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 Coletc 17:02, 14 September 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]