Difference between revisions of "Template:Tag"
From D&D 5e
Line 5: | Line 5: | ||
This template simply provides a quick way to mention an XML-style tag in a preformatted way. Mainly used in discussion/help pages. | This template simply provides a quick way to mention an XML-style tag in a preformatted way. Mainly used in discussion/help pages. | ||
− | <pre># {{tag|ref}} | + | <pre>{{tag}} |
+ | # {{tag|ref}} | ||
# {{tag|ref|hello}}</pre> | # {{tag|ref|hello}}</pre> | ||
+ | # {{tag}} | ||
# {{tag|ref}} | # {{tag|ref}} | ||
# {{tag|ref|hello}} | # {{tag|ref|hello}} | ||
− | </noinclude> | + | [[Category:Wikipedia special effects templates]]</noinclude> |
Revision as of 03:47, 2 October 2006
<tag></tag>
This template simply provides a quick way to mention an XML-style tag in a preformatted way. Mainly used in discussion/help pages.
{{tag}} # {{tag|ref}} # {{tag|ref|hello}}
- {{#if:|
|
}}{{#switch:pair
|c|close = |s|single |o|open |p|pair = <tag{{#if:| {{{params}}}}}
}}{{#switch:pair
|c|close = |s|single = /> |o|open = > |p|pair = >...
}}{{#switch:pair
|s|single |o|open = |c|close |p|pair = </tag>
}}{{#if:|
|
}}
- {{#if:|
|
}}{{#switch:pair
|c|close = |s|single |o|open |p|pair = <ref{{#if:| {{{params}}}}}
}}{{#switch:pair
|c|close = |s|single = /> |o|open = > |p|pair = >...
}}{{#switch:pair
|s|single |o|open = |c|close |p|pair = </ref>
}}{{#if:|
|
}}
- {{#if:|
|
}}{{#switch:hello
|c|close = |s|single |o|open |p|pair = <ref{{#if:| {{{params}}}}}
}}{{#switch:hello
|c|close = |s|single = /> |o|open = > |p|pair = >...
}}{{#switch:hello
|s|single |o|open = |c|close |p|pair = </ref>
}}{{#if:|
|
}}