This template is used to display formatted parser extension tags that link to their help or extension pages.
Notable parser extension tags
Here is a list of particularly useful, common, or interesting parser extension tags. For a complete list, see Special:Version#mw-version-parser-extensiontags.
<categorytree><charinsert><chem><choose><dpl><forum><gallery><imagemap><indicator><infobox><inputbox><interactive-map><math><nowiki><pdf><poem><pre><ref><references><section><spotify><syntaxhighlight><tabber><templatedata><templatestyles><timeline>
Parameters
- first parameter (mandatory): the name of the HTML tag
- second parameter: what type of tag to display:
porpair: display a matched pair of open-and-close tags- To suppress the ellipsis which appears between the tags, add an empty
|content=parameter
- To suppress the ellipsis which appears between the tags, add an empty
ooropen(default): display only the opening tag of an open-and-close paircorclose: display only the closing tag of an open-and-close pairsorsingle: display a single tag
- content= the text content of the tags
- params= any parameters to be included in the opening tag
Examples
| Markup | Renders as |
|---|---|
{{xtag|nowiki}}
|
<nowiki> |
{{xtag|nowiki|s}}
|
<nowiki/> |
{{xtag|syntaxhighlight|p|params=inline lang="text"}}
|
<syntaxhighlight inline lang="text">...</syntaxhighlight> |
See also
- {{tag}}