Difference between revisions of "Template:Tag"
From D&D 5e
(Not that I see the point of substing this, but let's make it not dump parser functions all over the place when it is.) |
(I think this is a solution to a non-existing problem.) |
||
Line 1: | Line 1: | ||
− | <code style="white-space:nowrap;">{{ | + | <code style="white-space:nowrap;">{{#switch:{{{2|pair}}} |
|c|close = <!--nothing--> | |c|close = <!--nothing--> | ||
|s|single | |s|single | ||
|o|open | |o|open | ||
− | |p|pair = <{{{1|tag}}}{{ | + | |p|pair = <{{{1|tag}}}{{#if:{{{params|}}}| {{{params}}}}} |
− | }}{{ | + | }}{{#switch:{{{2|pair}}} |
|c|close = {{{content|}}} | |c|close = {{{content|}}} | ||
|s|single =  /> | |s|single =  /> | ||
|o|open = >{{{content|}}} | |o|open = >{{{content|}}} | ||
|p|pair = >{{{content|...}}} | |p|pair = >{{{content|...}}} | ||
− | }}{{ | + | }}{{#switch:{{{2|pair}}} |
|s|single | |s|single | ||
|o|open = <!--nothing--> | |o|open = <!--nothing--> |
Revision as of 16:25, 20 November 2011
{{#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>
}}
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |