Template:HtmlTag
Jump to navigation
Jump to search
<html>
This documentation is transcluded from Template:HtmlTag/doc. (Edit | history)
Note to editors: Please don't categorize this template by editing it directly. Instead, place the category in its documentation page, in its "includeonly" section.
Note to editors: Please don't categorize this template by editing it directly. Instead, place the category in its documentation page, in its "includeonly" section.
Usage
- {{HtmlTag|element}} gives: <element>.
- {{HtmlTag|/element}} gives: </element>.
- {{HtmlTag|element /}} gives: <element />.
- {{HtmlTag|1= element attribute="value" }} gives: <element attribute="value">.
- {{HtmlTag|1= element attribute="value" / }} gives: <element attribute="value" />.
See also
- {{Strong}} – for semantically indicating strong emphasis instead of simple typographical boldfacing.
- {{Strongbad}} – same as {{Strong}} but red like this: Never use {{Strongbad}} in articles.
- {{Stronggood}} – same as {{Strongbad}} but green like this: Only use {{Stronggood}} on non-article pages.
- {{Em}} – similar template for semantically indicating mild emphasis instead of simple typographical italicization.
- {{Var}} – same as {{Varserif}} use for all variables (e.g. StrIllustratePrefix), except for 'I' (upper-case i) and 'l' (lower-case L) for which use {{Varserif}} allows visible distinctions.
- {{Varserif}} – same as {{Var}} but uses serif font (e.g. StrIllustratePrefix), especially for distinguishing between 'I' (upper-case i) and 'l' (lower-case L) as variables.
- {{Wikivar}} – for displaying wikicode variables and magicwords as they would appear in source code, e.g. {{PAGENAME}}, {{DEFAULTSORT:Lastname, Firstname}}.
- {{Para}} – for displaying wiki template parameters (e.g. |title =) or parameters and values (e.g. |year = 2008)
- {{Tlx}} and related – for displaying entire templates (with or without parameters and values) as code
- {{HtmlTag}} – for using HTML elements ("tags") in prose (e.g. "When coding HTML <img> tags, always include ...")
- {{Code}} – for computer source code (e.g. "... always include the alt parameter.").
- {{Syntaxhighlight}} or {{Sxhl}} – wrapper for <syntaxhighlight />, but will wrap overflowing text
- {{Deprecated code}} or {{Dc}} – for deprecated source code in template documentation, articles on HTML specs, etc.
- {{Pre}} – for larger blocks of source code and other pre-formatted text
- {{Bq}} – for indented blocks of content, such as block quotations, examples, poems, etc.
- {{Kbd}} – for indicating user input
- {{Key press}} – for indicating the input of specific keystrokes, e.g. Ctrl+X
- {{Samp}} – for example output