Template:Ht
Documentation
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 not displayed using any special formatting. Other similar templates that do provide additional formatting are listed below.
The name of this template is based on the fact that it shows an HTML-style tag.
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
{{Ht|tag}}
See the template's testcases:
{{Ht|span}}
{{Ht|span style{{=}}"color:red"}}
{{Ht|span title{{=}}"this{{!}}that"}}
{{Ht|/span}}
{{Ht}}
See also[edit]
The complete family of templates similar to this one (with example output for each):
The above documentation is transcluded from Template:Ht/doc. (edit | history)
Editors can experiment in this template's sandbox (edit) and testcases (edit) pages.
Please add categories and interwikis to the /doc subpage. (See the subpages of this template.)