Difference between revisions of "Template:Tag"

From D&D 5e
Jump to: navigation, search
m (44 revisions imported: Export Template:Quote from mediawiki.org)
 
(42 intermediate revisions by 17 users not shown)
Line 1: Line 1:
<code><nowiki><</nowiki>{{{1|tag}}}<nowiki>></nowiki>{{{2|}}}<nowiki></</nowiki>{{{1|tag}}}<nowiki>></nowiki></code><noinclude>
+
{{#if:{{{plain|}}}|
 
+
|<code style="white-space:nowrap">
----
+
}}{{#switch:{{{2|pair}}}
 
+
|c|close  = <!--nothing-->
This template simply provides a quick way to mention an XML-style tag in a preformatted way. Mainly used in discussion/help pages.
+
|s|single
 
+
|o|open
<pre># {{tag|ref}}
+
|p|pair  = &lt;{{{1|tag}}}{{#if:{{{params|}}}|&#32;{{{params}}}}}
# {{tag|ref|hello}}</pre>
+
}}{{#switch:{{{2|pair}}}
 
+
|c|close  = {{{content|}}}
# {{tag|ref}}
+
|s|single = &#32;&#47;&gt;
# {{tag|ref|hello}}
+
|o|open  = &gt;{{{content|}}}
 
+
|p|pair  = &gt;{{{content|...}}}
 +
}}{{#switch:{{{2|pair}}}
 +
|s|single
 +
|o|open  = <!--nothing-->
 +
|c|close
 +
|p|pair  = &lt;&#47;{{{1|tag}}}&gt;
 +
}}{{#if:{{{plain|}}}|
 +
|</code>
 +
}}<noinclude>
 +
{{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:|

|

}}

50px Template documentation[create]