Wikipedia:Bots/Requests for approval/StradBot 2: Difference between revisions
→Discussion: reply: {{Bottrial|one-time run}} (-) |
→Discussion: comment for update |
||
Line 118: | Line 118: | ||
<!-- This is not a vote. It is a discussion --> |
<!-- This is not a vote. It is a discussion --> |
||
:{{Bottrial|one-time run}} – [[User:SD0001|<span style="font-weight: bold; color: #C30">SD0001</span>]] ([[User talk:SD0001|talk]]) 05:58, 17 February 2024 (UTC) |
:{{Bottrial|one-time run}} – [[User:SD0001|<span style="font-weight: bold; color: #C30">SD0001</span>]] ([[User talk:SD0001|talk]]) 05:58, 17 February 2024 (UTC) |
||
:{{Operator assistance needed}} {{re|Mr. Stradivarius}} is there still interest in pursuing this task? or are you happy to mark this as withdrawn? [[User:ProcrastinatingReader|ProcrastinatingReader]] ([[User talk:ProcrastinatingReader|talk]]) 10:57, 29 September 2024 (UTC) |
Revision as of 10:57, 29 September 2024
New to bots on Wikipedia? Read these primers!
- Approval process – How this discussion works
- Overview/Policy – What bots are/What they can (or can't) do
- Dictionary – Explains bot-related jargon
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.
- The bot constructs a list of disambiguation templates, set index templates or soft redirect templates. The list includes template redirects. It does this by iterating through all templates in a specific category (the
-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. - It formats the list of templates and template redirects as a Lua table, and saves the result in a module sandbox (the
-data-page-sandbox
option). Saving is skipped if the module's content would not change. You can see sample output from the bot here. - If the sandbox module was updated, and if its new content is different from that of the main module (the
-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 |
Discussion
- Approved for trial (one-time run). Please provide a link to the relevant contributions and/or diffs when the trial is complete. – SD0001 (talk) 05:58, 17 February 2024 (UTC)
- A user has requested the attention of the operator. Once the operator has seen this message and replied, please deactivate this tag. @Mr. Stradivarius: is there still interest in pursuing this task? or are you happy to mark this as withdrawn? ProcrastinatingReader (talk) 10:57, 29 September 2024 (UTC)