[Pywikipedia-bugs] [Maniphest] [Commented On] T345033: In the Pywikibot "unusedfiles.py" script, add "template_to_the_image" at the top of the image page, not the bottom of it

2023-08-27 Thread Aram
Aram added a comment. @Xqt, Thank you for your reply! Yes, the additional `-up` option can fix the problem, but it doesn't have to affect the message sent to the uploader's talk page. However, (in my opinion) adding the tag to the top of the image/file pages should be made the default option

[Pywikipedia-bugs] [Maniphest] [Triaged] T345033: In the Pywikibot "unusedfiles.py" script, add "template_to_the_image" at the top of the image page, not the bottom of it

2023-08-27 Thread Xqt
Xqt changed the subtype of this task from "Task" to "Feature Request". Xqt triaged this task as "Medium" priority. Xqt added a comment. Refer the doumentation: //This bot appends some text to all unused images// I change this task to a feature request. An additional option `-up` could be

[Pywikipedia-bugs] [Maniphest] [Commented On] T345042: How to translate MediaWiki Magic words with Pywikibot?

2023-08-27 Thread Xqt
Xqt added a comment. You can use Site.getmagicwords() to get magic words for translation: >>> import pywikibot >>> site = pywikibot.Site('de') >>> words = site.getmagicwords

[Pywikipedia-bugs] [Maniphest] [Edited] T345038: Pywikibot throws an error when mediainfo of a file doesn't exist

2023-08-27 Thread Zache
Zache updated the task description. TASK DETAIL https://phabricator.wikimedia.org/T345038 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Zache Cc: pywikibot-bugs-list, Aklapper, Zache, Isabelladantes1983, Themindcoder, Adamm71, Jersione, Hellket777,

[Pywikipedia-bugs] [Maniphest] [Updated] T345038: Pywikibot throws an error when mediainfo of a file doesn't exist

2023-08-27 Thread gerritbot
gerritbot added a project: Patch-For-Review. TASK DETAIL https://phabricator.wikimedia.org/T345038 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Zache, gerritbot Cc: pywikibot-bugs-list, Aklapper, Zache, Isabelladantes1983, Themindcoder, Adamm71, J

[Pywikipedia-bugs] [Maniphest] [Commented On] T345038: Pywikibot throws an error when mediainfo of a file doesn't exist

2023-08-27 Thread gerritbot
gerritbot added a comment. Change 952553 had a related patch set uploaded (by Zache-tool; author: Zache-tool): [pywikibot/core@master] bugfix for T345038. Test if mediainfo exists. Added get_data_for_new_entity() for creating empty mediainfo. https://gerrit.wikimedia.org/r/952553 T

[Pywikipedia-bugs] [Maniphest] [Created] T345042: How to translate MediaWiki Magic words with Pywikibot?

2023-08-27 Thread Geertivp
Geertivp created this task. Geertivp added projects: Pywikibot, Pywikibot-Scripts. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION I have a simple question: I would like to write a multilingual bot script to localise Magic words like: {{DEFAULTSORT

[Pywikipedia-bugs] [Maniphest] [Edited] T345038: Pywikibot throws an error when mediainfo of a file doesn't exist

2023-08-27 Thread Zache
Zache updated the task description. TASK DETAIL https://phabricator.wikimedia.org/T345038 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Zache Cc: pywikibot-bugs-list, Aklapper, Zache, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Z

[Pywikipedia-bugs] [Maniphest] [Updated] T345038: Pywikibot throws an error when mediainfo of a file doesn't exist

2023-08-27 Thread Reedy
Reedy added a project: Pywikibot. Restricted Application added a subscriber: pywikibot-bugs-list. TASK DETAIL https://phabricator.wikimedia.org/T345038 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Zache, Reedy Cc: pywikibot-bugs-list, Aklapper, Zac

[Pywikipedia-bugs] [Maniphest] [Created] T345036: pywikibot.APISite.fromDBName does not work for roa_rupwiki

2023-08-27 Thread MisterSynergy
MisterSynergy created this task. MisterSynergy added a project: Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION **Steps to replicate the issue** (include links if applicable): - Try to instantiate a Site object via pywikibot.APISite.fromD