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:
--
To view, visit https://gerrit.wikimedia.org/r/395001
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I1455f0f6ec1877a0cfd68c0cd39f93fb278b8003
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Dvorapa <[email protected]>
Gerrit-Reviewer: Framawiki <[email protected]>
Gerrit-Reviewer: Hashar <[email protected]>
Gerrit-Reviewer: John Vandenberg <[email protected]>
Gerrit-Reviewer: MarcoAurelio <[email protected]>
Gerrit-Reviewer: Matěj Suchánek <[email protected]>
Gerrit-Reviewer: Maven-release-user <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: Zoranzoki21 <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits