New to bots on Wikipedia? Read these primers!
Operator: Mr. Stradivarius (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 03:19, Saturday, February 17, 2024 (UTC)
Function overview: Automatically populate sandboxes for modules listing disambiguation templates, set index templates or soft redirect templates; and if necessary issue edit requests to update the main modules.
Automatic, Supervised, or Manual: Automatic
Programming language(s): Python (Pywikibot framework)
Source code available: https://github.com/mrstradivarius/dabtemplates
Links to relevant discussions (where appropriate): Template talk:Pagetype#Detecting pages with Template:Wiktionary redirect and other soft redirects (permalink)
Edit period(s): Daily
Estimated number of pages affected: 5
Namespace(s): Module, module talk, template talk
Exclusion compliant (Yes/No): Yes
Function details: This is an expansion of Wikipedia:Bots/Requests for approval/StradBot (task 1). Task 1 was for updating a disambiguation template list for Module:Disambiguation; this task expands this to two more use cases: updating a list of set index pages for Module:Pagetype, and updating a list of soft redirects, also for Module:Pagetype.
The bot uses the following algorithm. This has not changed since task 1.
-cat
option). Non-templates are ignored, as are templates in the bot's exclusion list (the -exclude
option). It then retrieves redirects for all of these templates.-data-page-sandbox
option). Saving is skipped if the module's content would not change. You can see sample output from the bot here.-data-page
option), then the bot adds an edit request to update the main module to the relevant talk page (the -data-talk-page
option). There is a sample edit request here.The bot will be used to update the following modules:
# | Use case | Option | Value | Notes |
---|---|---|---|---|
1 | Update disambiguation templates for Module:Disambiguation. | -data-page-sandbox
|
Module:Disambiguation/templates/sandbox | Already approved in Wikipedia:Bots/Requests for approval/StradBot. |
-data-page
|
Module:Disambiguation/templates | |||
-data-talk-page
|
Module talk:Disambiguation | |||
-cat
|
Category:Disambiguation message boxes | |||
-exclude
|
Template:Dmbox | |||
2 | Update set index templates for Module:Pagetype. | -data-page-sandbox
|
Module:Pagetype/setindex/sandbox | |
-data-page
|
Module:Pagetype/setindex | |||
-data-talk-page
|
Template talk:Pagetype | |||
-cat
|
Category:Set index article templates | |||
-exclude
|
Template:Dmbox | |||
3 | Update soft redirect templates for Module:Pagetype. | -data-page-sandbox
|
Module:Pagetype/softredirect/sandbox | |
-data-page
|
Module:Pagetype/softredirect | |||
-data-talk-page
|
Template talk:Pagetype | |||
-cat
|
Category:Templates for soft redirects | |||
-exclude
|
Template:Resolve category redirect |