Tecnicismes Tecnicismes és un espai de La taverna dedicat al suport i la col·laboració en temes tècnics. Tota pregunta o proposta tècnica té cabuda aquí, tant si està relacionada amb la Viquipèdia com amb qualsevol dels projectes germans. Si teniu dubtes sobre edició de continguts, pregunteu a la secció d'Ajuda.

Es mostren les converses actives. S'arxiven les que tenen més de 15 dies d'inactivitat. Si voleu reprendre converses velles, cerqueu-les a l'arxiu de tecnicismes i inicieu un fil nou enllaçant a les converses prèvies.

La taverna: Novetats | Propostes | Ajuda | Multimèdia | Tecnicismes

Hi, I’m Johannes from Wikimedia Deutschland’s Technical Wishes team. Apologies for writing in English. Si us plau, ajudeu a traduir-ho al vostre idioma! We are considering to work on Community Wishlist/W17: Improve VE references' automatic names and reuse. This has been a long-term issue for wikitext editors (see e.g. en:WP:VisualEditor/Named references) which has been among the top-voted wishes in several Community Wishlist Surveys, e.g. 2017, 2019, 2022 or 2023.

We would like your input on the solutions proposed on our project page: m:WMDE Technical Wishes/References/VisualEditor automatic reference names. We are considering several options, which can be combined if desired by the community.

  • Changing the default pattern for automatically generated reference names (currently ":n", e.g. ":0", ":1"...) to use the reference type instead (e.g. "book_reference-1").
  • Providing a simple mechanism for communities to configure a different default name.
  • Generating automatic reference names based on the domain name (if it’s a web citation).
  • Generating automatic reference names based on template parameters (e.g. "title" or "last"+"first") – defined by the community.

Visit our project page to read about our proposal in detail and share your thoughts on metawiki.

Please note: We will only implement a solution if there’s clear consensus among the global community. Our intention is not to build the perfect solution, but to find a simple and lean one that alleviates the pain caused by auto generated names. We are aware that some experienced VisualEditor users might prefer an option to manually change reference names in VisualEditor, but such a UX intervention is difficult to achieve across reference types and thus out of scope for our team, we can only improve the auto-naming mechanism. We are happy about suggestions for improving certain details of the proposed solutions. Any other feedback and alternative proposals are also welcome – even though it’s out of scope for us, it might still be relevant for future work on this topic.

Please support us interpreting consensus by clearly indicating your opinion (e.g. by using support/neutral/oppose templates). We are aware of en:WP:NOTVOTE, but given that we are facilitating this discussion with users from different wikis, potentially commenting in their native language, clearly indicating your position helps us avoid misunderstandings.

Thank you for participating!

Johannes Richter (WMDE) (discussió) 12:15, 19 març 2026 (CET)Respon

Hello everyone,

This is a notice regarding an ongoing data migration on Wikidata that may affect your election-related templates and Lua modules (such as Module:Itemgroup/list).

The Change:
Currently, many templates pull electoral maps from Wikidata using the property P1846, combined with the qualifier P180: Q19571328.

We are migrating this data (across roughly 4,000 items) to a newly created, dedicated property: P14226.

What You Need To Do:
To ensure your templates and infoboxes do not break or lose their maps, please update your local code to fetch data from P14226 instead of the old P1846 + P180 structure. A list of pages was generated using Wikimedia Global Search.

Deadline:
We are temporarily retaining the old data on P1846 to allow for a smooth transition. However, to complete the data cleanup on Wikidata, the old P1846 statements will be removed after May 1, 2026. Please update your modules and templates before this date to prevent any disruption to your wiki's election articles.

Let us know if you have any questions or need assistance with the query logic. Thank you for your help! ZI Jony using MediaWiki message delivery (disc.) 19:09, 3 abr 2026 (CEST)Respon

Mirant la documentació diria que afecta la Plantilla:Infobox election.
@Amadalvarez, n'estàs al cas? Pere prlpz (disc.) 09:46, 4 abr 2026 (CEST)Respon
Gràcies, @Pere prlpz. Ja ho tenim canviat. De fet, aquest avís ho vaig provocar jo quan vaig avisar que la nova propietat s'havia d'incorporar massivament als 4000 items amb continguts vàlids a Mapa de distribució (P1846) i s'havia d'avisar del canvi per evitar tenir redundàncies. En @Zi Joni ha fet un treball excel·lent. amador (disc.) 11:23, 4 abr 2026 (CEST)Respon

La manera de tindre diversos comptes de bots al Toolforge era fins ara crear el fitxer user-password.py ficant-li variables d'entorn. Això ho han deshabilitat, cosa que fa que els bots ja no s'executen. Si hi ha cap botaire amb més d'un compte per al mateix projecte, teniu cap alternativa?

Se m'ocorren algunes formes com deixar en text pla les contrassenyes a un nivell fora de les carpetes versionades pel git, fins i tot ficar els tokens d'OAuth al fitxer user-password.py no és gens adequat... Ho he anat deixant còrrer però suposa una vulnerabilitat que no entenc com ho volen resoldre i no puc deixar els bots per a les execucions programades. O no estic entenent com ho he de fer.

Si algú sap de botaires al Toolforge amb més d'un compte per a un mateix projecte, si us plau, aviseu-los i que participen per ací... @Joutbis, crec que tu només en tens un, el JoRobot, en qualsevol cas com t'ho has organitzat? –Cœt 🚀 mascletà 14:02, 15 abr 2026 (CEST)Respon

Hola, @Coet:. Jo tinc dos bots, el JoRobot i el Threepbot; el segon no l'he creat jo, només l'he instal·lat a partir de l'UKBot. El JoRobot utilitza Pywikibot i s'executa de vegades des del meu portàtil, de vegades des de Toolforge, però ja fa temps que vaig implementar OAuth i vaig sense password. Per pywikibot, vaig seguir aquesta documentació. Simplement, vaig crear un fitxer a ~/.pywikibot/user-config.py. El meu és així:
# -*- coding: utf-8  -*-

# This is a sample file. You should use generate_user_files.py
# to create your user-config.py file.

# Modificat perquè faci logon als mínims llocs

mylang = 'ca'
family = 'wikipedia'
usernames['wikipedia']['ca'] = 			\
  usernames['commons']['*'] =			\
  usernames['wikidata']['*'] =			\
  'JoRobot'
authenticate['*.wikipedia.org'] =		\
  authenticate['*.wikimedia.org'] = 		\
  authenticate['*.wikidata.org'] = 		\
  authenticate['*.wiktionary.org'] = 		\
  ('consumer_token_que_t_hagin_donat', 'consumer_secret_que_t_hagin_donat', 'access_token_que_t_hagin_donat', 'access_secret_que_t_hagin_donat'
)

# això era per quan wikidata dona timeouts
maxlag = 60

Això queda fora del git i ho utilitzen tots els scripts python que fa servir el JoRobot.Joutbis (disc.) 10:47, 16 abr 2026 (CEST)Respon