Jump to content

Wikipedia:Bots/Requests for approval/Qwerfjkl (bot) 30: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
→‎Discussion: Or 11.5K?
→‎Discussion: @Mathglot "[https://en.wikipedia.org/w/index.php?se..." [Factotum]
 
Line 40: Line 40:
::::::: Be aware that {{tl|Archives}} is a different template that also has those same four params (well, the three aliases plus minthreads); see [[Template:Archives#Alphabetically]]. So it's [https://en.wikipedia.org/w/index.php?search=hastemplate%3A%22Talk+header%22+insource%3A%2F%5C%7C+%2A%28minthreadsleft%7Carchive_units%7Carchive_age%7Carchive_bot%7Cbot%7Cunits%7Cage%29+%2A%3D%2F+-hastemplate%3AArchives&title=Special:Search&profile=all&fulltext=1 more like 25k] excluding those, which presumably the bot code will do. [[User:Mathglot|Mathglot]] ([[User talk:Mathglot|talk]]) 14:14, 9 June 2024 (UTC)
::::::: Be aware that {{tl|Archives}} is a different template that also has those same four params (well, the three aliases plus minthreads); see [[Template:Archives#Alphabetically]]. So it's [https://en.wikipedia.org/w/index.php?search=hastemplate%3A%22Talk+header%22+insource%3A%2F%5C%7C+%2A%28minthreadsleft%7Carchive_units%7Carchive_age%7Carchive_bot%7Cbot%7Cunits%7Cage%29+%2A%3D%2F+-hastemplate%3AArchives&title=Special:Search&profile=all&fulltext=1 more like 25k] excluding those, which presumably the bot code will do. [[User:Mathglot|Mathglot]] ([[User talk:Mathglot|talk]]) 14:14, 9 June 2024 (UTC)
:::::::: Actually, the 25k estimate is too hig, also, as that search is picking up plenty of articles like [[Talk:Ronald Reagan]] which have the talk header but no params at all. [https://en.wikipedia.org/w/index.php?search=hastemplate%3A%22Talk+header%22+insource%3A%2F%5C%7B%5C%7BTalk+header+%2A%5C%7C%2F+insource%3A%2F%28minthreadsleft%7Carchive_units%7Carchive_age%7Carchive_bot%7Cbot%7Cunits%7Cage%29+%2A%3D%2F+-hastemplate%3AArchives&title=Special:Search&profile=all&fulltext=1 This one] gives 11.5k, so maybe that's closer? [[User:Mathglot|Mathglot]] ([[User talk:Mathglot|talk]]) 15:28, 9 June 2024 (UTC)
:::::::: Actually, the 25k estimate is too hig, also, as that search is picking up plenty of articles like [[Talk:Ronald Reagan]] which have the talk header but no params at all. [https://en.wikipedia.org/w/index.php?search=hastemplate%3A%22Talk+header%22+insource%3A%2F%5C%7B%5C%7BTalk+header+%2A%5C%7C%2F+insource%3A%2F%28minthreadsleft%7Carchive_units%7Carchive_age%7Carchive_bot%7Cbot%7Cunits%7Cage%29+%2A%3D%2F+-hastemplate%3AArchives&title=Special:Search&profile=all&fulltext=1 This one] gives 11.5k, so maybe that's closer? [[User:Mathglot|Mathglot]] ([[User talk:Mathglot|talk]]) 15:28, 9 June 2024 (UTC)
:::::::::[https://en.wikipedia.org/w/index.php?search=hastemplate%3A%22Talk+header%22+insource%3A%2F%5C%7B%5C%7BTalk+header+%2A%5C%7C%5B%5E%7D%5D%2A%28minthreadsleft%7Carchive_units%7Carchive_age%7Carchive_bot%7Cbot%7Cunits%7Cage%29+%2A%3D%2F&title=Special:Search&profile=all&fulltext=1 Or even less].<span id="Qwerfjkl:1717953970630:WikipediaFTTCLNBots/Requests_for_approval/Qwerfjkl_(bot)_30" class="FTTCmt"> —&nbsp;[[User:Qwerfjkl|<span style="background:#1d9ffc; color:white; padding:5px; box-shadow:darkgray 2px 2px 2px;">Qwerfjkl</span>]][[User talk:Qwerfjkl|<span style="background:#79c0f2;color:white; padding:2px; box-shadow:darkgray 2px 2px 2px;">talk</span>]] 17:26, 9 June 2024 (UTC)</span>

Latest revision as of 17:26, 9 June 2024

Operator: Qwerfjkl (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)

Time filed: 20:51, Wednesday, June 5, 2024 (UTC)

Automatic, Supervised, or Manual: automatic

Programming language(s): Python

Source code available: PAWS

Function overview: Remove deprecated parameters from {{Talk header}}

Links to relevant discussions (where appropriate): Template talk:Talk header#how and when to drop the bot notice params

Edit period(s): one time run

Estimated number of pages affected: <26,387

Exclusion compliant (Yes/No): No

Already has a bot flag (Yes/No): Yes

Function details: The bot will remove all instances of the parameters |archive_bot=, |archive_age=, |archive_units=, |minthreadsleft= from all occurences of {{Talk header}}.

The search may contain some false positives; the bot will skip those where it doesn't make any changes, of course.

Discussion[edit]

Approved for trial (100 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. Consensus appears to exist for this, and the task is straightforward. – SD0001 (talk) 04:07, 6 June 2024 (UTC)[reply]
SD0001, Trial complete. See these 100 contributions. I did around a third on the user talk namespace because that's probably going to be the most contentious area; only something like 300 user talk pages actually need fixing. — Qwerfjkltalk 13:59, 6 June 2024 (UTC)[reply]
Noticed an issue, possibly related to leading blanks; see here. Mathglot (talk) 03:27, 7 June 2024 (UTC)[reply]
Mathglot, ah, I didn't realise any of the parameters that needed removing had aliases. Any others I need to watch out for? — Qwerfjkltalk 07:11, 7 June 2024 (UTC)[reply]
 Checking... Mathglot (talk) 18:25, 8 June 2024 (UTC)[reply]
Per this diff, all the params that start with the string archive_ have an alias without the prefix; thus the alias of |archive_bot= is |bot=, and so on. Param |minthreadsleft= has no alias. Here are some examples. Mathglot (talk) 02:06, 9 June 2024 (UTC)[reply]
Okay. @SD0001, more like 30,000 pages now. — Qwerfjkltalk 10:35, 9 June 2024 (UTC)[reply]
Be aware that {{Archives}} is a different template that also has those same four params (well, the three aliases plus minthreads); see Template:Archives#Alphabetically. So it's more like 25k excluding those, which presumably the bot code will do. Mathglot (talk) 14:14, 9 June 2024 (UTC)[reply]
Actually, the 25k estimate is too hig, also, as that search is picking up plenty of articles like Talk:Ronald Reagan which have the talk header but no params at all. This one gives 11.5k, so maybe that's closer? Mathglot (talk) 15:28, 9 June 2024 (UTC)[reply]
Or even less. — Qwerfjkltalk 17:26, 9 June 2024 (UTC)[reply]