Difference between revisions of "Template:Xtag"
From D&D 5e
(ce) |
m (15 revisions imported: Export Template:Quote from mediawiki.org) |
||
(12 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <code style="white-space:nowrap;"> | + | <code style="white-space:nowrap;">{{#switch:{{{2|pair}}} |
− | {{#switch:{{{1|}}} | + | |c|close = <!--nothing--> |
− | |categorytree=[[mw:Extension:CategoryTree| | + | |s|single |
− | |charinsert=[[mw:Extension:CharInsert| | + | |o|open |
− | |gallery=[[ | + | |p|pair = <{{#switch:{{{1|}}} |
− | |hiero=[[mw:Extension:WikiHiero| | + | |categorytree=[[mw:Extension:CategoryTree|categorytree]] |
− | |imagemap=[[mw:Extension:ImageMap| | + | |charinsert=[[mw:Extension:CharInsert|charinsert]] |
− | |inputbox=[[mw:Extension:InputBox| | + | |gallery=[[Help:Gallery tag|gallery]] |
− | |math=[[mw:Extension:Math| | + | |hiero=[[mw:Extension:WikiHiero|hiero]] |
− | |nowiki= | + | |imagemap=[[mw:Extension:ImageMap|imagemap]] |
− | |poem=[[mw:Extension:Poem| | + | |inputbox=[[mw:Extension:InputBox|inputbox]] |
− | |pre= | + | |math=[[mw:Extension:Math|math]] |
− | |ref=[[mw:Extension:Cite/Cite.php| | + | |nowiki=[[Help:Nowiki|nowiki]] |
− | |references=[[mw:Extension:Cite/Cite.php| | + | |poem=[[mw:Extension:Poem|poem]] |
− | |source= | + | |pre=[[WP:PRE|pre]] |
− | |syntaxhighlight=[[mw:Extension:SyntaxHighlight| | + | |ref=[[mw:Extension:Cite/Cite.php|ref]] |
− | |timeline=[[mw:Extension:EasyTimeline|< | + | |references=[[mw:Extension:Cite/Cite.php|references]] |
+ | |section=[[mw:Extension:Labeled_Section_Transclusion|section]] | ||
+ | |score=[[Help:Score|score]] | ||
+ | |source=[[mw:Extension:SyntaxHighlight|source]] | ||
+ | |syntaxhighlight=[[mw:Extension:SyntaxHighlight|syntaxhighlight]] | ||
+ | |templatedata=[[Wikipedia:VisualEditor/TemplateData tutorial|templatedata]] | ||
+ | |timeline=[[mw:Extension:EasyTimeline|timeline]] | ||
+ | |#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> | }}</code><noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Latest revision as of 21:41, 28 January 2018
{{#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 |section=section |score=score |source=source |syntaxhighlight=syntaxhighlight |templatedata=templatedata |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. |