![]() |
VOOZH | about |
<tag>...</tag>
This template is used to create a markup tag presentation, with an open angle bracket <, a close angle bracket >, and the content within them. It appears in markup language, such as HTML, XML, or wikitext (which supports some HTML).
This template is based on Wikipedia's w:Template:Tag.
{{|<tag>|<type>}}
|1=<tag> – the tag that is placed inside the angle brackets.|2=<type> optional – the presentation type:
pair p default – matching pair of open/close tags (e.g., <div>...</div>).open o – an open/start tag (e.g., <div>).close c – a close/end tag (e.g., </div>).empty single void e s v – a self-closing tag (e.g., <hr />). In HTML, it's called "void" tag.|content=<content> optional – the text wrapped with the open/close tags (e.g., <div>content text here...</div>).|attribs=<attribs> optional – places attribute string inside the tag's opening.Here are multiple samples of the template:
{{xtag|div}} {{xtag|div|content=hello world}} {{xtag|div|open}} {{xtag|div|close}} {{xtag|img|void}} {{xtag|img|v|attribs=src=<nowiki>"https://minecraft.wiki/images/Minwi-background.png?format=original"</nowiki>}} {{xtag|span|content=}} {{xtag|div|content={{xtag|span|content=}}}}
Produces
<div>...</div>
<div>hello world</div>
<div>
</div>
<img />
<img src="https://minecraft.wiki/images/Minwi-background.png?format=original" />
<span></span>
<div>
<span></span></div>