Jump to content

Wikipedia:Bots/Requests for approval/DannyS712 bot 2

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Primefac (talk | contribs) at 03:29, 30 January 2019 (Discussion: fwiw). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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

Time filed: 02:35, Tuesday, January 8, 2019 (UTC)

Automatic, Supervised, or Manual: automatic

Programming language(s): AutoWikiBrowser

Source code available: AWB

Function overview: Add {{WikiProject Soil}} to talk pages per request (https://en.wikipedia.org/w/index.php?title=Wikipedia:Bot_requests&diff=877156145&oldid=877118167&diffmode=source)

Links to relevant discussions (where appropriate):

Edit period(s): One time run

Estimated number of pages affected: <1261 pages (not accounting for duplicated pages or those already having the wikiproject tag)

Exclusion compliant (Yes/No): Yes

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

Function details:

AWB:

  1. Make list from category
  2. Convert to talk pages
  3. Preparse to remove if {{WikiProject Soil}} already present
  4. Prepend wikiproject tag.
Full list of categories requested:
Analyzed list of categories, including individual sizes

Total (not accounting for duplicated): 1261

Discussion

How many talk pages are expected to be edited with this run? Primefac (talk) 20:14, 8 January 2019 (UTC)[reply]

@Primefac: Less than 1261 pages will be edited. For a trial, you may want to choose one of the small categories listed in the "Analyzed list" (which includes individual sizes) and I can check every edit manually afterwards. --DannyS712 (talk) 21:12, 8 January 2019 (UTC)[reply]
Followup questions:
  1. What do you mean by Preparse to remove if {{WikiProject Soil}} already present?
  2. Are you just adding the template, or are you also assessing?
Primefac (talk) 21:28, 8 January 2019 (UTC) (please do not ping on reply)[reply]
Here is what I would do with AWB:
  1. Tell AWB to skip a page if it already contains {{WikiProject Soil
  2. Turn on "pre-parse" mode, and run
    This means that, rather than editing each article that is not skipped before proceeding, it saves articles that should be edited, and skips those that shouldn't be
    Thus, at the end, I know that the list I have does not contain any pages that already have {{WikiProject Soil}}
    For more information, see Wikipedia:AutoWikiBrowser/User manual#Options
  3. Turn off pre-parse mode, and prepend {{WikiProject Soil |class= |importance= }} to the remaining talk pages
    This would not actually assess the article itself. I can see a future task where, for pages already tagged as stubs, |class= | is replaced with |class=stub |, but that is not part of this request.
Thanks, --DannyS712 (talk) 00:42, 9 January 2019 (UTC)[reply]
{{BAGAssistanceNeeded}} --DannyS712 (talk) 03:00, 18 January 2019 (UTC)[reply]

You don't need to remove anything, just create your list based on https://petscan.wmflabs.org/?psid=7313284 and then you won't have to add or remove anything. As for TALKLEAD, yes, if you append the text and then do genfixes, it will make sure all of the GA stuff etc will end up in the right place. To be honest I don't know if it will take care of the {{WPBS}} issue, but it sounds like your logic works. Primefac (talk) 20:08, 22 January 2019 (UTC)[reply]

Okay. I will use that list instead. Does genfixes also work if i prepend the template/does it matter? --DannyS712 (talk) 20:35, 22 January 2019 (UTC)[reply]
I converted that list to a awb friendly format at User:DannyS712 bot/Task 2 list#Better format --DannyS712 (talk) 20:45, 22 January 2019 (UTC)[reply]
Approved for extended trial (25 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. I'd like to see if the issues presented above have been worked out. Primefac (talk) 19:53, 28 January 2019 (UTC)[reply]
Trial complete. I misunderstood the trial approval - I thought it was 25 pages, I'm sorry. I made 45 edits, 25 additions of the template, and then 20 more on the same pages to apply genfixes to correct the location. I haven't figured out how to have genfixes run in the same edit, but after the addition of the template. Sorry, I'll analyze the results soon. --DannyS712 (talk) 20:31, 28 January 2019 (UTC)[reply]
45 edits: https://en.wikipedia.org/w/index.php?title=Special:Contributions&target=DannyS712%20bot&start=2019-01-28&end=2019-01-28
The only issue I found, other than the 2 passes needed, was this page. I guess I missed it with genfixes.
If approved, I would, in batches of ~50:
  1. Go through and add the template
  2. Go through and apply genfixes
Thanks, --DannyS712 (talk) 20:37, 28 January 2019 (UTC)[reply]