Jump to content

Aide:Erreurs de lint/Multiples balises de mise en forme non fermées

From mediawiki.org
This page is a translated version of the page Help:Lint errors/multiple-unclosed-formatting-tags and the translation is 50% complete.

Problème

Cette catégorie liste deux types de problèmes indépendants.

Scénario 1: effet de l'accumulation des balises small et big

When more than one ‎<small> or ‎<big> tag is left unclosed on a page, the effects of those small and big tags accumulate on a page. See this revision on Italian Wikipedia for an example of a particularly bad case with 13 unclosed small tags.

Scénario 2 : utilisation incorrecte de <tag> au lieu de </tag>

Sometimes, editors accidentally use an opening tag instead of a closing tag. For example <code>foo<code> instead of <code>foo</code> (Ex: this revision on itwiki)

Solution

In both scenarios, close the corresponding unclosed tag.

Balises concernées

Note that these scenarios only affect formatting tags: a, b, big, code, em, font, i, nobr, s, small, strike, strong, tt, u

Mises en garde

  1. This error is expected to not be very common.
  2. There can be false positives if the unclosed ‎<small>/‎<big> tags are in different cells of a table.