jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/376567 )
Change subject: [Doc] Clean up uses of '¶ms;' placeholder
......................................................................
[Doc] Clean up uses of '¶ms;' placeholder
Change-Id: I1fa0410e67c52c22d2391b97155730f45ec64498
---
M scripts/claimit.py
M scripts/coordinate_import.py
M scripts/match_images.py
M scripts/patrol.py
M scripts/revertbot.py
M scripts/script_wui.py
M scripts/surnames_redirects.py
7 files changed, 12 insertions(+), 10 deletions(-)
Approvals:
jenkins-bot: Verified
Xqt: Looks good to me, approved
diff --git a/scripts/claimit.py b/scripts/claimit.py
index 845ad49..5741732 100755
--- a/scripts/claimit.py
+++ b/scripts/claimit.py
@@ -3,6 +3,10 @@
"""
A script that adds claims to Wikidata items based on a list of pages.
+These command line parameters can be used to specify which pages to work on:
+
+¶ms;
+
------------------------------------------------------------------------------
Usage:
diff --git a/scripts/coordinate_import.py b/scripts/coordinate_import.py
index 41f6b47..1a1f3e0 100755
--- a/scripts/coordinate_import.py
+++ b/scripts/coordinate_import.py
@@ -21,6 +21,8 @@
python pwb.py coordinate_import -lang:it -family:wikipedia \
-namespace:0 -transcludes:Infobox_stazione_ferroviaria
+These command line parameters can be used to specify which pages to work on:
+
¶ms;
"""
#
@@ -35,6 +37,8 @@
from pywikibot import pagegenerators, WikidataBot
from pywikibot.exceptions import CoordinateGlobeUnknownException
+docuReplacements = {'¶ms;': pagegenerators.parameterHelp}
+
class CoordImportRobot(WikidataBot):
diff --git a/scripts/match_images.py b/scripts/match_images.py
index d618bca..b5c8923 100755
--- a/scripts/match_images.py
+++ b/scripts/match_images.py
@@ -9,8 +9,6 @@
It is essential to provide two images to work on.
-¶ms;
-
Furthermore, the following command line parameters are supported:
-otherfamily Mentioned family with this parameter will be preferred for
diff --git a/scripts/patrol.py b/scripts/patrol.py
index bc3bdc9..98de168 100755
--- a/scripts/patrol.py
+++ b/scripts/patrol.py
@@ -27,6 +27,8 @@
https://en.wikisource.org/wiki/User:Wikisource-bot/patrol_whitelist
+¶ms;
+
Commandline parameters
======================
diff --git a/scripts/revertbot.py b/scripts/revertbot.py
index d417347..89d8d4b 100755
--- a/scripts/revertbot.py
+++ b/scripts/revertbot.py
@@ -5,8 +5,6 @@
The following command line parameters are supported:
-¶ms;
-
-username Edits of which user need to be reverted.
-rollback Rollback edits instead of reverting them.
diff --git a/scripts/script_wui.py b/scripts/script_wui.py
index e552a4e..839bf24 100755
--- a/scripts/script_wui.py
+++ b/scripts/script_wui.py
@@ -11,12 +11,6 @@
(some code might get compiled on-the-fly, so a GNU compiler along
with library header files is needed too)
-The following parameters are supported:
-
-¶ms;
-
-All other parameters will be ignored.
-
Syntax example:
python pwb.py script_wui -dir:.
diff --git a/scripts/surnames_redirects.py b/scripts/surnames_redirects.py
index d817fda..ab19916 100755
--- a/scripts/surnames_redirects.py
+++ b/scripts/surnames_redirects.py
@@ -28,6 +28,8 @@
from pywikibot import i18n, pagegenerators
from pywikibot.bot import FollowRedirectPageBot, ExistingPageBot
+docuReplacements = {'¶ms;': pagegenerators.parameterHelp}
+
class SurnamesBot(ExistingPageBot, FollowRedirectPageBot):
--
To view, visit
https://gerrit.wikimedia.org/r/376567
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I1fa0410e67c52c22d2391b97155730f45ec64498
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Matěj Suchánek <matejsuchanek97(a)gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Magul <tomasz.magulski(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot <>