Page MenuHomePhabricator

noreferences.py should add <references /> under templates
Closed, ResolvedPublic

Description

When in article exists === References == section with certain templates, script should add <references /> under this templates

For cs.wiki there should be

== Reference ==
{{Překlad|...}}
<references />

instead of https://cs.wikipedia.org/w/index.php?title=Instrumentální_záznamy_teplot&diff=14746179&oldid=14065174

Related Objects

Event Timeline

Would be used for translation information templates, on lot of wikis.

Xqt triaged this task as Medium priority.Apr 9 2017, 7:08 PM
Xqt subscribed.

Change 408018 had a related patch set uploaded (by Dvorapa; owner: Dvorapa):
[pywikibot/core@master] [bugfix][TEST] Add references under templates in existing section

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

Is it ok to just skip any template or comment in the existing section or should we add a list of templates to skip for each wiki?

Change 408018 merged by jenkins-bot:
[pywikibot/core@master] [IMPR][TEST] Add references under templates in existing section

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

Kizule moved this task from Backlog to references on the Pywikibot-Scripts board.
Kizule subscribed.

This can be now closed as resolved.

Xqt reopened this task as Open.EditedFeb 24 2018, 2:15 PM

Reopened due to T188175. Tests fails even if TypeError of T188175 is solved by passing None to generator parameter when instantiating the NoregeferencesBot. Patch committed above was reverted in https://gerrit.wikimedia.org/r/414103.

Change 414105 had a related patch set uploaded (by Xqt; owner: Dvorapa):
[pywikibot/core@master] [IMPR][TEST] Add references under templates in existing section

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

Change 414105 merged by jenkins-bot:
[pywikibot/core@master] [IMPR][TEST] Add references under templates in existing section

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