Operator: Omni Flames (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 00:53, Sunday, March 27, 2016 (UTC)
Automatic, Supervised, or Manual: Automatic
Programming language(s): AutoWikiBrowser
Source code available: AWB
Function overview: Monitors Category:Living people and replaces reference maintenance templates on BLP pages with the correct BLP template (e.g {{refimprove}} -> {{BLP sources}})
Links to relevant discussions (where appropriate):
Edit period(s): Weekly
Estimated number of pages affected: Approximately 25-50 pages a week.
Exclusion compliant (Yes/No): Yes
Already has a bot flag (Yes/No): No
Function details: The bot will replace the following templates using a list of pages in Category:Living people:
Note that the replacement of Unreferenced with BLP unsourced is already performed by BattyBot, however the other templates are not replaced. These tasks would be extremely tedious to do manually using AWB because the program only allows the creation of lists up to 25,000 pages long and Category:Living people has over 700,000 pages. This plugin allows the creation of larger lists, however it's only available to those with the "apihighlimits" permission (bots and admins).
The bot will use AWB's find and replace feature to switch out the templates. For example, Template:Refimprove will be replaced Template:BLP sources by finding instances of Template:Refimprove using the regex {{refimprove(.+|)}}
. It will replace these instances with {{BLP sources$1}}
(which means that it will keep any parameters such as date=March 2016
). It will skip any pages which do not contain any of the above templates or contain the {{Nobots}} template.
Approved for trial (50 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. Try to do ten per template. Also ping GoingBatty to take a look. — Earwig talk 20:18, 3 April 2016 (UTC)[reply]
AWB's general fixes can do most for the job. I reported a minor bug at T134057 and found some weird cases that the conversion could not be performed. I did a database scan and there were about 15,000 pages with non-converted templates. I fixed about 5,000 manually and used bot for some thousand more. I also added a feature requests at T134065 to help this task. -- Magioladitis (talk) 16:06, 30 April 2016 (UTC)[reply]
Frietjes in contrary to the other BP specific templates Template:BLP primary sources directly transcludes another template instead of having Ambox. This makes difficult to distinguish between the two templates. Do you think we should change this and convert the BLP template to use Ambox? If yes, can you please do it? -- Magioladitis (talk) 19:01, 30 April 2016 (UTC)[reply]
If we resolve everything there is only one problem to be solved: How the list will be generated? Running blindly in a category of more than 700,000 items is not a good idea. If if the run is on the What transcludes of the 4 templates there will be more than 300,000 to be checked in order to find only 20-30 pages per week. If this really worth? -- Magioladitis (talk) 19:59, 2 May 2016 (UTC)[reply]
I fixed the last remaining pages and I asked AnomieBot to improve their logic. User talk:AnomieBOT/Archive 8#Doing_conversions_in_addition_to_adding_dates. -- Magioladitis (talk) 20:47, 10 May 2016 (UTC)[reply]