Template:Htm/doc
This page is a template. It contains some standardized, often used text, which can be transcluded inside other pages.
As this template is widely used in our wiki, it may be protected in which case only staff members can change it. Use the discussion page to propose enhancements or fixes, or to voice your opinion.
This template can be used to quickly refer to an HTML-style tag (displayed inside <angle-brackets>), without having to use a <nowiki>
element or <
to suppress wiki-parsing.
The tag is displayed using a monospace font. Variations on this, provided by similar templates, are listed below.
The name of this template is based on the fact that it shows an HTML-style tag in monospace.
Parameters
Parameter name | Required? | Default value | Description |
---|---|---|---|
Anonymous parameter 1 |
No | (n/a) | Name of the tag to display |
Note: The tag need not be legal HTML (or XML, SGML, etc.). To show =
in an attribute (as shown below), use {{=}}
. To show |
, use {{!}}
or &124;
.
Usage
{{Htm|tag}}
See the template's testcases:
{{Htm|span}}
{{Htm|span style{{=}}"color:red"}}
{{Htm|span title{{=}}"this{{!}}that"}}
{{Htm|/span}}
{{Htm}}
See also[edit]
The complete family of templates similar to this one (with example output for each):