Help:Lint errors/empty-heading: Difference between revisions
Appearance
Content deleted Content added
add |
add |
||
| Line 16: | Line 16: | ||
=== {{Use dmy dates|date=February 2020}} === (or other template with no rendered output) |
=== {{Use dmy dates|date=February 2020}} === (or other template with no rendered output) |
||
<h2 style="font-weight:bold;padding:0;margin:0;color:black;font-family:sans-serif;border:none;font-size:100%;padding-bottom:.1em"><big>[[File:Canada 10,000 banner.png|400px|link=Wikipedia:WikiProject Canada/The 10,000 Challenge]] </big> <i></i></h2> |
|||
</syntaxhighlight> |
</syntaxhighlight> |
||
<translate> |
<translate> |
||
Revision as of 05:14, 9 May 2025
An empty heading occurs when the content of the heading normalizes to the empty string. For example, all of these will be empty headings and flagged on this list of lint errors.
=== ===
=== <!-- comment --> ===
=== <center></center> ===
=== [[File:Example.svg]] ===
=== [[fi:Example]] ===
=== {{Use dmy dates|date=February 2020}} === (or other template with no rendered output)
<h2 style="font-weight:bold;padding:0;margin:0;color:black;font-family:sans-serif;border:none;font-size:100%;padding-bottom:.1em"><big>[[File:Canada 10,000 banner.png|400px|link=Wikipedia:WikiProject Canada/The 10,000 Challenge]] </big> <i></i></h2>
Suggested fixes
It is recommended to replace the missing section header with "Untitled" unless there is a better, more appropriate option.
=== Untitled ===
History
In T368722, it was noted that Parsoid does not generate section edit links for empty headings, whereas the legacy parser will, but with an invalid empty anchor that the link in the table of contents can't navigate to. The creation of this lint error was discussed at w:Wikipedia talk:Linter#New lint category for empty headings.