Difference between revisions of "Template:Xtag"
From D&D 5e
(Help:Gallery tag) |
(add tag features) |
||
| Line 1: | Line 1: | ||
| − | <code style="white-space:nowrap;"><{{#switch:{{{1|}}} | + | <code style="white-space:nowrap;">{{#switch:{{{2|pair}}} |
| + | |c|close = <!--nothing--> | ||
| + | |s|single | ||
| + | |o|open | ||
| + | |p|pair = <{{#switch:{{{1|}}} | ||
|categorytree=[[mw:Extension:CategoryTree|categorytree]] | |categorytree=[[mw:Extension:CategoryTree|categorytree]] | ||
|charinsert=[[mw:Extension:CharInsert|charinsert]] | |charinsert=[[mw:Extension:CharInsert|charinsert]] | ||
| Line 15: | Line 19: | ||
|syntaxhighlight=[[mw:Extension:SyntaxHighlight|syntaxhighlight]] | |syntaxhighlight=[[mw:Extension:SyntaxHighlight|syntaxhighlight]] | ||
|timeline=[[mw:Extension:EasyTimeline|timeline]] | |timeline=[[mw:Extension:EasyTimeline|timeline]] | ||
| − | }}></code><noinclude> | + | |#default=tag |
| + | }}{{#if:{{{params|}}}| {{{params}}}}} | ||
| + | }}{{#switch:{{{2|open}}} | ||
| + | |c|close = {{{content|}}} | ||
| + | |s|single =  /> | ||
| + | |o|open = >{{{content|}}} | ||
| + | |p|pair = >{{{content|...}}} | ||
| + | }}{{#switch:{{{2|open}}} | ||
| + | |s|single | ||
| + | |o|open = <!--nothing--> | ||
| + | |c|close | ||
| + | |p|pair = </{{{1|tag}}}> | ||
| + | }}</code><noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 06:25, 20 March 2013
{{#switch:pair
|c|close =
|s|single
|o|open
|p|pair = <{{#switch:
|categorytree=categorytree
|charinsert=charinsert
|gallery=gallery
|hiero=hiero
|imagemap=imagemap
|inputbox=inputbox
|math=math
|nowiki=nowiki
|poem=poem
|pre=pre
|ref=ref
|references=references
|source=source
|syntaxhighlight=syntaxhighlight
|timeline=timeline
|#default=tag
}}{{#if:| {{{params}}}}} }}{{#switch:open
|c|close = |s|single = /> |o|open = > |p|pair = >...
}}{{#switch:open
|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. |