Jump to content

Wikipedia:Bots/Requests for approval/CpiralBot

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Cpiral (talk | contribs) at 01:22, 29 December 2015 (CpiralBot: fmt). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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

Time filed: 22:32, Monday, December 28, 2015 (UTC)

Automatic, Supervised, or Manual:

Programming language(s): AutoWikiBrowser

Source code available: A regular expression, for which I am a highly capable.

Function overview: Retrofit template usage to achieve template feature parity and avoid the need for backward compatible code. Change or remove unwanted template usage. Change a feature or add a new feature in lock step with a new version of a template.

Links to relevant discussions (where appropriate): The bottom part of template talk:In title#All the above questions, again, and the following section template talk:In title#How to alter this template and its wiki landscaping

Edit period(s): Per cleanup/template-change issue, one time run.

Estimated number of pages affected: 9700

Exclusion compliant (Yes/No): No.

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

Function details: This is for {{intitle}}, but the approval needs to extend for the sister template {{lookfrom}}, for a total of 9700 pages.

  1. Create a temporary template {{intitle-inline}}. Done
  2. some text all {{intitle}} in a linesome text all {{intitle-inline}} in a line. There is no visual change. These will be renamed using AWB, but not in bot mode.
  3. Swap in the new intitle, but with the default bullet nulled-out. (temporarily).
  4. AWB (auto-wiki-editor) the 5590 bulleted {{intitle}} , changing * {{intitle}} to {{intitle}}. As each one is repaired by removing the real bullet, it will have no bullet, but it will stay on its own line. Finish as quickly as possible for that reason. 2–5 hr.
  5. Change the new intitle bullet to bullet (from null, which was temporary). Then we're done.

Step 2 conisists of these page-instances rename to "intitle-inline":

Step 4, with an as yet undecided delay between edits, are these:

Those can be automated, because it basically just removes the bullet. As seen by the query, these pagenames all match precise, regex-generated search results.

Discussion

Having search links on an article page is a dubious affair. Nevertheless, {{intitle}} exists on 2% of dab pages, and on over 2000 more pages in article space that are not a dab page. In most cases they are showing up in the printed article. Because they are often bullet items, no addition of HTML in the template can remove their bullets from print, hence this bot request.

The new version of the template, {{in title/sandbox}}, outputs its own "noprint bullet". There is no better approach to solving the problem, and {{lookfrom}} must be done as well.