Page MenuHomePhabricator

common_information fails if there are multiple language templates
Closed, ResolvedPublicBUG REPORT

Description

run commons_template:

pwb -simulate -site:commons commons_information -page:"File:!!полковник Киборт Л Л вики.jpg"

The script found this description:
<hr>

but there are already language links within the template:

@@ -3 +3 @@
- |description={{ru|1=Фотография полковника Киборта Леонтия Леонтьевича. Дата съемки 1912-1913 гг. Без аодписи фамилии. Случайно приобретено из стороннего источника. Персона предположительно потомками идентифицирована по ряду признаков.}}<hr> {{en|1=Photo of Colonel Kybort Leonty Leontyevich. Date: 1912-1913. Without an notation of the surname. Accidentally purchased from a third-party source. The person is presumably identified by descendants by a number of signs.}}
+

and the script tries to replace the given templates with the new language template (and deleted the older)

+ |description={{ru|<hr>}}

Event Timeline

Xqt triaged this task as Medium priority.May 10 2024, 4:41 PM
Xqt changed the subtype of this task from "Task" to "Bug Report".

Change #1030201 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] [bugfix] Ignore empty parts in description of Information template

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

Change #1030201 merged by jenkins-bot:

[pywikibot/core@master] [bugfix] Do not remove valid description parts of Information template

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