jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/i18n/+/1159992?usp=email )
Change subject: cleanup: remove archivebot-archiveheader and redirect-broken-redirect-template
......................................................................
cleanup: remove archivebot-archiveheader and redirect-broken-redirect-template
Bug: T396399
Bug: T396447
Change-Id: Ibab7a8360f0fc239234ab0ccef1112eec77b145c
---
M archivebot/en.json
M archivebot/qqq.json
M redirect/en.json
M redirect/qqq.json
4 files changed, 0 insertions(+), 4 deletions(-)
Approvals:
jenkins-bot: Verified
Xqt: Looks good to me, approved
diff --git a/archivebot/en.json b/archivebot/en.json
index 45efb20..4b979c4 100644
--- a/archivebot/en.json
+++ b/archivebot/en.json
@@ -6,7 +6,6 @@
},
"archivebot-archive-full": "(ARCHIVE FULL)",
"archivebot-archive-summary": "Bot: Archiving %(count)d {{PLURAL:%(count)d|thread|threads}} from [[%(from)s]]",
- "archivebot-archiveheader": "{{talk archive}}",
"archivebot-older-than": "{{PLURAL:%(count)d|older}} than %(duration)s",
"archivebot-page-summary": "Bot: Archiving %(count)d {{PLURAL:%(count)d|thread|threads}} (%(why)s) to %(archives)s"
}
diff --git a/archivebot/qqq.json b/archivebot/qqq.json
index 8862c0f..40df87c 100644
--- a/archivebot/qqq.json
+++ b/archivebot/qqq.json
@@ -11,7 +11,6 @@
},
"archivebot-archive-full": "Appended to the summary.",
"archivebot-archive-summary": "Summary message when the bot adds threads to the archive",
- "archivebot-archiveheader": "{{doc-important|Only use your deletion template like <code><nowiki>{{talk archive}}</nowiki></code> which exist on your local project.}}\nNOTE TO TRANSLATOR: This should only be translated by someone on the Wikipedia of your language code. Thank you.\n\nTemplate that will be put on new archive pages as the header.\n\nNOTE: If this system message is not given for a language code, an archiving bot might not be supported on your site.",
"archivebot-older-than": "\"duration\" is the localized form of the elapsed time.\n{{Identical|Older than}}\n\"count\" can be used to make a plural from \"older\"",
"archivebot-page-summary": "Summary message when the bot removes threads from a talk page for archiving"
}
diff --git a/redirect/en.json b/redirect/en.json
index ace067d..c9cdf3d 100644
--- a/redirect/en.json
+++ b/redirect/en.json
@@ -4,7 +4,6 @@
"Xqt"
]
},
- "redirect-broken-redirect-template": "{{db-r1}}",
"redirect-fix-broken-moved": "Fixing broken redirect from %(from)s to moved target page %(to)s",
"redirect-fix-double": "Fixing double redirect from %(from)s to %(to)s",
"redirect-fix-loop": "Fixing redirect loop from %(from)s to %(to)s",
diff --git a/redirect/qqq.json b/redirect/qqq.json
index 7797fc1..1f0c157 100644
--- a/redirect/qqq.json
+++ b/redirect/qqq.json
@@ -9,7 +9,6 @@
"ZxxZxxZ"
]
},
- "redirect-broken-redirect-template": "{{doc-important|Only use your deletion template like <code><nowiki>{{delete}}</nowiki></code> which exist on your local project.}}\n\nNOTE TO TRANSLATOR: This should only be translated by someone on the Wikipedia of your language code. Thank you.\n\nTemplate for speedy deletion of broken redirect or redirect loops which the bot tags onto the redirect page. This message may contain additional informations like template parameters or reasons for the deletion request.\n\nNOTE: If this system message is not given for a language code, speedy deletion request by a bot is not supported on your site except there is a bot with sysop flag.",
"redirect-fix-broken-moved": "Edit summary when the bot fixes a broken redirect to a moved page whose origin has been deleted.\nParameters:\n* <code>%(from)s</code>: the old redirect target\n* <code>%(to)s</code>: the new redirect target, as a wiki link.",
"redirect-fix-double": "Edit summary when the bot fixes double redirects.\nParameters:\n* <code>%(from)s</code>: the old redirect target as wiki link\n* <code>%(to)s</code> displays the new redirect target as a wiki link.",
"redirect-fix-loop": "Edit summary when the bot fixes redirect loops.\nParameters:\n* <code>%(from)s</code>: the old redirect target as wiki link\n* <code>%(to)s</code> displays the new redirect target as a wiki link.",
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/i18n/+/1159992?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: pywikibot/i18n
Gerrit-Branch: master
Gerrit-Change-Id: Ibab7a8360f0fc239234ab0ccef1112eec77b145c
Gerrit-Change-Number: 1159992
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot
jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1155193?usp=email )
Change subject: IMPR: Don't fix broken redirects if namespace of source and target are different
......................................................................
IMPR: Don't fix broken redirects if namespace of source and target are different
Bug: T396456
Change-Id: Id961b4598b99e09e6bf48d18d632da839f3a143c
---
M scripts/redirect.py
1 file changed, 15 insertions(+), 6 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/scripts/redirect.py b/scripts/redirect.py
index 3b84d73..83fd030 100755
--- a/scripts/redirect.py
+++ b/scripts/redirect.py
@@ -12,12 +12,18 @@
:double: Shortcut: **do**. Fix redirects which point to other redirects.
-:broken: Shortcut: **br**. Tries to fix redirect which point to nowhere
- by using the last moved target of the destination page. If this
- fails and the -delete option is set, it either deletes the page
- or marks it for deletion depending on whether the account has
- admin rights. It will mark the redirect not for deletion if
- there is no speedy deletion template available.
+:broken: Shortcut: **br**. Tries to fix redirect which point to
+ nowhere by using the last moved target of the source page
+ and both have the same namespace. If this fails and the
+ *-delete* option is set, it either deletes the page or
+ marks it for deletion depending on whether the account
+ has delete rights. It will mark the redirect not for
+ deletion if there is no speedy deletion template
+ available.
+
+ .. versionchanged:: 10.3
+ only tries to fix if the namspace of the source page
+ is equal to the destination page.
:both: Both of the above. Retrieves redirect pages from live wiki,
not from a special page.
@@ -515,6 +521,9 @@
if not movedTarget.exists():
# FIXME: Test to another move
pywikibot.info(f'Target page {movedTarget} does not exist')
+ elif redir_page.namespace() != movedTarget.namespace():
+ pywikibot.info(f'Namespace of {redir_page} is different'
+ f'from target page {movedTarget}')
elif redir_page == movedTarget:
pywikibot.info(
'Redirect to target page forms a redirect loop')
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1155193?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Id961b4598b99e09e6bf48d18d632da839f3a143c
Gerrit-Change-Number: 1155193
Gerrit-PatchSet: 3
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot