Difference between revisions of "Template:Tag"

From BTAWiki
Jump to navigation Jump to search
(use <tt>)
m (49 revisions imported)
 
(33 intermediate revisions by 12 users not shown)
Line 1: Line 1:
<tt><nowiki><</nowiki>{{{1|tag}}}<nowiki>></nowiki>{{{2|}}}<nowiki></</nowiki>{{{1|tag}}}<nowiki>></nowiki></tt><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}}
+
|p|pair  = &lt;{{{1|tag}}}{{#if:{{{params|}}}|&#32;{{{params}}}}}
# {{tag|ref}}
+
}}{{#switch:{{{2|pair}}}
# {{tag|ref|hello}}</pre>
+
|c|close  = {{{content|}}}
 
+
|s|single = &#32;&#47;&gt;
# {{tag}}
+
|o|open  = &gt;{{{content|}}}
# {{tag|ref}}
+
|p|pair  = &gt;{{{content|...}}}
# {{tag|ref|hello}}
+
}}{{#switch:{{{2|pair}}}
 
+
|s|single
See also: {{tl|tag1}}.
+
|o|open  = <!--nothing-->
 
+
|c|close
[[Category:Wikipedia formatting and function templates|{{PAGENAME}}]]
+
|p|pair  = &lt;&#47;{{{1|tag}}}&gt;
 +
}}{{#if:{{{plain|}}}|
 +
|</code>
 +
}}<noinclude>
 +
{{documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 02:07, 13 November 2020

<tag>...</tag> Script error: No such module "documentation".