Module talk:European and national party data
Links to archive: Archive 1, Archive 2, Archive 3
Roadmap: translation
[edit]Task | Completion | Comments | ||||||
---|---|---|---|---|---|---|---|---|
EN | FR | DE | NL | IT | ES | PT | ||
Tests | N/A | Utilisateur | Community not interested | Gebruiker | Utente | Usuario | Usuário | |
Create module, config file, three templates | ✅ module config |
✅ module config |
✅ module config |
✅ module config |
✅ module config |
✅ module config |
||
Validate module and templates | ✅ | ❌ | ❌ | ❌ | ❌ | ✅ |
| |
Add untranslated documentation to module | N/A | ✅ | ✅ | ✅ | ✅ | ✅ | ||
Add untranslated documentation to templates | N/A | ❌ | ❌ | ❌ | ❌ | ❌ | ||
Translate config file | N/A | ❌ | ❌ | ❌ | ❌ | ⚠️ Party names translated |
Continue for PT with error messages | |
Add testcases | ✅ testcases comp bar |
❌ | ❌ | ❌ | ❌ | ✅ testcases comp bar |
||
Deploy templates to EUPPs/EUPAs | ✅ | ❌ | ❌ | ❌ | ❌ | ⚠️ Test EUPP and EPP |
Continue for PT when hard-coding of translation is done | |
Deploy templates to national member parties | ⚠️ | ❌ | ❌ | ❌ | ❌ | ❌ |
Reference files:
- Synchronizer: Synchronizer
- Module
- Module sandbox
- Templates
- Wikidata items
- Other
- Table mapping national parties to their European party of membership (also used to link a party or member state to its lower and upper houses)
- Module config file
Issues with national party seats in national legislatures
[edit]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)
- 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)
- 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)
- 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)
- Thanks @Trappist the monk, I can look into that, but that seems daunting too. I was kind of hoping that with a nice if conditionality on the language, we could spread the arguments as needed based on per-Wiki structures. But I will check your link.
- The composition bar point is probably less feasible, since this template would most likely be sitting next to other composition bars and would therefore really need to look the exact same. Julius Schwarz (talk) 11:31, 25 April 2025 (UTC)