Jump to content

Module talk:European and national party data

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Trappist the monk (talk | contribs) at 22:19, 24 April 2025 (Issues with national party seats in national legislatures). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Links to archive: Archive 1, Archive 2, Archive 3

Roadmap: translation

Task Completion Comments
EN FR DE NL IT ES PT
Tests N/A Utilisateur Benutzer Gebruiker Utente Usuario Usuário
Create module, config file, three templates
module
config

module
config

module
config

module
config

module
config

module
config

module
config
Validate module and templates
  • Find way to translate hard-coded elements (EP, COR, all, seats, etc.)
  • Find way to adapt to local structures of wikidata/wd and composition bar modules
Add untranslated documentation to module N/A
Add untranslated documentation to templates N/A
Translate config file N/A ⚠️
Party names
translated
Add testcases
testcases
comp bar

testcases
comp bar
Deploy templates to EUPPs/EUPAs ⚠️
Test EUPP
and EPP
Deploy templates to national member parties ⚠️

Reference files:

Issues with national party seats in national legislatures

Hey @Trappist the monk, how are you? I am working on the translation of the module to use it across various Wikis, wanna help? I think key will be to find a way to localise the calls to Wikidata.

But a lower-hanging fruit is the case of Portugal, where the calls to wikidata and the composition bar are quite compatible with the English version. As you can see here and here, most tests work. The ones that don't seem to only concern the number of seats of national parties (called with their qIDs in the tests) in national legislatures, which would concern the function npp_seats_and_seat_share_in_national_institutions. However, I am not quite seeing what could be breaking it. Any ideas? Julius Schwarz (talk) 08:57, 24 April 2025 (UTC)[reply]

Ok, I am thinking that the member state name may be translated. I am going to try and move from using the member state's name to its qID. Julius Schwarz (talk) 09:13, 24 April 2025 (UTC)[reply]
Yes, that was it and I added european_party_qid and member_state_qid to the online table, in order to run checks on qIDs instead of on names. Julius Schwarz (talk) 13:06, 24 April 2025 (UTC)[reply]
A quick look at de:Modul:Wikidata, es:Módulo:Wikidata, fr:Module:Wikidata, it:Modulo:Wikidata, nl:Module:Wikidata, pt:Módulo:Wikidata seems to show that while there may be similarities among them, they do not appear to be the same as en:Module:Wikidata. I suspect that the politics necessary to unify these modules would be a daunting task. Perhaps the better solution is to roll-your-own access to wikidata using the mw.wikibase library. Such documentation as there is for that is at https://doc.wikimedia.org/Wikibase/master/php/docs_topics_lua.html.
Similarly, you might also create a custom lua version of {{composition bar}} so that you avoid anomalous variations that might crop up at the various wiki language editions.
Trappist the monk (talk) 22:18, 24 April 2025 (UTC)[reply]