Template:Cleanup HTML/doc: Difference between revisions

Content deleted Content added
Usage: new cats
 
(21 intermediate revisions by 13 users not shown)
Line 2:
 
== Usage ==
* This cleanup template can be used to tag pages that use [[Help:HTML_in_wikitext|HTML markup]] that can be replaced with [[Help:Wikitext|wiki markup]].
 
* <code><nowiki>{{Cleanup- HTML}}</nowiki></code> puts articles into [[:Category:Articles with HTML markup]] and [[:Category:Articles covered by WikiProject Wikify]]
* This cleanup template can be used to tag pages that use [[HTML element|HTML markup]] that can be replaced with [[wiki markup]]. This includes bold tags (<nowiki><b></b></nowiki>), italics (<nowiki><i></i></nowiki>), paragraph (<nowiki><p></p></nowiki>), break lines in most cases, tables, etc.
* An unnamed parameter will replace the word "article" in the alert box message — <code><nowiki>{{Cleanup HTML|section}}</nowiki></code> changes the message to start "This section uses HTML markup".
 
* When adding to a page, it is helpful to other editors to specify which tags are unwanted, like this: <code><nowiki>{{cleanup HTML|tags=table, tr, td}}</nowiki></code> — These tags will be displayed in the alert box.
*Examples of how to convert HTML tables to wikimarkup can be found [[Help:Table#Comparison_of_table_syntax]].
*: For a list of which tags are unwanted and instructions on how to perform cleanup, see [[:Category:Articles with HTML markup]].
 
* If a date parameter is provided such as <code><nowiki>{{</nowiki>Cleanup- HTML|date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}<nowiki>}}</nowiki></code> then the page is put into a by-month category instead. If the date is left out, a [[Wikipedia:Bot|bot]] will add it later.
*It shouldn't be used for all html tags: e.g., <code><nowiki>H<sub>2</sub>O</nowiki></code>. See [[Help:Wikitext examples]] for a useful list of common wikitext and non-deprecated HTML tags.
 
* <code><nowiki>{{Cleanup-HTML}}</nowiki></code> puts articles into [[:Category:Articles with HTML markup]] and [[:Category:Articles covered by WikiProject Wikify]]
 
* If a date parameter is provided such as <code><nowiki>{{</nowiki>Cleanup-HTML|date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}<nowiki>}}</nowiki></code> then the page is put into a by-month category instead. If the date is left out, a [[Wikipedia:Bot|bot]] will add it later.
 
* This template is a [[Wikipedia:Self-references to avoid|self reference]].
 
Line 18 ⟶ 13:
* {{Tl|Cleanup-Html}}
 
<includeonly>{{Sandbox other||
==See also==
* {{Tl|Wikify}}
 
<includeonly>
<!-- ADD CATEGORIES BELOW THIS LINE -->
[[Category:Cleanup templates|{{PAGENAME}}HTML]]
[[Category:HTML templates|Cleanup]]
 
}}</includeonly>
<!-- ADD INTERWIKIS BELOW THIS LINE -->
</includeonly>