Template:Tag

The UESPWiki – Your source for The Elder Scrolls since 1995
Jump to: navigation, search

Summary[edit]

This template provides a quick way to mention an HTML/XML-style tag in a preformatted way. Content will be formatted using <code></code> tags and text will not wrap. This is mainly used in discussion/help pages.

This template was originally copied from Wikipedia.

Parameters[edit]

Tag
Parameter Scope Description
1 required The name of the tag. (Defaults to "tag" if not specified.)
2 optional The type of tag to display. One of: open, close, single, pair. (Defaults to "pair" if not specified or invalid.)
3 or
content
optional The content to display between the open and close tags. Only valid for paired tags.
params optional Any parameters to display in the opening tag.

Examples[edit]

Code Result Notes
{{Tag|div}}
<div></div>
{{Tag|div|open}}
<div>
{{Tag|div|close}}
</div>
{{Tag|br|single}}
<br/>
{{Tag|s||This text would be struck through.}}
<s>This text would be struck through.</s>
{{Tag|nowiki|pair|<nowiki>__TOC__</nowiki>}}
<nowiki>__TOC__</nowiki> Note that wiki markup still needs to be escaped with nowiki tags in the parameter, or by using nested tags if appropriate (see next example).
{{Tag|nowiki||{{Tag|noinclude||Do not transclude this text.}}}}
<nowiki><noinclude>Do not transclude this text.</noinclude></nowiki>