Template:Tag: Difference between revisions

From Vigyanwiki
Template>Cydebot
m (Robot - Speedily moving category Formatting templates to Wikipedia formatting templates per CFD.)
m (1 revision imported)
 
(52 intermediate revisions by 20 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 class="mw-highlight" style="{{#if:{{{wrap|}}}||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  = {{#tag:span|&lrm;&lt;|class="p"}}{{#tag:span|{{{1|tag}}}|class="nt"}}{{#if:{{{params|}}}|&#32;{{{params}}}}}
# {{tag|ref}}
}}{{#switch:{{{2|pair}}}
# {{tag|ref|hello}}</pre>
|c|close  = {{{content|}}}
 
|s|single = &#32;{{#tag:span|&#47;&gt;|class="p"}}
# {{tag}}
|o|open  = {{#tag:span|&gt;|class="p"}}{{{content|}}}
# {{tag|ref}}
|p|pair  = {{#tag:span|&gt;|class="p"}}{{{content|...}}}
# {{tag|ref|hello}}
}}{{#switch:{{{2|pair}}}
 
|s|single
See also: {{tl|tag1}}.
|o|open  = <!--nothing-->
 
|c|close
[[Category:Wikipedia formatting templates|{{PAGENAME}}]]
|p|pair  = {{#tag:span|&lrm;&lt;&#47;|class="p"}}{{#tag:span|{{{1|tag}}}|class="nt"}}{{#tag:span|&gt;|class="p"}}
}}{{#if:{{{plain|}}}|
|</code>
}}<noinclude>
{{Documentation}}
</noinclude>
</noinclude>

Latest revision as of 18:25, 18 September 2023

‎<tag>...‎</tag>

Template documentation