Difference between revisions of "Template:Tag"
From D&D 5e
m (Protected Template:Tag: High-risk template - vandalism target [edit=sysop:move=sysop]) |
(Replacing Category:Wikipedia formatting templates with Category:Wikipedia formatting and function templates as requested on talk page) |
||
Line 15: | Line 15: | ||
See also: {{tl|tag1}}. | See also: {{tl|tag1}}. | ||
− | [[Category:Wikipedia formatting templates|{{PAGENAME}}]] | + | [[Category:Wikipedia formatting and function templates|{{PAGENAME}}]] |
</noinclude> | </noinclude> |
Revision as of 09:13, 27 August 2008
<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:|
|
}}
See also: Template:Tl.