Template:Xtag
<tag>
MediaWiki e[x]tension [tag] link template.
Usage
{{Xtag |1= |2= |params= |content= }}
Template parameters
- TemplateData
TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard.
Existing template documentation
At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either useTemplateData=1 or useTemplateData=only on the /doc subpage and transcluding it with {{Documentation}} into the template. <nowiki>-tags can be wrapped around the arguments, if required, to avoid templates being expanded.
Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw <templatedata>-tags into the Wikitext of the template, as described in various Wikipediae.
Wikipedia's help about TemplateData • Commons-specific information
MediaWiki Extension Tag link template
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Name | 1 | The name of the Extension tag.
| Line | required |
| Type | 2 | The tag type, possible values: “p”/“pair” – “<tag>...</tag>”; “o”/“open” – “<tag>”; “c”/“close” – “</tag>”; “s”/“single” – “<tag />”
| String | optional |
| Attributes | params | Attributes for the opening tag; ignored when type is “close”.
| Content | suggested |
| Content | content | The text content of the tag; ignored when type is “single”. Default: “...” for “pair” type and empty for other types.
| Content | suggested |
| Plain? | plain | Avoid using <code> style.
| Boolean | optional |
| Wrap? | wrap | Whether to allow wrapping of the whole tag's contents.
| Boolean | optional |
| No Wrap Name? | nowrapname | Whether to add “<span style="white-space:nowrap">” around the tag name.
| Boolean | optional |
Additional information
The template is intended to be used in the following namespaces: all namespaces
The template is intended to be used by the following user groups: all users
See also