Template:Htag/doc
From Angelina Jordan Wiki
This is a subpage documenting Template:Htag. To change the template, edit that page; to change the template's documentation (seen below), edit this one.
Documentation
This template provides a convenient way to render the names of HTML (and HTML-style) "tags", like <div> and <span> — as well as full HTML elements, like <div>…</div> — styled as code. It is intended to be used on help pages, in template documentation, in talk page discussions, etc., but not in articles.
The name of this template is based on the phrase "html tag".
This template is used on a great many pages. Making any changes to it will cause lots of jobs to be added to the processing queue.
Usage
{{htag}}{{htag|tag_name}}{{htag|element_name|content}}
The parameter nocode can be set to any true value to suppress the "code" style of the output and render it as plain text.
Examples
{{htag}}⇒<html>{{htag|}}⇒<>{{htag|span}}⇒<span>{{htag|/span}}⇒</span>{{htag|span|…}}⇒<span>…</span>{{htag|br /}}⇒<br />{{htag|li|nocode=y}}⇒ <li>