Page MenuHomePhabricator

redirect.py: please add deletion template to Meta
Closed, ResolvedPublic

Description

pwb.py redirect br -delete doesn't work because PWB does not find any deletion template into its files for Meta-Wiki. Is it possible to define it? It should be {{delete|1=Bot: broken redirect.}}. If you tell me where to add it I can also send the patch to gerrit for review. Thank you.

Event Timeline

Unfortunately the broken redirect template is part of the i18n system but must be L10N instead. https://gerrit.wikimedia.org/r/#/c/243630/ should solve this.

Change 243630 had a related patch set uploaded (by Xqt):
[FIX] Change tw(n)translate from Site.code to Site.lang dependency

https://gerrit.wikimedia.org/r/243630

Thank you. However Meta uses {{delete}} as speedy deletion template. But for English, {{db-r1}} seems to be the default. Is there a way to conciliate both templates or can we create an exception for Meta & Commons in the file instead?

Hi. Any progress on this one? Please also see my comment above. Thank you!

Change 243630 merged by jenkins-bot:
[pywikibot/core@master] [FIX] Change tw(n)translate from Site.code to Site.lang dependency

https://gerrit.wikimedia.org/r/243630

Which template will the bot use now? If it's going to be db-r1 it does not
really solve the problem. Maybe is it possible to customize the template
via meta_family.py?

Indeed it now uses db-r1. Somewhat this is an advance since I can now tag for speedy deletion those broken redirects (I've created the template so it points to the actual deletion template); but maybe we should indeed add support so we can further customize the template in meta_family.py. Would it be hard to achive that? I'd appreciate if that could be done. Regards.

The main problem is that we use i18n (translations) but we should have some kind of L10N (localisation) for templates. Wikidata would be an Option but unfortunately the usage of the given speedy deletion template may differ. I guess there is a patch in prepration to have the ability to set several localisation settings on wiki site directly.

Currently I guess the best solution is to have an option to set the template manually.

Change 344876 had a related patch set uploaded (by Xqt):
[pywikibot/core@master] [IMPR] Enable a new option sdtemplate for customized sd template

https://gerrit.wikimedia.org/r/344876

Xqt triaged this task as Medium priority.Mar 26 2017, 11:18 PM

Change 344876 merged by jenkins-bot:
[pywikibot/core@master] [IMPR] Enable a new option sdtemplate for customized sd template

https://gerrit.wikimedia.org/r/344876

Xqt claimed this task.