Steps to replicate the issue (include links if applicable):
The delinker script currently only removes files wrapped in double brackets, like [[file:title.extension]]. However, many files are not in this format and appear as values in template parameters, gallery tags, and elsewhere. These files should also be removed. Since we already have the full title of the deleted files from the deletion log, implementing this process would be relatively simple.
I noticed some more issues along with the main title. Here:
- Run this on ckbwiki: python pwb.py delinker -family:wikipedia -lang:ckb -category
What happens?:
You should get these lines, but files in these two pages are not wrapped in double brackets.
First page:
Reading settings from scripts.ini file. WARNING: "since" is not a valid option. It was ignored. . >>> Delinking پەڕگە:2001 A Space Odyssey (1968) theatrical poster variant.jpg <<< >>> ٢٠٠١: ئۆدێسەی بۆشایی ئاسمان <<< No changes were needed on [[ckb:٢٠٠١: ئۆدێسەی بۆشایی ئاسمان]]
Next page:
>>> Delinking پەڕگە:Almaty 13.jpg <<< >>> ئالماتی <<< No changes were needed on [[ckb:ئالماتی]]
What should have happened instead?:
- The message WARNING: "since" is not a valid option. It was ignored. should not appear since we did not provide the -since option.
The script initially shows >>> Delinking پەڕگە:2001 A Space Odyssey (1968) theatrical poster variant.jpg <<< and then displays the page title >>> ٢٠٠١: ئۆدێسەی بۆشایی ئاسمان <<<. This causes confusion as it's unclear which file corresponds to which page. The page title should appear first, followed by the delinking messages.Explained here: T388851#11399212- The script shows No changes were needed on [[ckb:٢٠٠١: ئۆدێسەی بۆشایی ئاسمان]] without removing the file link even though the file was deleted locally. Since we have got the full file name, the script should remove it unconditionally.
- The same issue occurs with the next page, where Almaty 13.jpg was deleted on Wikimedia Commons and is called in <gallery> tags. It was expected to be removed, but the script did not remove it.
Software version
Release version: 9.6.2