Operator: ಮಲ್ನಾಡಾಚ್ ಕೊಂಕ್ಣೊ ( talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 08:40, Monday, May 17, 2021 ( UTC)
Automatic, Supervised, or Manual: automatic
Programming language(s): AutoWikiBrowser
Source code available: AWB, replacement strings are posted in User:MalnadachBot/Task 1
Function overview: Fixes high priority Lint error, Old behaviour of link-wrapping font tags caused due to specific user signatures in discussion pages because of change from HTML Tidy to RemexHTML. Also fix signature of Cyberbot II which interferes with syntax highlighting.
Links to relevant discussions (where appropriate): Wikipedia:Bots/Requests for approval/Ahechtbot, Wikipedia:Bots/Requests for approval/Galobot, Wikipedia:Bots/Requests for approval/NihlusBOT 2. These are similar bot approvals for fixing high priority Lint errors.
Edit period(s): One time run
Estimated number of pages affected: approximately 22,500 106,000
Exclusion compliant (Yes/No): Yes
Already has a bot flag (Yes/No): No
Function details: Find and replace specific strings of text that are causing
Old behaviour of link-wrapping font tags Lint error, which is a high priority Lint error. At the same time, convert <font>...</font>
tags in the signature to <span>...</span>
with CSS, since font tag is obsolete now. This also fixes obsolete html tag Lint error, a low priority Lint error. So replacing one signature will eliminate two types of Lint errors at the same time.
The signature strings that will be replaced are listed at User:MalnadachBot/Task 1. All of the users have either changed their signature or are no longer active on Wikipedia, so a one time run is sufficient. All edits will be marked as "minor".
AWB permission is requested for User:MalnadachBot, as well as the Bot flag to avoid triggering notifications when editing user talk pages. I have been replacing signatures in Template and File namespace using a script. I am requesting this bot approval so that I can cleanup High priority Lint errors quicker and in a larger scale across namespaces. Additional task requests will be created if new replacement strings are to be added.
Updated to note that I have included the signature of Cyberbot II per discussion below. This signature gives two missing end Lint errors and interferes with page syntax highlighting. 83,500 pages have this signature and needs to be fixed.
I recommend fixing other easy-to-fix obsolete font tags while the bot is visiting the page, using a general-purpose set of regexes that replace font tags with appropriate span tags. – Jonesey95 ( talk) 15:07, 17 May 2021 (UTC) reply
<font *color *\= *\"?(\#[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f])\"?\> *\[\[([^\|^\]]*)\|([^\|^\]]*)\]\] *\<\/font\>
with [[$2|<span style="color:$1">$3</span>]]
<font *color *\= *\"?(\#[0-9a-f][0-9a-f][0-9a-f])\"?\> *\[\[([^\|^\]]*)\|([^\|^\]]*)\]\] *\<\/font\>
with [[$2|<span style="color:$1">$3</span>]]
<font *color *\= *\"?([0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f])\"?\> *\[\[([^\|^\]]*)\|([^\|^\]]*)\]\] *\<\/font\>
with [[$2|<span style="color:#$1">$3</span>]]
<font *color *\= *\"?([0-9a-f][0-9a-f][0-9a-f])\"?\> *\[\[([^\|^\]]*)\|([^\|^\]]*)\]\] *\<\/font\>
with [[$2|<span style="color:#$1">$3</span>]]
<font *color *\= *\"?(\w*)\"?\> *\[\[([^\|^\]]*)\|([^\|^\]]*)\]\] *\<\/font\>
with [[$2|<span style="color:$1">$3</span>]]
<font *color *\= *\"?(\#[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f])\"?\> *\[\[([^\|^\]]*)\]\] *\<\/font\>
with [[$2|<span style="color:$1">$2</span>]]
<font *color *\= *\"?(\#[0-9a-f][0-9a-f][0-9a-f])\"?\> *\[\[([^\|^\]]*)\]\] *\<\/font\>
with [[$2|<span style="color:$1">$2</span>]]
<font *color *\= *\"?([0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f])\"?\> *\[\[([^\|^\]]*)\]\] *\<\/font\>
with [[$2|<span style="color:#$1">$2</span>]]
<font *color *\= *\"?([0-9a-f][0-9a-f][0-9a-f])\"?\> *\[\[([^\|^\]]*)\]\] *\<\/font\>
with [[$2|<span style="color:#$1">$2</span>]]
<font *color *\= *\"?(\w*)\"?\> *\[\[([^\|^\]]*)\]\] *\<\/font\>
with [[$2|<span style="color:$1">$2</span>]]
<font color="404040">[[User talk:Skomorokh|<font face="Garamond" color="black">скоморохъ</font>]]</font>
was wrongly replaced as [[User talk:Skomorokh|<span style="color:#404040"><font face="Garamond" color="black">скоморохъ</font></span>]]
. Besides font face and size params, Trial complete. 10 for each signature. Result diffs -
I have decided to not include general font fixes for this task since the error rate is high for fully automated runs. ಮಲ್ನಾಡಾಚ್ ಕೊಂಕ್ಣೊ ( talk) 07:42, 27 May 2021 (UTC) reply