Page MenuHomePhabricator

edit_restricted_templates to support all Wikipedias
Open, LowPublic

Description

While fixing an issue with edit_restricted_templates missing for hewiki ( https://gerrit.wikimedia.org/r/#/c/pywikibot/core/+/497025/ ) I noticed currently each wikipedia should hard code the name of InUse tempalte in edit_restricted_templates config parameter.

Would be nice to automatically populate it based on Wikidata: https://www.wikidata.org/wiki/Q5617064

We can do it as lazy fallback (if there is no config for that Wikipedia, only then to fetch Wikidata)

Event Timeline

eranroz created this task.Mar 16 2019, 8:02 AM
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. · View Herald TranscriptMar 16 2019, 8:02 AM
Xqt triaged this task as Low priority.Mar 16 2019, 9:20 AM

Change 498714 had a related patch set uploaded (by Dvorapa; owner: Dvorapa):
[pywikibot/core@master] [feat] Allow i18n.translate fallback to wikibase item

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

Change 498714 merged by jenkins-bot:
[pywikibot/core@master] [feat] Allow i18n.translate fallback to wikibase item

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

Change 500713 had a related patch set uploaded (by Xqt; owner: Xqt):
[pywikibot/core@master] [feat] Allow i18n.translate fallback to wikibase item

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

Change 500713 abandoned by Dvorapa:
[feat] Allow i18n.translate fallback to wikibase item

Reason:
Surpressed by https://gerrit.wikimedia.org/r/#/c/pywikibot/core/ /500698/

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

Change 500698 had a related patch set uploaded (by Dvorapa; owner: Dvorapa):
[pywikibot/core@master] [feat] Allow i18n.translate fallback to wikibase item

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

Dvorapa added a subscriber: Dvorapa.Tue, Apr 2, 1:00 PM

Sorry for the noise. Last patch is the correct one and it will allow to solve this issue.