Added info
|
→Cleanup instructions: add advice for <var>
|
||
(10 intermediate revisions by 5 users not shown) | |||
Line 11: | Line 11: | ||
Don't know which HTML tag is unwanted? Click the "Edit source" tab on the article page, and search ({{key press|Ctrl|F}} in most web browsers) for the following. If you don't find any, feel free to remove the {{tl|cleanup HTML}} tag. |
Don't know which HTML tag is unwanted? Click the "Edit source" tab on the article page, and search ({{key press|Ctrl|F}} in most web browsers) for the following. If you don't find any, feel free to remove the {{tl|cleanup HTML}} tag. |
||
Templates are preferred to HTML tags, preferably semantic tags, per [[MOS:DEVIATIONS]]. |
|||
Here's what to do about each: |
Here's what to do about each: |
||
⚫ | |||
⚫ |
* {{tag|tt|o}} |
||
⚫ | |||
⚫ |
* {{tag|li|o}}, {{tag|ol|o}}, and {{tag|ul|o}} |
||
* {{tag|blockquote|o}} — Prefer {{tl|blockquote}}. See [[MOS:QUOTATIONS]]. |
|||
⚫ |
** Note that [[ |
||
⚫ | * {{tag|br|c}} — Should be {{tag|br|s}} to be valid HTML. Any other variations like {{tag|br|o}}, <syntaxhighlight lang="html" inline><br/></syntaxhighlight>, and <syntaxhighlight lang="html" inline><br ></syntaxhighlight> can also be changed to {{tag|br|s}} so that syntax highlighting will work, but only do this if you are making other changes. If possible, use a blank line or list formatting instead. See [[Help:Line-break handling]]. |
||
⚫ |
* {{tag|table|o}}, {{tag|tr|o}}, {{tag|td|o}}, {{tag|th|o}}, {{tag|caption|o}} |
||
* {{tag| |
* {{tag|b|o}} and {{tag|strong|o}} — Use {{code|'''}} instead,orremove bolding if [[MOS:BOLD]] says bolding isn't needed. In unusual cases, use {{tl|strong}}. |
||
⚫ | ** Note that [[MOS:BOLD]] indicates that use of {{tag|strong|o}} is allowed. |
||
* {{tag|dd|o}}, {{tag|dt|o}}, and {{tag|dl|o}} - convert to definition list following [[MOS:DLIST]]. |
|||
* {{tag|cite|o}} |
* {{tag|center|o}} — Use {{tl|center}} for most text, otherwise see [[Wikipedia:HTML 5#center]]. |
||
* {{tag|cite|o}} — Use {{tag|ref|o}} instead if this is defining a footnote, or perhaps a [[Wikipedia:Citation template]] if this trying to format the contents of a footnote. See [[Wikipedia:HTML5#cite]] for more on how to fix misuse. |
|||
* {{tag| |
* {{tag|dd|o}}, {{tag|dt|o}}, and {{tag|dl|o}} — Convert to definition list following [[MOS:DLIST]]. |
||
* {{tag|font|o}} — Obsolete; see [[Wikipedia:HTML 5#font]] for cleanup instructions. |
|||
* {{tag|b|o}} and {{tag|strong|o}} - Use {{code|'''}} instead, or remove bolding if [[MOS:BOLD]] says bolding isn't needed. In unusual cases, use {{tl|strong}}. |
|||
* {{tag| |
* {{tag|hr|o}} and {{tag|hr|s}} — Use {{code|----}} or remove entirely. |
||
* {{tag|i|o}} or {{tag|em|o}} — Use {{code|''}} (for typography) or {{tl|em}} (for emphasis where italics otherwise not required); be sure to follow [[MOS:ITALICS]]. |
|||
⚫ |
* <syntaxhighlight lang="xml" inline><name=></syntaxhighlight> |
||
** Note that [[MOS:EMPHASIS]] indicates that use of {{tag|em|o}} is allowed. |
|||
⚫ |
* {{tag|br|c}} |
||
⚫ | * {{tag|li|o}}, {{tag|ol|o}}, and {{tag|ul|o}} — Use "# " or "* " instead, or [[WP:NOTES|footnote syntax]]. {{tag|ol|o}} is used legitimately with the "start" attribute to control numbering. See [[Wikipedia:Manual of Style/Lists]]. |
||
⚫ | |||
* |
** Note that [[Wikipedia:Manual of Style/Lists#List styles]] indicates that use of {{tag|li|o}}, {{tag|ol|o}}, and {{tag|ul|o}} is allowed. |
||
⚫ | * <syntaxhighlight lang="xml" inline><name=></syntaxhighlight> — Usually a broken <syntaxhighlight lang="html" inline><ref name=...></syntaxhighlight> |
||
⚫ |
* {{tag|wbr|o}} |
||
* {{tag|ruby|o}}, {{tag|rt|o}}, and {{tag|rp|o}} |
* {{tag|p|o}} — Use a blank line or {{tl|pb}} to separate paragraphs. |
||
* {{tag|ruby|o}}, {{tag|rt|o}}, and {{tag|rp|o}} — Templates are preferred for simplicity. See [[Help:HTML in wikitext#rp, rt, ruby]] for replacements. |
|||
⚫ | * {{tag|table|o}}, {{tag|tr|o}}, {{tag|td|o}}, {{tag|th|o}}, {{tag|caption|o}} — Convert to wiki syntax; see [[Help:Table]]. |
||
⚫ | |||
⚫ | * {{tag|tt|o}} — Obsolete; use {{tag|code|o}}, {{tag|kbd|o}}, {{tag|samp|o}}, {{tag|var|o}} or {{tl|mono}} instead, or even better {{tl|code}}, {{tl|kbd}}, {{tl|samp}}, or {{tl|var}}. See [[Wikipedia:HTML5#tt]]. |
||
* {{tag|u|o}} — Use {{tl|underline}}. |
|||
* {{tag|var|o}} — Use {{tl|var}} for computer variables and {{tl|mvar}} for math variables (which use a serif font). |
|||
⚫ | * {{tag|wbr|o}} — Rarely needed, but if necessary {{tl|shy}} is preferred over this and <code>&shy;</code>. See [[Help:Line-break handling#%3Cwbr /%3E and soft hyphens|Help:Line-break handling]]. |
||
==More info== |
==More info== |
||
See [[MOS:MARKUP]] for wikitext generally being preferred to HTML. |
|||
Question about an HTML tag or wiki syntax not covered above? See: |
Question about an HTML tag or wiki syntax not covered above? See: |
||
* [[Help:HTML in wikitext]] for a canonical list of HTML tags and some wiki equivalents |
* [[Help:HTML in wikitext]] for a canonical list of HTML tags and some wiki equivalents |
This category is not shown on its member pages unless the appropriate user preference (appearance → show hidden categories) is set. |
This category contains all pages tagged by {{cleanup HTML}}.
There are several ways to find articles to work on:
Don't know which HTML tag is unwanted? Click the "Edit source" tab on the article page, and search (Ctrl+F in most web browsers) for the following. If you don't find any, feel free to remove the {{cleanup HTML}} tag.
Templates are preferred to HTML tags, preferably semantic tags, per MOS:DEVIATIONS.
Here's what to do about each:
<abbr>
— Use {{abbr}}.<bdo>
— Use {{rtl}}or{{ltr}}.<blockquote>
— Prefer {{blockquote}}. See MOS:QUOTATIONS.</br>
— Should be <br />
to be valid HTML. Any other variations like <br>
, <br/>
, and <br >
can also be changed to <br />
so that syntax highlighting will work, but only do this if you are making other changes. If possible, use a blank line or list formatting instead. See Help:Line-break handling.<b>
and <strong>
— Use '''
instead, or remove bolding if MOS:BOLD says bolding isn't needed. In unusual cases, use {{strong}}.
<strong>
is allowed.<center>
— Use {{center}} for most text, otherwise see Wikipedia:HTML 5#center.<cite>
— Use <ref>
instead if this is defining a footnote, or perhaps a Wikipedia:Citation template if this trying to format the contents of a footnote. See Wikipedia:HTML5#cite for more on how to fix misuse.<dd>
, <dt>
, and <dl>
— Convert to definition list following MOS:DLIST.<font>
— Obsolete; see Wikipedia:HTML 5#font for cleanup instructions.<hr>
and <hr />
— Use ----
or remove entirely.<i>
or<em>
— Use ''
(for typography) or {{em}} (for emphasis where italics otherwise not required); be sure to follow MOS:ITALICS.
<em>
is allowed.<li>
, <ol>
, and <ul>
— Use "# " or "* " instead, or footnote syntax. <ol>
is used legitimately with the "start" attribute to control numbering. See Wikipedia:Manual of Style/Lists.
<li>
, <ol>
, and <ul>
is allowed.<name=>
— Usually a broken <ref name=...>
<p>
— Use a blank line or {{pb}} to separate paragraphs.<ruby>
, <rt>
, and <rp>
— Templates are preferred for simplicity. See Help:HTML in wikitext#rp, rt, ruby for replacements.<table>
, <tr>
, <td>
, <th>
, <caption>
— Convert to wiki syntax; see Help:Table.<tt>
— Obsolete; use <code>
, <kbd>
, <samp>
, <var>
or{{mono}} instead, or even better {{code}}, {{kbd}}, {{samp}}, or {{var}}. See Wikipedia:HTML5#tt.<u>
— Use {{underline}}.<var>
— Use {{var}} for computer variables and {{mvar}} for math variables (which use a serif font).<wbr>
— Rarely needed, but if necessary {{shy}} is preferred over this and ­
. See Help:Line-break handling.See MOS:MARKUP for wikitext generally being preferred to HTML.
Question about an HTML tag or wiki syntax not covered above? See:
Automated reports on database dumps, and links to live search results are available at Wikipedia:Typo Team/moss#HTML tags.
This category has only the following subcategory.