Wikipedia:Bots/Requests for approval/WOSlinkerBot 16
[[User:WOSlinkerBot|WOSlinkerBot 16]]
{{BRFA help}}
{{Newbot|WOSlinkerBot|16}}
Operator: {{botop|WOSlinker}}
Time filed: 18:58, Monday, November 8, 2021 (UTC)
Function overview: Fix pages with the fostered content lint issue.
Automatic, Supervised, or Manual: Automatic
Programming language(s): Javascript
Source code available: At User:WOSlinkerBot/linttask16.js
Links to relevant discussions (where appropriate):
Edit period(s): one time run
Estimated number of pages affected: 1300 with fostered issues and 650 with code tag nesting issues (some overlap, so total will be lower)
Namespace(s): User & User talk
Exclusion compliant (Yes/No): No
Function details: Fix various lint issues with fostered content on user talk pages as below:
- Check out some of these pages, [https://en.wikipedia.org/w/index.php?title=Special:Search&limit=100&offset=0&ns2=1&ns3=1&search=insource%3A%2F%5C%7B%5C%7C.%5C%2ACheck+out+some+of+these+pages%2F 683 pages]
- Time Travel, [https://en.wikipedia.org/w/index.php?title=Special:Search&limit=50&offset=0&ns2=1&ns3=1&search=insource%3A%2Fv%5C%7B%5C%7BEpisode+list%2F 21 pages]
- Created by Sahibdin or Bellus Delphina, [https://en.wikipedia.org/w/index.php?title=Special:Search&limit=100&offset=0&ns2=1&ns3=1&search=insource%3A%2F%5C%3Ctable%5C%3E%5C%3Csmall%5C%3E+Created+by%2F 111 pages]
- Bangla Wikipedia Photography Contest, [https://en.wikipedia.org/w/index.php?title=Special:Search&limit=250&offset=0&ns2=1&ns3=1&search=insource%3A%2F%5C%3D%5C%3D+You+are+Invited+to+Bangla+Wikipedia+Photography+Contest+2014%2F 212 pages]
- Ichthus December 2019, [https://en.wikipedia.org/w/index.php?title=Special:Search&limit=250&offset=0&ns2=1&ns3=1&search=insource%3A%2F%5C%3D%5C%3D+Ichthus+December+2019%2F 313 pages]
- Ichthus January 2020, [https://en.wikipedia.org/w/index.php?title=Special:Search&limit=250&offset=0&ns2=1&ns3=1&search=insource%3A%2F%5C%3D%5C%3D+%5C%27%5C%27Ichthus%5C%27%5C%27+January+2020%2F 311 pages]
- Nuvola apps edu mathematics blue-p.svg, [https://en.wikipedia.org/w/index.php?title=Special:Search&limit=500&offset=0&ns2=1&ns3=1&search=insource%3A%2F%5C%7B%5C%7C+%5C%7C%5C-+%5C%7C.%5C%5B%5C%5BFile%5C%3ANuvola+apps+edu+mathematics+blue-p%5C.svg%2F 86 pages]
- code tag nesting, [https://en.wikipedia.org/w/index.php?title=Special:Search&limit=500&offset=0&ns2=1&ns3=1&search=insource%3A%2F%5C%3Ccode%5C%3E.%5C%3Cnowiki%5C%3E%5C%3D%5C%3DReferences%5C%3D%5C%3D%5C%3C%5C%2Fnowiki%5C%3E%2F 658 pages]
=Discussion=
- I took a look at the examples and saw they have some other Lint errors too. They can be fixed in the same edit by adding more regexes -
- Check out some of these pages: misnested code tags
- #
myContent = myContent.replace(/( )\n(
\=\=References\=\=<\/nowiki>)(\n
\n)(\{\{Reflist\}\}<\/nowiki>)\n(<\/code>)/gi,'$1$2$5$3$1$4$5'); - #
myContent = myContent.replace(/( )\n(
\{\{Refbegin\}\}<\/nowiki>)(\n
\n)(\*Press paste \(Ctrl\+V or Apple\+V\) after this asterisk, then remove the <\/ref> tags<\/nowiki>)\n
\n(\{\{Refend\}\}<\/nowiki>)\n(<\/code>)\}\}/gi,'$1$2$6$3$1$4$6$3$1$5$6\n}}'); - Created by Sahibdin: html5 misnesting, misnested, stripped and obsolete html tags
- #
myContent = myContent.replace(/ (WikiProject India)<\/center><\/font><\/span>/gi,' $1'); - #
myContent = myContent.replace(/(opt-out of future mailings\.<\/small>\}\}\n<\/div>\n)<\/div>(--\[\[User\:MediaWiki message delivery\|MediaWiki message delivery\]\])/gi,'$1$2'); - :This seems to have a large overlap with [https://en.wikipedia.org/w/index.php?search=insource%3A%2F%5C%3Ctable%5C%3E%5C%3Csmall%5C%3E+Created+by+%5C%7B%5C%7Bnoping%5C%7CBellus+Delphina%5C%7D%5C%7D+%5C%3C%5C%2Fsmall%5C%3E%5C%3C%5C%2Ftable%5C%3E%2F&title=Special:Search&profile=advanced&fulltext=1&ns2=1&ns3=1 this] pattern which also has fostered content and obsolete html tag errors that can be fixed using -
- :#
myContent = myContent.replace(/ ( Created by \{\{noping\|Bellus Delphina\}\} <\/small>)<\/table>/gi,'$1');
- :#
myContent = myContent.replace(/ (WikiProject India)<\/font><\/span><\/center>/gi,' $1');- Ichthus December 2019: obsolete html tags
- #
myContent = myContent.replace(/(-----\n) (\n \'\'\'Quotes\'\'\'<\/div>)/gi,'$1$2');$2');- #
myContent = myContent.replace(/(illustrator and social critic\.)<\/center>(<\/div>)/gi,'$1 - #
myContent = myContent.replace(/ (\[\[WP\:X\|\'\'\'WikiProject Christianity)/gi,' $1');');- #
myContent = myContent.replace(/(Full_content_delivery\|Unsubscribe\]\]
Delivered\: [0-9]+\:[0-9]+, [0-9]+ [A-Za-z]+ [0-9]+ \(UTC\)<\/small>)<\/center>/gi,'$1- Ichthus January 2020: The regex you are currently using (line no. 38) preserves obsolete html tags, it can be replaced with
myContent = myContent.replace(/ \n
\n (\{\{underline\|\'\'\'I<\/big>CHTHUS\'\'\'\}\})<\/p><\/span><\/center>\n<\/table>/gi,'
$1');- :In addition, this has 3 missing end and 3 obsolete html tags that can be fixed using -
- :#
myContent = myContent.replace(/(which drives a wedge into the world of false assurances\.\")(
\n)(~ \[\[Jacques Ellul\]\]\'\'\'<\/div>)/gi,'$1\'\'\'$2\'\'\'$3');- :#
myContent = myContent.replace(/(and may it be sprinkled with love and friendship\.\'\')(
\n\'\'\'\'\'Best Wishes\!)/gi,'$1\'\'\'$2');- :#
myContent = myContent.replace(/ (\n \'\'\'Quotes\'\'\'<\/div>)/gi,'$1');- :#
myContent = myContent.replace(/(\{\{Wikiquote-inline\|Jacques Ellul\}\} )<\/center>(<\/div>)/gi,'$1$2$2'); - :#
myContent = myContent.replace(/ (\[\[WP\:X\|\'\'\'WikiProject Christianity)/gi,' $1');');- :#
myContent = myContent.replace(/(Outreach\/Full_content_delivery\|Unsubscribe\]\]<\/small>)<\/center>/gi,'$1 - :#
myContent = myContent.replace(/ (Sent by \[\[User\:MediaWiki message delivery\|MediaWiki message delivery\]\] \(\[\[User talk\:MediaWiki message delivery\|talk\]\]\) 21\:27, 4 January 2020 \(UTC\)<\/small>)<\/center>/gi,'{{center|$1}}'); - :I have tested only the replacements, not the regexes. ಮಲ್ನಾಡಾಚ್ ಕೊಂಕ್ಣೊ (talk) 07:05, 9 November 2021 (UTC)
- Thanks for the comments, I've added in the changes for other lint issues, apart from the center tag which I'm not inclined to do. -- WOSlinker (talk) 18:17, 9 November 2021 (UTC)
- :{{BotTrial|edits=40}} Please do 5 replacements for each issue. Primefac (talk) 11:58, 11 November 2021 (UTC)
- ::{{BotTrialComplete}} Have done the following edits. -- WOSlinker (talk) 17:53, 11 November 2021 (UTC)
:::* Check out some of these pages & code tag nesting, [https://en.wikipedia.org/w/index.php?title=Special:Contributions/WOSlinkerBot&offset=20211111172700&limit=5&target=WOSlinkerBot 5 edits] (However, there was an issue with [https://en.wikipedia.org/w/index.php?title=User_talk:64.252.34.115&diff=1054707711&oldid=388068560 this edit] missing the closing table, so I updated the script and did [https://en.wikipedia.org/w/index.php?title=User_talk:64.252.34.115&diff=1054708231&oldid=1054707711 this edit] to fix that.)
:::* Time Travel, [https://en.wikipedia.org/w/index.php?title=Special:Contributions/WOSlinkerBot&offset=20211111172919&limit=5&target=WOSlinkerBot 5 edits]
:::* Created by Sahibdin or Bellus Delphina, [https://en.wikipedia.org/w/index.php?title=Special:Contributions/WOSlinkerBot&offset=20211111173700&limit=5&target=WOSlinkerBot 5 edits]
:::* Bangla Wikipedia Photography Contest, [https://en.wikipedia.org/w/index.php?title=Special:Contributions/WOSlinkerBot&offset=20211111174300&limit=5&target=WOSlinkerBot 5 edits]
:::* Ichthus December 2019 & 2020, [https://en.wikipedia.org/w/index.php?title=Special:Contributions/WOSlinkerBot&offset=20211111174600&limit=5&target=WOSlinkerBot 5 edits]
:::* Nuvola apps edu mathematics blue-p.svg, [https://en.wikipedia.org/w/index.php?title=Special:Contributions/WOSlinkerBot&offset=20211111175000&limit=5&target=WOSlinkerBot 5 edits]
{{BotApproved}} Primefac (talk) 11:05, 16 November 2021 (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 Wikipedia:Bots/Noticeboard.
- :#