jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/669349 )
Change subject: [scripts] Restore reflinks.py ......................................................................
[scripts] Restore reflinks.py
Bug: T223826 Change-Id: I8e5d121de740930de6fbcd7f4fa3bd2b9173fa81 --- M docs/scripts/scripts.rst M scripts/README.rst R scripts/reflinks.py M tox.ini 4 files changed, 12 insertions(+), 4 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/docs/scripts/scripts.rst b/docs/scripts/scripts.rst index b72acdf..291246f 100644 --- a/docs/scripts/scripts.rst +++ b/docs/scripts/scripts.rst @@ -153,8 +153,14 @@
scripts.redirect script ----------------------- + .. automodule:: scripts.redirect
+scripts.reflinks script +----------------------- + +.. automodule:: scripts.reflinks + scripts.replace script ----------------------
diff --git a/scripts/README.rst b/scripts/README.rst index ca5e9a7..36f1217 100644 --- a/scripts/README.rst +++ b/scripts/README.rst @@ -91,6 +91,10 @@ | | solve_disambiguation also has functions which treat | | | redirects. | +------------------------+---------------------------------------------------------+ + | reflinks.py | Search for references which are only made of a link | + | | without title and fetch the html title from the link to | + | | use it as the title of the wiki link in the reference. | + +------------------------+---------------------------------------------------------+ | replace.py | Search articles for a text and replace it by another | | | text. Both text are set in two configurable | | | text files. The bot can either work on a set of given | @@ -133,6 +137,7 @@
+------------------------+---------------------------------------------------------+ | archive | Scripts no longer maintained. | + | | Please open a Phabricator task if you want to use one. | +========================+=========================================================+ | blockpagechecker.py | Deletes any protection templates that are on pages | | | which aren't actually protected. | @@ -210,10 +215,6 @@ +------------------------+---------------------------------------------------------+ | protect.py | Protect and unprotect pages en masse. | +------------------------+---------------------------------------------------------+ - | reflinks.py | Search for references which are only made of a link | - | | without title and fetch the html title from the link to | - | | use it as the title of the wiki link in the reference. | - +------------------------+---------------------------------------------------------+ | selflink.py | This bot goes over multiple pages of the home wiki, | | | searches for selflinks, and allows removing them. | +------------------------+---------------------------------------------------------+ diff --git a/scripts/archive/reflinks.py b/scripts/reflinks.py similarity index 100% rename from scripts/archive/reflinks.py rename to scripts/reflinks.py diff --git a/tox.ini b/tox.ini index 6a89ee0..1dd0d9d 100644 --- a/tox.ini +++ b/tox.ini @@ -161,6 +161,7 @@ scripts/movepages.py : N802, N803, N806 scripts/noreferences.py : N802, N803, N806, N816 scripts/redirect.py : N803, N806 + scripts/reflinks.py : N802, N816 scripts/replace.py : N802, N803, N806, N816 scripts/solve_disambiguation.py : N802, N803, N806 scripts/templatecount.py: N802
pywikibot-commits@lists.wikimedia.org