Kategori:Pages using invalid self-closed HTML tags: Perbezaan antara semakan

Kandungan dihapus Kandungan ditambah
Xaosflux (bincang | sumb.)
__HIDDENCAT__
Alexander Iskandar (bincang | sumb.)
Tiada ringkasan suntingan
 
Baris 1:
{{Wikipedia category|hidden=yes|tracking=yes}}
__HIDDENCAT__
{{empty category}}
{{nobots}}
 
Pages in this category contain invalid self-closed HTML tags, such as <nowiki><b/>, <div/>, <span/>, <p/>, and <td/></nowiki>. (Valid tags defined in the [[HTML5]] specification, like <nowiki><br/>, <hr/>, and <wbr/></nowiki>, do not cause this error.)<ref>The full list of valid self-closing tags in HTML5 is: area, base, br, col, embed, hr, img, input, keygen, link, meta, param, source, track, and wbr. However, only <nowiki><br/>, <hr/>, and <wbr/></nowiki> are allowed through the parser. The HTML pre tag is superseded by the MediaWiki XML pre tag.</ref><ref>Some MediaWiki XML tags are also valid when self-closed, like <nowiki><nowiki/> and <pre/></nowiki>, as well as some extension tags like <nowiki><ref/> and <references/></nowiki></ref>. The behavior of these invalid tags will change soon, to be consistent with the HTML5 specification, so their use in wikitext is deprecated. See [[phab:T134423]] for more details.
 
Pages are also automatically placed in this category by malformed tags like <nowiki></center/></nowiki>, which should usually be changed to <nowiki></center></nowiki> (remove the final slash); or by malformed constructs like <code><nowiki><s>...<s/></nowiki></code>, which should usually be changed to <code><nowiki><s>...</s></nowiki></code> (move the slash from end to beginning of the closing tag).
 
Where an invalid {{tag|font|s}} or {{tag|span|s}} (with no attributes such as <code>id=</code> or <code>class=</code>) is used as a spacer to prevent wikicode from rendering in example code, like <code><nowiki>{<font/>{templatename}}</nowiki></code>, either replace {{tag|font|s}} with {{tag|nowiki|s}} for valid code that achieves the same effect, or use a template-linking template such as {{tlx|tl}} or {{tlx|tlx}}, as in {{tlc|tlx|templatename}}.
 
Some templates include an anchor {{para|id}} parameter. When fixing self-closed <code><nowiki><div id="..."/></nowiki></code> and <code><nowiki><span id="..."/></nowiki></code> 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 in this category does not appear to have any invalid self-closed tags, it may be transcluding a page or template that does.
 
This category is populated based on the parameter at [[MediaWiki:Deprecated-self-close-category]].
 
For a list of MediaWiki-populated tracking categories, see [[Special:TrackingCategories]].
 
{{reflist}}
{{category TOC}}