Hello everyone,
*TL:D**R;*
As you are aware from previous postings on this list [1] [2] [3] [4] [5] [6], we have been progressively replacing Tidy with RemexHtml on all wikis on the wikimedia cluster. As of today, about 650 wikis have made the switch that include a number of large wikis. We aim to complete this switch over on the remaining 250 wikis by end of June 2018. Another 40 or so wikis will be switched on May 2nd.
There are a few large wikis (es, pt, uk, zh especially) that could use more attention addressing Linter issues so that when we make the switch end of June, some pages on these wiki don't render differently from how they do now.
* *
*Details:*
I started investigating more closely where the remaining large wikis are with respect to the linter issues (high priority categories on the Special:LintErrors page) that are pertinent to these wikis. I am listing below results from running sql queries on quarry.wmflabs.org for these wikis. If you are a community member on any of these wikis, do try to address these on your wiki.
_15 other large wikis:_
See https://quarry.wmflabs.org/query/26474 for counts of linter issues for each of the 9 categories in the main namespace. __
* *es, pt, uk, zh* wikis have total error counts over 10K and in some cases, it is usually one category which needs attention. * *vi, ro, sr, sh, ar, tr, id* are not too bad but don't seem to have seen a lot of change which indicates that these wikis aren't looking at linter issues. * fr, hu, ja, pl wikis seem to be in good shape overall. There has been a steady fixing of issues and I think all these will will be in fairly decent shape for replacing Tidy by end of June.
https://www.mediawiki.org/wiki/Parsing/Replacing_Tidy/FAQ#Simplified_instruc... has some summarized instructions for fixing issues in different categories
_English Wikipedia:_
See https://quarry.wmflabs.org/query/25665 for counts of linter issues for each of the 9 categories in the main namespace.
English wp has been making slow and gradual progress. I think overall, despite there still being ~8300 instances (not pages) that need fixing, enwp is in pretty good shape for replacing Tidy by end of June.
__Commons:__
See https://quarry.wmflabs.org/query/25693 for counts of linter issues for each of the 9 categories in the File (ns6), Gallery (ns0), and Template (ns10) namespaces.____
The vast majority of html5-misnesting errors on commons seem to come from the use of the {{lang}} template which uses a <span> tag to wrap content. However, it seems to be extremely common to pass content with paragraphs into the {{lang}} template. Right now, this doesn't cause any visible rendering issues and could be ignored temporarily, but we strongly recommend fixing lang to use <div> or on pages which misuse {{lang}} this way, replace use of {{lang}} by creating a new template ({{lang-block}} maybe?) that uses a <div> tag.
*
Some tips:*
1. On some wikis, fixing templates usually fixes the problem. Over the last 6 months, I've personally spent many hours fixing 100s of templates on 10s of different wikis and can personally attest to the efficacy of that strategy. 2. A lot of the html5-misnesting errors seem to be from incorrectly using a <span> tag to wrap content that has paragraphs, lists, tables. In all these cases, changing them to <div> almost always fixes the problem.
If you need any assistance, please leave a message on https://www.mediawiki.org/wiki/Help_talk:Extension:Linter. Between 8 am - 4pm PST, you can also usually find us on IRC on #mediawiki-parsoid.
Thanks,
Subbu. (on behalf of the Parsing team @ Wikimedia Foundation)
1. https://lists.wikimedia.org/pipermail/wikitech-ambassadors/2017-July/001625.... 2. https://lists.wikimedia.org/pipermail/wikitech-ambassadors/2017-August/00163... 3. https://lists.wikimedia.org/pipermail/wikitech-ambassadors/2018-January/0017... 4. https://lists.wikimedia.org/pipermail/wikitech-ambassadors/2018-February/001... 5. https://lists.wikimedia.org/pipermail/wikitech-ambassadors/2018-March/001808... 6. https://lists.wikimedia.org/pipermail/wikitech-ambassadors/2018-March/001821...