Xqt has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/776346 )
Change subject: [doc] use descriptions from scripts for archived scripts ...................................................................... [doc] use descriptions from scripts for archived scripts - change header - remove compats us-states which is states_redirect Change-Id: Iba4e13b9449754e8ed4601c962490ae9d733551f --- M docs/scripts/archive.rst M docs/scripts/outdated.rst 2 files changed, 164 insertions(+), 74 deletions(-) Approvals: Xqt: Verified; Looks good to me, approved diff --git a/docs/scripts/archive.rst b/docs/scripts/archive.rst index 70a929b..107e990 100644 --- a/docs/scripts/archive.rst +++ b/docs/scripts/archive.rst @@ -1,180 +1,276 @@ -Archived scripts -================ +Outdated core scripts +===================== -.. automodule:: scripts.archive -.. seealso:: :ref:`Outdated scripts` +This list contains outdated scripts from :term:`core` banch which +aren't supported any longer. They are either archived or deleted. + +Feel free to reactivate any script at any time by creating a Phabricator +task: :phab:`Recovery request +<maniphest/task/edit/form/1/?projects=pywikibot,pywikibot-scripts&title=Recover +Pywikibot%20script:%20>` + +.. seealso:: :ref:`Outdated compat scripts` + capitalize\_redirects script ---------------------------- -.. automodule:: scripts.archive.capitalize_redirects - :no-members: +**Bot to create capitalized redirects** + +It creates redirects where the first character of the first +word is uppercase and the remaining characters and words are lowercase. + casechecker script ------------------ -.. automodule:: scripts.archive.casechecker - :no-members: +**Bot to find all pages on the wiki with mixed latin and cyrilic alphabets** catall script ------------- -.. automodule:: scripts.archive.catall - :no-members: +**This script shows the categories on each page and lets you change them** + +For each page in the target wiki: + + - If the page contains no categories, you can specify a list of categories to + add to the page. + - If the page already contains one or more categories, you can specify a new + list of categories to replace the current list of categories of the page. + commons\_link script -------------------- -.. automodule:: scripts.archive.commons_link - :no-members: +**Include Commons template in home wiki** + +This bot functions mainly in the en.wikipedia, because it +compares the names of articles and category in English +language (standard language in Commons). If the name of +an article in Commons will not be in English but with +redirect, this also functions. create_categories script ------------------------ -.. automodule:: scripts.archive.create_categories - :no-members: +**Program to batch create categories** + +The program expects a generator of category titles to be used +as suffix for creating new categories with a different base. + disambredirs script ------------------- -.. automodule:: scripts.archive.disambredir - :no-members: +**User assisted updating redirect links on disambiguation pages** + editarticle script ------------------ -.. automodule:: scripts.archive.editarticle - :no-members: +**Edit a Wikipedia article with your favourite editor** + flickrripper script ------------------- -.. automodule:: scripts.archive.flickrripper - :no-members: +**A tool to transfer flickr photos to Wikimedia Commons** + followlive ---------- -.. automodule:: scripts.archive.followlive - :no-members: +**Periodically grab list of new articles and analyze to blank or flag them** + +Script to follow new articles on the wiki and flag them +with a template or eventually blank them. + freebasemappingupload script ---------------------------- -.. automodule:: scripts.archive.freebasemappingupload - :no-members: +**Script to upload the mappings of Freebase to Wikidata** + +Can be easily adapted to upload other String identifiers as well. + +This bot needs the dump from +https://developers.google.com/freebase/data#freebase-wikidata-mappings + imagecopy script ---------------- -.. automodule:: scripts.archive.imagecopy - :no-members: +**Script to copy files from a local Wikimedia wiki to Wikimedia Commons** + +It uses CommonsHelper to not leave any information out and CommonSense +to automatically categorise the file. After copying, a NowCommons +template is added to the local wiki's file. It uses a local exclusion +list to skip files with templates not allow on Wikimedia Commons. If no +categories have been found, the file will be tagged on Commons. + +This bot uses a graphical interface and may not work from commandline +only environment. + imagecopy\_self script ---------------------- -.. automodule:: scripts.archive.imagecopy_self - :no-members: +**Script to copy self published files from English Wikipedia to Commons** + +This bot is based on imagecopy.py and intended to be used to empty out +https://en.wikipedia.org/wiki/Category:Self-published_work + +This bot uses a graphical interface and may not work from commandline +only environment. + imageharvest script ------------------- -.. automodule:: scripts.archive.imageharvest - :no-members: +**Bot for getting multiple images from an external site** + +It takes a URL as an argument and finds all images (and other files specified +by the extensions in 'file_formats' that URL is referring to, asking whether to +upload them. If further arguments are given, they are considered to be the text +that is common to the descriptions. BeautifulSoup is needed only in this case. + +A second use is to get a number of images that have URLs only differing in +numbers. To do this, use the command line option "-pattern", and give the URL +with the variable part replaced by '$' (if that character occurs in the URL +itself, you will have to change the bot code, my apologies). + imagerecat script ----------------- -.. automodule:: scripts.archive.imagerecat - :no-members: +**Program to re-categorize images at commons** + +The program uses read the current categories, put the categories through +some filters and adds the result. + imageuncat script ----------------- -.. automodule:: scripts.archive.imageuncat - :no-members: +**Program to add uncat template to images without categories at commons** + +See :ref:`imagerecat script` to add these images to categories. + +This script is working on the given site, so if the commons should be handled, +the site commons should be given and not a Wikipedia or similar. isbn script ----------- -.. automodule:: scripts.archive.isbn - :no-members: +**This script reports and fixes invalid ISBN numbers** + +Additionally, it can convert all ISBN-10 codes to the ISBN-13 format, and +correct the ISBN format by placing hyphens. + lonelypages script ------------------ -.. automodule:: scripts.archive.lonelypages - :no-members: +**This is a script written to add the template "orphan" to pages** + makecat script -------------- -.. automodule:: scripts.archive.makecat - :no-members: +**Bot to add new or existing categories to pages** + +This bot takes as its argument the name of a new or existing category. +Multiple categories may be given. It will then try to find new articles +for these categories (pages linked to and from pages already in the category), +asking the user which pages to include and which not. + match\_images script -------------------- -.. automodule:: scripts.archive.match_images - :no-members: +**Program to match two images based on histograms** + ndashredir script ----------------- -.. automodule:: scripts.archive.ndashredir - :no-members: +**A script to create hyphenated redirects for n or m dash pages** + +This script collects pages with n or m dash in their title and creates +a redirect from the corresponding hyphenated version. If the redirect +already exists, it is skipped. + +Use -reversed option to create n dash redirects for hyphenated pages. +Some communities can decide to use hyphenated titles for templates, modules +or categories and in this case this option can be handy. + piper script ------------ -.. automodule:: scripts.archive.piper - :no-members: +**This bot uses external filtering programs for munging text** + selflink script --------------- -.. automodule:: scripts.archive.selflink - :no-members: +**This bot searches for selflinks and allows removing them** + spamremove script ----------------- -.. automodule:: scripts.archive.spamremove - :no-members: +**Script to remove links that are being or have been spammed** + standardize\_interwiki script ----------------------------- -.. automodule:: scripts.archive.standardize_interwiki - :no-members: +**Loop over all pages in the home wiki, standardizing the interwiki links** + states\_redirect script ----------------------- -.. automodule:: scripts.archive.states_redirect - :no-members: +**Create country sub-division redirect pages** + +Check if they are in the form `Something, State`, and if so, create a redirect +from `Something, ST`. + surnames\_redirects script -------------------------- -.. automodule:: scripts.archive.surnames_redirects - :no-members: +**Bot to create redirects based on name order** + +By default it creates a "Surnames, Given Names" redirect +version of a given page where title consists of 2 or 3 titlecased words. + table2wiki script ----------------- -.. automodule:: scripts.archive.table2wiki - :no-members: +**Nifty script to convert HTML-tables to MediaWiki's own syntax** + unlink script ------------- -.. automodule:: scripts.archive.unlink - :no-members: +**This bot unlinks a page on every page that links to it** + wikisourcetext script --------------------- -.. automodule:: scripts.archive.wikisourcetext - :no-members: +**This bot applies to Wikisource sites to upload text** + +Text is uploaded to pages in Page ns, for a specified Index. +Text to be stored, if the page is not-existing, is preloaded from the file used +to create the Index page, making the upload feature independent from the format +of the file, as long as it is supported by the MW ProofreadPage extension. + +As alternative, if '-ocr' option is selected, +OCR tool will be used to get text. +In this case, also already existing pages with quality value 'Not Proofread' +can be treated. '-force' will override existing page in this case. diff --git a/docs/scripts/outdated.rst b/docs/scripts/outdated.rst index 5729578..4422ec0 100644 --- a/docs/scripts/outdated.rst +++ b/docs/scripts/outdated.rst @@ -1,15 +1,16 @@ -Outdated scripts -================ +Outdated compat scripts +======================= This list contains outdated scripts from :term:`compat` banch which -haven't ported to the current :term:`core` branch of Pywikibot |version|. +haven't ported to the :term:`core` branch of Pywikibot. + Feel free to reactivate any script at any time by creating a Phabricator task (:phab:`Porting request <maniphest/task/edit/form/1/?projects=pywikibot,pywikibot-scripts,Pywikibot-compat-to-core&title=Port Pywikibot%20compat%20script%20to%20core:%20>`) or reactivate the specified task below. -.. seealso:: :ref:`Archived scripts` +.. seealso:: :ref:`Outdated core scripts` catimages script @@ -65,6 +66,7 @@ --------------------- **Script to put reports of copyright.py to wiki page** (:phab:`T66848`) + deledpimage script ------------------ **Script to remove EDP images in non-article namespaces** (:phab:`T66849`) @@ -167,14 +169,6 @@ (:phab:`66159`) -us\_states script ------------------ -**Check pages on the whether they are in common form** - -On English Wikipedia the common form is like `Something, State` -and if so, create a redirect from `Something, ST`. - - warnfile script --------------- -- To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/776346 To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Change-Id: Iba4e13b9449754e8ed4601c962490ae9d733551f Gerrit-Change-Number: 776346 Gerrit-PatchSet: 1 Gerrit-Owner: Xqt <[email protected]> Gerrit-Reviewer: Xqt <[email protected]> Gerrit-MessageType: merged
_______________________________________________ Pywikibot-commits mailing list -- [email protected] To unsubscribe send an email to [email protected]
