Jump to content

User:Legobot/Lint fixes

From Wikipedia, the free encyclopedia

Legobot is currently fixing obsolete tag lint errors.

How to hide these edits?

[edit]

If you want to hide just the "Fixing lint errors" edits, go to your watchlist, in the "Active filters" box, on the right click "Tags", type "fixing lint errors", select the corresponding checkbox and then press "Excluding selected". The edits should now be hidden. To save this as your default, click the bookmark icon on the right side and set it as your default.

To hide all Legobot edits from your watchlist, see WP:HIDEBOTS.

What is being changed?

[edit]
  • Any <font>...</font> tags are turned into <span>...</span> (or <div>...</div> if it contains block elements) with the appropriate inline styles. The color, face, and size attributes are parsed according to the HTML spec.
    • If the <font>...</font> tag specified a color (color attribute or inline style) and it contains links, then another <span>...</span> will be added inside the link, wrapping the link text.
  • Any <tt><nowiki>...</nowiki></tt> are turned into <code><nowiki>...</nowiki></code>
  • Any <tt>emoticon</tt> are turned into {{mono|emoticon}} where the emoticon matches the regex ^[:;]-?[DP/)]$
  • Any <center>...</center> are turned into <div class="center">...</div>
    • If any of the descendants are tables or contain an inline style with a "margin" rule, it will be skipped.

If there are any remaining lint errors that Legobot was unable to fix, it will not edit the page.

Where was this discussed?

[edit]

Statistics

[edit]

By the end of June 2023, Legobot had fixed 637,693 lint errors over 111,945 edits:

  • <font>: 587,843
  • <center>: 45,097
  • <tt>: 4,753