New to bots on Wikipedia? Read these primers!
Operator: WOSlinker ( talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
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:
myContent = myContent.replace(/(<code>)\n(<nowiki>\=\=References\=\=<\/nowiki>)(\n<br \/>\n)(<nowiki>\{\{Reflist\}\}<\/nowiki>)\n(<\/code>)/gi,'$1$2$5$3$1$4$5');
myContent = myContent.replace(/(<code>)\n(<nowiki>\{\{Refbegin\}\}<\/nowiki>)(\n<br \/>\n)(<nowiki>\*Press paste \(Ctrl\+V or Apple\+V\) after this asterisk, then remove the <ref><\/ref> tags<\/nowiki>)\n<br \/>\n(<nowiki>\{\{Refend\}\}<\/nowiki>)\n(<\/code>)\}\}/gi,'$1$2$6$3$1$4$6$3$1$5$6\n}}');
myContent = myContent.replace(/<center><span style\=\"font-family\: Arial\; font-size\: 12pt\"><font size\=\"18\">(WikiProject India)<\/center><\/font><\/span>/gi,'<div style="text-align:center; font-family:Arial; font-size:xxx-large;">$1</div>');
myContent = myContent.replace(/(opt-out of future mailings\.<\/small>\}\}\n<\/div>\n)<\/div>(--\[\[User\:MediaWiki message delivery\|MediaWiki message delivery\]\])/gi,'$1$2');
myContent = myContent.replace(/<table>(<small> Created by \{\{noping\|Bellus Delphina\}\} <\/small>)<\/table>/gi,'$1');
myContent = myContent.replace(/<center><span style\=\"font-family\: Arial\; font-size\: 12pt\"><font size\=\"18\">(WikiProject India)<\/font><\/span><\/center>/gi,'<div style="text-align:center; font-family:Arial; font-size:xxx-large;">$1</div>');
myContent = myContent.replace(/(-----\n)<center>(\n<div style\=\"font-family\:Bebas Neue\;font-size\: 25px\;\">\'\'\'Quotes\'\'\'<\/div>)/gi,'$1<div class="center">$2');
myContent = myContent.replace(/(illustrator and social critic\.)<\/center>(<\/div>)/gi,'$1</div>$2');
myContent = myContent.replace(/<center>(\[\[WP\:X\|<span style\=\"font-family\: Bebas Neue \; color\:\#1B1C1B\; font-size\: 14pt\">\'\'\'WikiProject Christianity)/gi,'<div class="center">$1');
myContent = myContent.replace(/(Full_content_delivery\|Unsubscribe\]\]<br>Delivered\: [0-9]+\:[0-9]+, [0-9]+ [A-Za-z]+ [0-9]+ \(UTC\)<\/small>)<\/center>/gi,'$1</div>');
myContent = myContent.replace(/<table width\=\"450\" border\=\"0\" cellspacing\=\"0\" cellpadding\=\"0\" align\=\"center\">\n<center>\n<span style\=\"font-family\: Bebas Neue \; color\:\#ffffff\; font-size\:56pt\;text-align\:center\;\"><p>(\{\{underline\|\'\'\'<big>I<\/big>CHTHUS\'\'\'\}\})<\/p><\/span><\/center>\n<\/table>/gi,'<div style="text-align:center; font-family:Bebas Neue; color:#ffffff; font-size:56pt;">$1</div>');
myContent = myContent.replace(/(which drives a wedge into the world of false assurances\.\")(<br>\n)(~ \[\[Jacques Ellul\]\]\'\'\'<\/div>)/gi,'$1\'\'\'$2\'\'\'$3');
myContent = myContent.replace(/(and may it be sprinkled with love and friendship\.\'\')(<br>\n\'\'\'\'\'Best Wishes\!)/gi,'$1\'\'\'$2');
myContent = myContent.replace(/<center>(\n<div style\=\"font-family\:Bebas Neue\;font-size\: 25px\;\">\'\'\'Quotes\'\'\'<\/div>)/gi,'<div class="center">$1');
myContent = myContent.replace(/(\{\{Wikiquote-inline\|Jacques Ellul\}\} )<\/center>(<\/div>)/gi,'$1$2$2');
myContent = myContent.replace(/<center>(\[\[WP\:X\|<span style\=\"font-family\: Bebas Neue \; color\:\#1B1C1B\; font-size\: 14pt\">\'\'\'WikiProject Christianity)/gi,'<div class="center">$1');
myContent = myContent.replace(/(Outreach\/Full_content_delivery\|Unsubscribe\]\]<\/small>)<\/center>/gi,'$1</div>');
myContent = myContent.replace(/<center>(<small>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}}');
Approved.
Primefac (
talk) 11:05, 16 November 2021 (UTC)
reply
New to bots on Wikipedia? Read these primers!
Operator: WOSlinker ( talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
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:
myContent = myContent.replace(/(<code>)\n(<nowiki>\=\=References\=\=<\/nowiki>)(\n<br \/>\n)(<nowiki>\{\{Reflist\}\}<\/nowiki>)\n(<\/code>)/gi,'$1$2$5$3$1$4$5');
myContent = myContent.replace(/(<code>)\n(<nowiki>\{\{Refbegin\}\}<\/nowiki>)(\n<br \/>\n)(<nowiki>\*Press paste \(Ctrl\+V or Apple\+V\) after this asterisk, then remove the <ref><\/ref> tags<\/nowiki>)\n<br \/>\n(<nowiki>\{\{Refend\}\}<\/nowiki>)\n(<\/code>)\}\}/gi,'$1$2$6$3$1$4$6$3$1$5$6\n}}');
myContent = myContent.replace(/<center><span style\=\"font-family\: Arial\; font-size\: 12pt\"><font size\=\"18\">(WikiProject India)<\/center><\/font><\/span>/gi,'<div style="text-align:center; font-family:Arial; font-size:xxx-large;">$1</div>');
myContent = myContent.replace(/(opt-out of future mailings\.<\/small>\}\}\n<\/div>\n)<\/div>(--\[\[User\:MediaWiki message delivery\|MediaWiki message delivery\]\])/gi,'$1$2');
myContent = myContent.replace(/<table>(<small> Created by \{\{noping\|Bellus Delphina\}\} <\/small>)<\/table>/gi,'$1');
myContent = myContent.replace(/<center><span style\=\"font-family\: Arial\; font-size\: 12pt\"><font size\=\"18\">(WikiProject India)<\/font><\/span><\/center>/gi,'<div style="text-align:center; font-family:Arial; font-size:xxx-large;">$1</div>');
myContent = myContent.replace(/(-----\n)<center>(\n<div style\=\"font-family\:Bebas Neue\;font-size\: 25px\;\">\'\'\'Quotes\'\'\'<\/div>)/gi,'$1<div class="center">$2');
myContent = myContent.replace(/(illustrator and social critic\.)<\/center>(<\/div>)/gi,'$1</div>$2');
myContent = myContent.replace(/<center>(\[\[WP\:X\|<span style\=\"font-family\: Bebas Neue \; color\:\#1B1C1B\; font-size\: 14pt\">\'\'\'WikiProject Christianity)/gi,'<div class="center">$1');
myContent = myContent.replace(/(Full_content_delivery\|Unsubscribe\]\]<br>Delivered\: [0-9]+\:[0-9]+, [0-9]+ [A-Za-z]+ [0-9]+ \(UTC\)<\/small>)<\/center>/gi,'$1</div>');
myContent = myContent.replace(/<table width\=\"450\" border\=\"0\" cellspacing\=\"0\" cellpadding\=\"0\" align\=\"center\">\n<center>\n<span style\=\"font-family\: Bebas Neue \; color\:\#ffffff\; font-size\:56pt\;text-align\:center\;\"><p>(\{\{underline\|\'\'\'<big>I<\/big>CHTHUS\'\'\'\}\})<\/p><\/span><\/center>\n<\/table>/gi,'<div style="text-align:center; font-family:Bebas Neue; color:#ffffff; font-size:56pt;">$1</div>');
myContent = myContent.replace(/(which drives a wedge into the world of false assurances\.\")(<br>\n)(~ \[\[Jacques Ellul\]\]\'\'\'<\/div>)/gi,'$1\'\'\'$2\'\'\'$3');
myContent = myContent.replace(/(and may it be sprinkled with love and friendship\.\'\')(<br>\n\'\'\'\'\'Best Wishes\!)/gi,'$1\'\'\'$2');
myContent = myContent.replace(/<center>(\n<div style\=\"font-family\:Bebas Neue\;font-size\: 25px\;\">\'\'\'Quotes\'\'\'<\/div>)/gi,'<div class="center">$1');
myContent = myContent.replace(/(\{\{Wikiquote-inline\|Jacques Ellul\}\} )<\/center>(<\/div>)/gi,'$1$2$2');
myContent = myContent.replace(/<center>(\[\[WP\:X\|<span style\=\"font-family\: Bebas Neue \; color\:\#1B1C1B\; font-size\: 14pt\">\'\'\'WikiProject Christianity)/gi,'<div class="center">$1');
myContent = myContent.replace(/(Outreach\/Full_content_delivery\|Unsubscribe\]\]<\/small>)<\/center>/gi,'$1</div>');
myContent = myContent.replace(/<center>(<small>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}}');
Approved.
Primefac (
talk) 11:05, 16 November 2021 (UTC)
reply