FANDOM

1,908 Pages

m (formatting)
m (1 revision)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
----
+
{{Documentation subpage}}
  +
<!-- DO NOT move the "pp-template" to the template page since the ! template should be as short as possible to save server load (to not break template inclusion limits). -->
  +
{{high-risk}}
  +
<br />
 
=== Usage ===
 
=== Usage ===
   
This is the <nowiki>{{!}}</nowiki> meta-template.
+
This is the {{tlx|!}}<!-- {{t<noinclude>n</noinclude><includeonly>l</includeonly>|!}} --> meta-template.
   
 
This is an auxiliary template allowing the encoding of "<code>|</code>" within template parameters. It is necessary if the character is used in wiki table syntax, or if the parameter is automatically wikilinked and you wish to use a pipe to specify different link text from the target page name. In other cases it is better to use "<code>&amp;#124;</code>".
 
This is an auxiliary template allowing the encoding of "<code>|</code>" within template parameters. It is necessary if the character is used in wiki table syntax, or if the parameter is automatically wikilinked and you wish to use a pipe to specify different link text from the target page name. In other cases it is better to use "<code>&amp;#124;</code>".
Line 10: Line 10:
 
Note that no special template is needed for "<code>!</code>" (exclamation mark).
 
Note that no special template is needed for "<code>!</code>" (exclamation mark).
   
This is a '''high risk template''', and it usually cannot be [[Wikipedia:Substitution|substituted]] (see conditions for substing on [[#Substitution|the section below]]).
+
This is a '''high-risk template''', and it usually can''not'' be [[Help:Substituting templates|substituted]] (see conditions for substituting in [[#Substitution|the section below]]).
   
 
=== Substitution ===
 
=== Substitution ===
The template page states that <nowiki>{{!}}</nowiki> cannot be substituted. That's not completely true because it is perfectly okay to [[Wikipedia:Substitution|substitute]] <nowiki>{{!}}</nowiki> as soon as an unescaped "'''<tt>|</tt>'''" works as expected, i.e. after substituting the template containing <nowiki>{{!}}</nowiki>, or after eliminating an
+
It is possible to [[Help:Substituting templates|substitute]] {{tlx|!}}<!-- <nowiki>{{!}}</nowiki> --> only if an unescaped "'''<code>|</code>'''" works as expected, i.e., after substituting the template containing <code><nowiki>{{!}}</nowiki></code>, or after eliminating an
[[mw:Help:Extension:ParserFunctions#.23if:|#if:]] containing <nowiki>{{!}}</nowiki>.
+
[[mw:Help:Extension:ParserFunctions#.23if|#if]] containing <code><nowiki>{{!}}</nowiki></code>.
   
<includeonly>[[Category:Templates|{{PAGENAME}}]]</includeonly>
+
=== See also ===
  +
* {{tl|!!}}
  +
* {{tl|!-}} creates |-
  +
<!-- * {{tl|-!}} -->
  +
<!-- * {{tl|broken bar}} -->
  +
<!-- * {{tn|'}} and related -->
  +
* [[wikipedia:Wikipedia:Qif conditionals|Wikipedia:Qif conditionals]]
  +
<!-- * {{tl|pipe}} - Note that this one looks like {{tlf|!}} but has a very different meaning for the MediaWiki parser and thus has different functionality. -->
  +
<!-- * {{tn|(}} creates { -->
  +
* {{tn|((}} creates {{
  +
<!-- * {{tl|!(}} -->
  +
<!-- * {{[[template:=|=]]}} -->
  +
* [[m:Help:Substitution]]
  +
  +
<includeonly>
  +
{{pp-template|small=yes}}
  +
[[Category:Template namespace templates|{{PAGENAME}}]]
  +
[[Category:Formatting and function templates|{{PAGENAME}}]]
  +
</includeonly><noinclude>{{pp-template|small=yes}}[[Category:Pages not to be tested on]]</noinclude>

Latest revision as of 17:36, June 12, 2011


Usage Edit

This is the {{!}} meta-template.

This is an auxiliary template allowing the encoding of "|" within template parameters. It is necessary if the character is used in wiki table syntax, or if the parameter is automatically wikilinked and you wish to use a pipe to specify different link text from the target page name. In other cases it is better to use "&#124;".

This template cannot be used for putting the character as text in a wiki table; in that case, again, "&#124;" can be used.

Note that no special template is needed for "!" (exclamation mark).

This is a high-risk template, and it usually cannot be substituted (see conditions for substituting in the section below).

Substitution Edit

It is possible to substitute {{!}} only if an unescaped "|" works as expected, i.e., after substituting the template containing {{!}}, or after eliminating an #if containing {{!}}.

See also Edit

Community content is available under CC-BY-SA unless otherwise noted.