Jump to content

帮助:Lint错误/缺少起始标签

From mediawiki.org
This page is a translated version of the page Help:Lint errors/stripped-tag and the translation is 10% complete.

The stripped tag error is triggered when most types of closing tags or wikitext markup are inserted without corresponding opening tags. For example:

{{Small|This small text is not italic.</i>}}

Here, a closing ‎</i> tag is present, but an opening ‎<i> tag is missing. This can be fixed by addition of opening ‎<i> tag inside a template or by removal of closing ‎</i> tag in the template. So it should be like this (with correct tags):

{{Small|<i>This small text is not italic.</i>}}

This error can also appear in conjunction with a "missing end tag" error when there is a line break that is not supposed to be present, for example in the middle of a set of ‎<span>...‎</span> tags, or in a template that wraps a parameter in span tags. To fix both errors with a single edit, remove the line break or replace it with ‎<br />.

This error can sometimes appear when a table is not properly ended, either because it uses a template like {{Col-end }} instead of |}, or because |} is missing entirely.

Ending ‎</p> tags without opening tags are not flagged as stripped tags.

See also