Template:MC/Xtag/doc
Template page
More actions
Template:Documentation header This template is used to create a markup tag presentation, with an open angle bracket Template:Cd, a close angle bracket Template:Cd, and the content within them. It appears in markup language, such as Template:W, Template:W, or Template:W (which supports some HTML).
Usage
{{xtag|<tag>|<type>}}
- Template:P – the tag that is placed inside the angle brackets.
- Template:P optional – the presentation type:
- Template:Cd default – matching pair of open/close tags (e.g., Template:Xtag).
- Template:Cd – an open/start tag (e.g., Template:Xtag).
- Template:Cd – a close/end tag (e.g., Template:Xtag).
- Template:Cd – a self-closing tag (e.g., Template:Xtag). In HTML, it's called "void" tag.
- Template:P optional – the text wrapped with the open/close tags (e.g., Template:Xtag).
- Template:P optional – places attribute string inside the tag's opening.
Examples
Here are multiple samples of the template: <syntaxhighlight lang="wikitext"> Template:Xtag
Template:Xtag </syntaxhighlight>