Help:Lint errors/deletable-table-tag/en

This linter category has been added to assist editors in fixing wikitext and templates to ensure that their pages render correctly with a HTML5-based tool like RemexHTML (which will replace Tidy) and Parsoid.

Example:

In this example, Tidy will delete Table 2 above. But, RemexHTML and Parsoid will not delete that table. This will change how pages look. To prevent this, editors should fix the wikitext and remove Table 2. While the following row-tag need not be removed, we recommend removing it. Since the closing table tag is no longer needed, it should be removed as well.

Alternative fix
However, in some scenarios, editors might have forgotten to add a  tag. In that scenario, the fix is to add a | before the start of Table 2 which will fix the problem as well.

Example with screenshots from an enwiki page


The above example shows a composite of three screenshots. On the top is the wikitext with the deletable / extraneous table tag highlighted in blue. On the bottom left, you see how Tidy renders the output (default on Wikipedias). On the bottom right, you see how RemexHTML, the Tidy replacement renders it. Notice that the rendering is not identical at all. If you delete the highlighted table tag, the rendering on the left matches the rendering on the right. You can verify this via the ParserMigration extension.

Of course, an alternative in this scenario is that you might prefer the new rendering in which case you don't need to do anything. When Tidy gets replaced, the new rendering will take effect.

So, the specific fix on a page is context-dependent.

Explanation
This linter category relates to a table being nested inside another table in a fosterable position (inside a  or   tag, for example).

Since Tidy removes these tables right now, those table tags (and any styling associated with them) will not show up in the output. However, RemexHTML and Parsoid will preserve those table tags and will render two adjacent tables which might break rendering on pages. To preserve existing rendering with RemexHTML (which will replace Tidy) and Parsoid, this table tag wikitext should be removed. In cases where the wikitext comes from a template, Linter will also tell you what template produced that output, but you will have to investigate the template source to identify the relevant piece of template code that produces that table tag and fix it. See example of a template fix.

Caveat
Note that in some cases, while the rendering from RemexHTML might be different compared to Tidy, it may not necessarily be broken and not something that needs fixing - it may just be different, but still a good rendering. Since the linter tool cannot automatically determine whether fixes or needed or not, this category is only identifying pages with rendering differences. So, please use your judgment to figure out if there is something that needs to be fixed.

Example: https://en.wikipedia.org/wiki/Arthur_Foss?action=parsermigration-edit