Difference between revisions of "Template:Xtag"

From D&D 5e
Jump to: navigation, search
(pre)
m (15 revisions imported: Export Template:Quote from mediawiki.org)
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<code style="white-space:nowrap;">{{#switch:{{{1|}}}
+
<code style="white-space:nowrap;">{{#switch:{{{2|pair}}}
  |categorytree=[[mw:Extension:CategoryTree|&lt;categorytree>]]
+
|c|close  = <!--nothing-->
  |charinsert=[[mw:Extension:CharInsert|&lt;charinsert>]]
+
|s|single
  |gallery=[[Wikipedia:Gallery tag|&lt;gallery>]]
+
|o|open
  |hiero=[[mw:Extension:WikiHiero|&lt;hiero>]]
+
|p|pair  = &lt;{{#switch:{{{1|}}}
  |imagemap=[[mw:Extension:ImageMap|&lt;imagemap>]]
+
  |categorytree=[[mw:Extension:CategoryTree|categorytree]]
  |inputbox=[[mw:Extension:InputBox|&lt;inputbox>]]
+
  |charinsert=[[mw:Extension:CharInsert|charinsert]]
  |math=[[mw:Extension:Math|&lt;math>]]
+
  |gallery=[[Help:Gallery tag|gallery]]
  |nowiki=[[Help:Nowiki|&lt;nowiki>]]
+
  |hiero=[[mw:Extension:WikiHiero|hiero]]
  |poem=[[mw:Extension:Poem|&lt;poem>]]
+
  |imagemap=[[mw:Extension:ImageMap|imagemap]]
  |pre=[[WP:PRE|&lt;pre>]]
+
  |inputbox=[[mw:Extension:InputBox|inputbox]]
  |ref=[[mw:Extension:Cite/Cite.php|&lt;ref>]]
+
  |math=[[mw:Extension:Math|math]]
  |references=[[mw:Extension:Cite/Cite.php|&lt;references>]]
+
  |nowiki=[[Help:Nowiki|nowiki]]
  |source=&lt;source>
+
  |poem=[[mw:Extension:Poem|poem]]
  |syntaxhighlight=[[mw:Extension:SyntaxHighlight|&lt;syntaxhighlight>]]
+
  |pre=[[WP:PRE|pre]]
  |timeline=[[mw:Extension:EasyTimeline|&lt;timeline>]]
+
  |ref=[[mw:Extension:Cite/Cite.php|ref]]
 +
  |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|}}}|&#32;{{{params}}}}}
 +
}}{{#switch:{{{2|open}}}
 +
|c|close  = {{{content|}}}
 +
|s|single = &#32;&#47;&gt;
 +
|o|open  = &gt;{{{content|}}}
 +
|p|pair  = &gt;{{{content|...}}}
 +
}}{{#switch:{{{2|open}}}
 +
|s|single
 +
|o|open  = <!--nothing-->
 +
|c|close
 +
|p|pair  = &lt;&#47;{{{1|tag}}}&gt;
 
}}</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>

}}

50px Template documentation[create]