Difference between revisions of "Template:Tag"
From D&D 5e
(Use <code>) |
(parameter shortcuts, optimize) |
||
Line 1: | Line 1: | ||
<code style="white-space:nowrap;">{{#switch:{{{2|pair}}} | <code style="white-space:nowrap;">{{#switch:{{{2|pair}}} | ||
− | |close | + | |c|close = <!--nothing--> |
− | + | |s|single | |
− | | | + | |o|open |
− | | | + | |p|pair = <{{{1|tag}}}{{#if:{{{params|}}}| {{{params}}}}} |
− | | | ||
}}{{#switch:{{{2|pair}}} | }}{{#switch:{{{2|pair}}} | ||
− | |single | + | |c|close = {{{content|}}} |
− | |open | + | |s|single =  /> |
− | | | + | |o|open |
− | + | |p|pair = >{{{content|}}} | |
− | |||
}}{{#switch:{{{2|pair}}} | }}{{#switch:{{{2|pair}}} | ||
− | | | + | |s|single |
− | | | + | |o|open = <!--nothing--> |
− | |close | + | |c|close |
− | |pair | + | |p|pair = </{{{1|tag}}}> |
− | |||
− | |||
− | |||
}}</code><noinclude> | }}</code><noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 04:36, 23 January 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. |