jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/395001 )
Change subject: [bugfix] Fix automatic delete reason to not categorize marked page ......................................................................
[bugfix] Fix automatic delete reason to not categorize marked page
Category marked for deletion uses in {{delete}} template reason equal to summary. But i18n summary contains link to the category without ":" colon. This fix only adds ":" into a category link in order not to categorize category by template reason.
Bug: T177724 Change-Id: I1455f0f6ec1877a0cfd68c0cd39f93fb278b8003 --- M scripts/category.py 1 file changed, 5 insertions(+), 1 deletion(-)
Approvals: jenkins-bot: Verified Xqt: Looks good to me, approved Zoranzoki21: Looks good to me, but someone else must approve
diff --git a/scripts/category.py b/scripts/category.py index 263b92d..9edf5f4 100755 --- a/scripts/category.py +++ b/scripts/category.py @@ -485,7 +485,11 @@ template_vars = {'oldcat': self.oldcat.title(withNamespace=False)} if self.newcat: template_vars.update({ - 'newcat': self.newcat.title(withNamespace=False, asLink=True), + 'newcat': self.newcat.title( + withNamespace=False, + asLink=True, + textlink=True + ), 'title': self.newcat.title(withNamespace=False)}) # Set edit summary for changed pages. if comment:
pywikibot-commits@lists.wikimedia.org