Template:Tag/doc
Template page
More actions
This is a documentation subpage for Tag. It contains usage information, categories, and other content that is not part of the original template.
Usage
Displays XML/HTML-style tags in a formatted code style. Useful for documentation.
{{tag|ref}} → <ref>...</ref>
{{tag|ref|pair}} → <ref>...</ref>
{{tag|ref|params= name="example"}} → <ref name="example">...</ref>
Parameters
| Parameter | Description |
|---|---|
1 |
Tag name (required) |
2 |
Set to pair to show opening and closing tags
|
params |
Attributes to display inside the tag |
Examples
| Code | Result |
|---|---|
{{tag|ref}} |
<ref>...</ref>
|
{{tag|ref|pair}} |
<ref>...</ref>
|
{{tag|gallery|params= mode="packed"}} |
<gallery mode="packed">...</gallery>
|
{{tag|nowiki|pair}} |
<nowiki>...</nowiki>
|