Template:MC/Xtag
Template page
More actions
<tag>...</tag>
Template documentation (for the above template, sometimes hidden or invisible) [view] [edit] [history] [refresh]
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>
Template:Sandbox otherThe above text is transcluded from Template:MC/Xtag/doc; you can change it or view its history.
If you're done making changes, please refresh the text.
Please add categories and interwikis to Template:MC/Xtag/doc. (View all subpages of this page.)
If you're done making changes, please refresh the text.
Please add categories and interwikis to Template:MC/Xtag/doc. (View all subpages of this page.)