Help:Lint errors/self-closed-tag/fr

Pages on this list contain invalid self-closed HTML tags, such as ,, , , and. (Valid tags defined in the HTML5 specification, like, , and , do not cause this error.) Some MediaWiki XML tags are also valid when self-closed, like  and  , as well as some extension tags like and  , which should usually be changed to   (move the slash from end to beginning of the closing tag).

Where an invalid or  (with no attributes such as   or  ) is used as a spacer to prevent wikicode from rendering in example code, like , either replace  with  for valid code that achieves the same effect, or use a template-linking template such as   or , as in.

Some templates include an anchor id parameter. When fixing self-closed  and   tags that appear immediately before such templates, consider moving the anchor text from the HTML tag to inside the template and removing the now-unneeded tag.

If a given page on this list does not appear to have any invalid self-closed tags, it may be transcluding a page or template that does.

Exemple

 * Invalid markup
 * abc


 * Valid markup
 * abc

Outils
The following tools can help fix invalid self-closed HTML tags:
 * WPCleaner: if WPCleaner is configured for your wiki, you can select "Linter categories"/"Self-closed tags" in the main window to get a list of pages on which Linter has detected such an issue. Select pages in the list and click on the "Full analysis" button to analyze each page. In the analysis window, such issues may be reported as CheckWiki error #2. You can also get the result of a new Linter analysis by clicking on the "Check article with Linter" button.

Voir aussi

 * Category:Pages using invalid self-closed HTML tags‎
 * https://phabricator.wikimedia.org/T134423