Template:Tag
From Starfield Wiki
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]
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> |
This page uses material from the UESP article "Template:Tag".