New to bots on Wikipedia? Read these primers!
Operator:Trappist the monk (talk ·contribs ·SUL ·edit count ·logs ·page moves ·block log ·rights log ·ANI search)
Time filed: 14:41, Monday, October 7, 2024 (UTC)
Function overview: replace transclusions of{{lang-??}} templates (and their redirects) with the single, parameterized,{{langx}} template. Most of the templates to be replaced are listed atWikipedia:Templates for discussion/Log/2024 September 27/lang-?? templates (there may yet be others discovered along the way).
Automatic, Supervised, or Manual: automatic
Programming language(s): awb/c#
Source code available:User:Monkbot/task 20: Replace lang-xx templates
Links to relevant discussions (where appropriate):Wikipedia:Templates for discussion/Log/2024 September 27 § Replace and delete lang-?? templates
Edit period(s): continuous til done
Estimated number of pages affected: many upon many. as of this date, the most highly used{{lang-??}} templates are listed inlines 13–75 (permalink) of Module:Transclusion_count/data/L (a page maintained byAhechtbot/task 6 in support of{{high-use}}). The sum of those numbers, less the amounts for{{lang-rus}},{{Lang-sr-Cyrl}},{{Lang-sr-cyr}} (a redirect),{{Lang-sr-cyrl}} (a redirect), and{{lang-zh}} which for various reasons are not included, is 643,000. No doubt there are overlaps that would shrink that number but these are only 60-ish of 1150+ templates. By another metric, tallying the number of transclusions for the templates listed inCategory:Lang-x templates –{{lang-rus}},{{language with name}}, and{{spell-nv}} excepted –quarry:query/86855 gives a number of 722,471 pages.
Namespace(s):mainspace now; perhaps other namespaces after all; seeTrial complete below
Exclusion compliant(Yes/No): yes
Function details: task 20 is described atUser:Monkbot/task_20: Replace lang-xx templates
Approved for trial (50 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete.— Precedingunsigned comment added byPrimefac (talk •contribs)16:50, 13 October 2024 (UTC)[reply]
Trial complete.Nothing unexpected. Contrary to my claim above (now stricken and modified), the bot will edit all namespaces because ofWP:REDNOT. Deleting templates (somethingnot done by the bot) will create red-linked templates which WP:REDNOT proscribes. Editing in all namespaces allows editors to delete templates with minimal manual cleanup. Monkbot's contributions17:13–17:19 13 October 2024
—Trappist the monk (talk)17:46, 13 October 2024 (UTC)added forgotten link to results 20:48, 13 October 2024 (UTC)[reply]