[MediaWiki-commits] [Gerrit] pywikibot/core[master]: [DOC] Keep -help doc beneath 79 chars
jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/323704 ) Change subject: [DOC] Keep -help doc beneath 79 chars .. [DOC] Keep -help doc beneath 79 chars - Help doc must not exceed 80 chars. Otherwise there is an additional line feed printed. Change-Id: Ic8255b49ec52cbb6b271b2669fd030ee44cfdfe3 --- M scripts/archivebot.py M scripts/blockpageschecker.py M scripts/checkimages.py M scripts/coordinate_import.py M scripts/illustrate_wikidata.py M scripts/image.py M scripts/imagecopy_self.py M scripts/imagerecat.py M scripts/imageuncat.py M scripts/interwiki.py M scripts/patrol.py M scripts/redirect.py M scripts/reflinks.py M scripts/template.py M scripts/transferbot.py M scripts/upload.py 16 files changed, 62 insertions(+), 62 deletions(-) Approvals: Magul: Looks good to me, approved jenkins-bot: Verified diff --git a/scripts/archivebot.py b/scripts/archivebot.py index ea20c78..4e28140 100755 --- a/scripts/archivebot.py +++ b/scripts/archivebot.py @@ -34,9 +34,9 @@ Must be a subpage of the current page. Variables are supported. algo specifies the maximum age of a thread. Must be in the form - old() where specifies the age in minutes(m), - hours (h), days (d), weeks(w), months (M) or years (y) - like 24h or 5d. Default is old(24h) + old() where specifies the age in + minutes (m), hours (h), days (d), weeks(w), months (M) or + years (y) like 24h or 5d. Default is old(24h) counter The current value of a counter which could be assigned as variable. Will be actualized by bot. Initial value is 1. maxarchivesize The maximum archive size before incrementing the counter. diff --git a/scripts/blockpageschecker.py b/scripts/blockpageschecker.py index e90b0c5..0e9bd35 100755 --- a/scripts/blockpageschecker.py +++ b/scripts/blockpageschecker.py @@ -26,8 +26,8 @@ Furthermore, the following command line parameters are supported: --always Doesn't ask every time if the bot should make the change or not, -do it always. +-always Doesn't ask every time whether the bot should make the change. +Do it always. -show When the bot can't delete the template from the page (wrong regex or something like that) it will ask you if it should show diff --git a/scripts/checkimages.py b/scripts/checkimages.py index 35a0a02..40ad67a 100755 --- a/scripts/checkimages.py +++ b/scripts/checkimages.py @@ -60,10 +60,8 @@ right parameter. * Name= Set the name of the block -* Find= Use it to define what search in the text of the image's description, -while - Findonly= search only if the exactly text that you give is in the image's -description. +* Find= search this text in the image's description +* Findonly= search for exactly this text in the image's description * Summary= That's the summary that the bot will use when it will notify the problem. * Head= That's the incipit that the bot will use for the message. @@ -71,8 +69,7 @@ image's problem. Known issues/FIXMEs: -* Clean the code, some passages are pretty difficult to understand if you're not - the coder. +* Clean the code, some passages are pretty difficult to understand. * Add the "catch the language" function for commons. * Fix and reorganise the new documentation * Add a report for the image tagged. diff --git a/scripts/coordinate_import.py b/scripts/coordinate_import.py index 0d64b28..7ed163d 100755 --- a/scripts/coordinate_import.py +++ b/scripts/coordinate_import.py @@ -11,7 +11,8 @@ This will work on all pages in the category "coordinates not on Wikidata" and will import the coordinates on these pages to Wikidata. -The data from the "GeoData" extension (https://www.mediawiki.org/wiki/GeoData) +The data from the "GeoData" extension +(https://www.mediawiki.org/wiki/Extension:GeoData) is used so that extension has to be setup properly. You can look at the [[Special:Nearby]] page on your local Wiki to see if it's populated. diff --git a/scripts/illustrate_wikidata.py b/scripts/illustrate_wikidata.py index fcf225a..6e0f91a 100755 --- a/scripts/illustrate_wikidata.py +++ b/scripts/illustrate_wikidata.py @@ -1,10 +1,11 @@ #!/usr/bin/python # -*- coding: utf-8 -*- """ -Bot to add images to Wikidata items. The image is extracted from the page_props. +Bot to add images to Wikidata items. -For this to be available the PageImages extension -(https://www.mediawiki.org/wiki/Extension:PageImages) needs to be installed +The image is extracted from the page_props. For this to be available the +PageImages extension (https://www.mediawiki.org/wiki/Extension:PageImages) +needs to
[MediaWiki-commits] [Gerrit] pywikibot/core[master]: [DOC] Keep -help doc beneath 79 chars
Xqt has uploaded a new change for review. https://gerrit.wikimedia.org/r/323704 Change subject: [DOC] Keep -help doc beneath 79 chars .. [DOC] Keep -help doc beneath 79 chars - Help doc must not exceed 80 chars. Otherwise there is an additional line feed printed. Change-Id: Ic8255b49ec52cbb6b271b2669fd030ee44cfdfe3 --- M scripts/archivebot.py M scripts/blockpageschecker.py M scripts/checkimages.py M scripts/coordinate_import.py M scripts/illustrate_wikidata.py M scripts/image.py M scripts/imagecopy_self.py M scripts/imagerecat.py M scripts/imageuncat.py M scripts/interwiki.py M scripts/patrol.py M scripts/redirect.py M scripts/reflinks.py M scripts/template.py M scripts/transferbot.py M scripts/upload.py 16 files changed, 47 insertions(+), 46 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core refs/changes/04/323704/1 diff --git a/scripts/archivebot.py b/scripts/archivebot.py index ea20c78..4e28140 100755 --- a/scripts/archivebot.py +++ b/scripts/archivebot.py @@ -34,9 +34,9 @@ Must be a subpage of the current page. Variables are supported. algo specifies the maximum age of a thread. Must be in the form - old() where specifies the age in minutes(m), - hours (h), days (d), weeks(w), months (M) or years (y) - like 24h or 5d. Default is old(24h) + old() where specifies the age in + minutes (m), hours (h), days (d), weeks(w), months (M) or + years (y) like 24h or 5d. Default is old(24h) counter The current value of a counter which could be assigned as variable. Will be actualized by bot. Initial value is 1. maxarchivesize The maximum archive size before incrementing the counter. diff --git a/scripts/blockpageschecker.py b/scripts/blockpageschecker.py index e90b0c5..0e9bd35 100755 --- a/scripts/blockpageschecker.py +++ b/scripts/blockpageschecker.py @@ -26,8 +26,8 @@ Furthermore, the following command line parameters are supported: --always Doesn't ask every time if the bot should make the change or not, -do it always. +-always Doesn't ask every time whether the bot should make the change. +Do it always. -show When the bot can't delete the template from the page (wrong regex or something like that) it will ask you if it should show diff --git a/scripts/checkimages.py b/scripts/checkimages.py index 8fc472b..028b7ca 100755 --- a/scripts/checkimages.py +++ b/scripts/checkimages.py @@ -63,10 +63,8 @@ right parameter. * Name= Set the name of the block -* Find= Use it to define what search in the text of the image's description, -while - Findonly= search only if the exactly text that you give is in the image's -description. +* Find= search this text in the image's description +* Findonly= search for exactly this text in the image's description * Summary= That's the summary that the bot will use when it will notify the problem. * Head= That's the incipit that the bot will use for the message. diff --git a/scripts/coordinate_import.py b/scripts/coordinate_import.py index ec7a891..aeb9a4a 100755 --- a/scripts/coordinate_import.py +++ b/scripts/coordinate_import.py @@ -11,7 +11,8 @@ This will work on all pages in the category "coordinates not on Wikidata" and will import the coordinates on these pages to Wikidata. -The data from the "GeoData" extension (https://www.mediawiki.org/wiki/Extension:GeoData) +The data from the "GeoData" extension +(https://www.mediawiki.org/wiki/Extension:GeoData) is used so that extension has to be setup properly. You can look at the [[Special:Nearby]] page on your local Wiki to see if it's populated. diff --git a/scripts/illustrate_wikidata.py b/scripts/illustrate_wikidata.py index 7fa88bd..bd257cd 100755 --- a/scripts/illustrate_wikidata.py +++ b/scripts/illustrate_wikidata.py @@ -1,10 +1,11 @@ #!/usr/bin/python # -*- coding: utf-8 -*- """ -Bot to add images to Wikidata items. The image is extracted from the page_props. +Bot to add images to Wikidata items. -For this to be available the PageImages extension -(https://www.mediawiki.org/wiki/Extension:PageImages) needs to be installed +The image is extracted from the page_props. For this to be available the +PageImages extension (https://www.mediawiki.org/wiki/Extension:PageImages) +needs to be installed Usage: diff --git a/scripts/image.py b/scripts/image.py index 9138549..c4f652d 100755 --- a/scripts/image.py +++ b/scripts/image.py @@ -26,8 +26,8 @@ Examples: -The image "FlagrantCopyvio.jpg" is about to be deleted, so let's first remove it -from everything that displays it: +The image "FlagrantCopyvio.jpg" is about to be deleted, so let's first remo