Wikipedia:Bots/Requests for approval/JJMC89 bot 6

JJMC89 bot 6

[[User:JJMC89 bot|JJMC89 bot 6]]

{{Newbot|JJMC89 bot|6}}

Operator: {{botop|JJMC89}}

Time filed: 19:53, Sunday, July 31, 2016 (UTC)

Automatic, Supervised, or Manual: Automatic

Programming language(s): C# (Custom AWB module)

Source code available: Partial: AWB

Function overview: Remove external link template parameters that have been migrated to Wikidata

Links to relevant discussions (where appropriate):

Edit period(s): One run per request

Estimated number of pages affected: Up to the number of articles transcluding each template (6–10 edits/min)

Exclusion compliant (Yes/No): Yes

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

Function details: Upon request the bot will remove external link template parameters that have been migrated to Wikidata.

  1. The requester must place a notification on the template's talk page that ze wants the parameters to be removed by a bot.
  2. After consensus is established on the template's talk page or minimum of one week passes without comment/objection, the requester will add the request here.
  3. The requester or bot operator will add category tracking to the template to check that the local values match Wikidata.

The bot will only edit templates in "External links" sections of articles where there is one transclusion.

=Discussion=

{{U|Pigsonthewing|Andy}} has requested this for a number of templates. Here are [{{fullurl:Special:Contributions/JJMC89|offset=201607310146&limit=164}} 163 sample edits] from {{tl|JudoInside}}. (It was run with general fixes since it was semiautomatic. I will not enable them on the bot.) — JJMC89(T·C) 20:03, 31 July 2016 (UTC) 04:57, 12 August 2016 (UTC)

{{cot|Sample categorization}}

{{main other|{{#if:{{{id|}}}{{{1|}}}||{{#if:{{#property:P2767}}||Category:JudoInside template with no ID set}}}}{{#if:{{#property:P2767}}

|{{#if:{{{id|}}}{{{1|}}}

|{{#ifeq:{{#property:P2767}}|{{{id|{{{1|}}}}}}

|Category:JudoInside template with local ID same as on Wikidata

|Category:JudoInside template with local ID different than on Wikidata

}}

|

}}

|Category:JudoInside template without an ID on Wikidata

}}}}

{{cob}}

  • Support as requester. Thank you, JJMC89. Also, note that this excludes template transclusions in references. I've made a first draft of {{Tl|Wikidata property migration}}, for template talk pages, as described above. However, I have concerns that the seven-day wait would leave a window for people to add new instances of the template being migrated, whose data would not be on Wikidata when the bot operates. A shorter delay would reduce the likelihood of this being an issue. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 17:55, 1 August 2016 (UTC)
  • I have no problem with shortening the delay period. The categorization will ensure that only IDs that have been migrated and match those on Wikidata are removed. — JJMC89(T·C) 15:54, 2 August 2016 (UTC)
  • Works for me. Thanks again. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 16:42, 2 August 2016 (UTC)

:Please provide a few sample before and after versions of an article that will be changed in this way. — xaosflux Talk 13:07, 5 August 2016 (UTC)

:: I'm not sure if this is what {{U|xaosflux|you}} are looking for since I provided [{{fullurl:Special:Contributions/JJMC89|offset=201607310146&limit=164}} these sample edits] above.

::# Yulieth Sanchéz: before, after, diff

::# Naoya Ogawa: before, after, diff

::# Yoshio Nakamura (judoka): before, after, diff

::# Henriette Moller: before, after, diff

::# Cristóbal Aburto: before, after, diff

::# Katarzyna Juszczak: before, after, diff

:: — JJMC89(T·C) 21:59, 5 August 2016 (UTC)

:{{BotTrial|edits=40}} — xaosflux Talk 14:02, 8 August 2016 (UTC)

:: {{tl|Fashionmodel}} tagged with {{tlc|Wikidata property migration|2=date=8 August 2016}}. On hold up to a week per step 2. — JJMC89(T·C) 18:45, 8 August 2016 (UTC)

::: I have corrected the issue in my module (Tools.SplitToSections adds an extra newline to the end of the last section.) that could cause insignificant changes with general fixes enabled if the desired task was not performed. If there are no objections I will run this task with general fixes enabled. — JJMC89(T·C) 04:57, 12 August 2016 (UTC)

:: {{Bot trial complete}} The bot edited as intended: [{{fullurl:Special:Contributions/JJMC89_bot|offset=201608160302&limit=40}} 40 edits]. The first half were without general fixes, and the second half had them enabled. Are there any objections and/or preferences for running this task with general fixes? — JJMC89(T·C) 03:16, 16 August 2016 (UTC)

:::Thank you. I'd prefer it, please, if you removed the link to my user page from your edit summary, and linked instead to this page, or another which explains the task. By all means mention me on such a page, but I'd rather people read an explanation before being encouraged to contact me about it. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 19:24, 16 August 2016 (UTC)

:::: {{Reply to|Pigsonthewing|label1=Andy}} It will be a link to a page in the bot's userspace after this is approved. If I need to run more trial edits, I will point it here. — JJMC89(T·C) 19:58, 16 August 2016 (UTC)

:::::Let's see a final run - you may want to have a request list etc on the bot page or bot subpage, use some {{t1|anchor}}'s and link to requests if you want. I'd rather see this run without genfixes if it will be "Automatic". — xaosflux Talk 01:50, 18 August 2016 (UTC)

:{{BotExtendedTrial|edits=50}} — xaosflux Talk 01:50, 18 August 2016 (UTC)

:: {{Bot trial complete}} The bot edited as intended: [{{fullurl:Special:Contributions/JJMC89_bot|offset=201608180531&limit=50}} 50 edits]. — JJMC89(T·C) 05:49, 18 August 2016 (UTC)

:{{BotApproved}} Task approved. — xaosflux Talk 02:21, 19 August 2016 (UTC)

:The above discussion is preserved as an archive of the debate. Please do not modify it. To request review of this BRFA, please start a new section at WT:BRFA.