Difference between revisions of "Template:Tag"
From D&D 5e
(Add space in single. Show content in open or close.) |
m (44 revisions imported: Export Template:Quote from mediawiki.org) |
||
(12 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
− | + | {{#if:{{{plain|}}}| | |
− | + | |<code style="white-space:nowrap"> | |
− | | | ||
− | |||
− | |||
− | |||
}}{{#switch:{{{2|pair}}} | }}{{#switch:{{{2|pair}}} | ||
− | | | + | |c|close = <!--nothing--> |
− | | | + | |s|single |
− | | | + | |o|open |
− | |pair | + | |p|pair = <{{{1|tag}}}{{#if:{{{params|}}}| {{{params}}}}} |
− | |||
}}{{#switch:{{{2|pair}}} | }}{{#switch:{{{2|pair}}} | ||
− | | | + | |c|close = {{{content|}}} |
− | + | |s|single =  /> | |
− | + | |o|open = >{{{content|}}} | |
− | | | + | |p|pair = >{{{content|...}}} |
− | |||
}}{{#switch:{{{2|pair}}} | }}{{#switch:{{{2|pair}}} | ||
− | |single = <{{{1|tag}}}{{#if:{{{ | + | |s|single |
− | + | |o|open = <!--nothing--> | |
+ | |c|close | ||
+ | |p|pair = </{{{1|tag}}}> | ||
+ | }}{{#if:{{{plain|}}}| | ||
+ | |</code> | ||
+ | }}<noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Latest revision as of 21:40, 28 January 2018
{{#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:|
|
}}
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. |