Difference between revisions of "Template:!/doc"
(New page: {{Documentation subpage}} <includeonly>{{pp-template|small=yes}}<!-- DO NOT move the "pp-template" to the template page since the ! template should be as short as possible to save server l...) |
|||
Line 1: | Line 1: | ||
{{Documentation subpage}} | {{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). --> | |
− | {{ | + | <includeonly>{{pp-template|small=yes}} |
− | | | + | {{high-risk|4,000,000+}}</includeonly> |
− | | | ||
− | } | ||
− | </includeonly | ||
− | |||
− | + | === Usage === | |
− | This is an auxiliary template allowing | + | This is the {{t<noinclude>n</noinclude><includeonly>l</includeonly>|!}} meta-template. |
− | 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>&#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>&#124;</code>". | ||
This template cannot be used for putting the character as text in a wiki table; in that case, again, "<code>&#124;</code>" can be used. | This template cannot be used for putting the character as text in a wiki table; in that case, again, "<code>&#124;</code>" can be used. | ||
Line 17: | Line 14: | ||
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 [[WP:SUBST|substituted]] (see conditions for substing on [[ | + | This is a '''high risk template''', and it usually cannot be [[WP:SUBST|substituted]] (see conditions for substing on [[#Substitution|the section below]]). |
+ | |||
+ | === Substitution === | ||
+ | It is possible to [[Wikipedia:Substitution|substitute]] <nowiki>{{!}}</nowiki> only if an unescaped "'''<tt>|</tt>'''" works as expected, i.e. after substituting the template containing <nowiki>{{!}}</nowiki>, or after eliminating an | ||
+ | [[mw:Help:Extension:ParserFunctions#.23if|#if]] containing <nowiki>{{!}}</nowiki>. | ||
=== See also === | === See also === | ||
− | |||
* {{tl|!!}} | * {{tl|!!}} | ||
* {{tl|!-}} | * {{tl|!-}} | ||
Line 28: | Line 28: | ||
* [[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. | * {{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|(}} | ||
+ | * {{tl|!(}} | ||
<includeonly> | <includeonly> | ||
− | |||
[[Category:Template namespace templates|{{PAGENAME}}]] | [[Category:Template namespace templates|{{PAGENAME}}]] | ||
[[Category:Wikipedia formatting and function templates|{{PAGENAME}}]] | [[Category:Wikipedia formatting and function templates|{{PAGENAME}}]] | ||
− | + | [[simple:Template:!]] | |
− | |||
</includeonly> | </includeonly> |
Latest revision as of 09:13, 2 December 2009
40px | This is a documentation subpage for Template:! (see that page for the template itself). It contains usage information, categories and other content that is not part of the original template page. |
Usage
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 "|
".
This template cannot be used for putting the character as text in a wiki table; in that case, again, "|
" 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 substing on the section below).
Substitution
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
- {{!!}}
- {{!-}}
- {{-!}}
- {{broken bar}}
- {{'}} and related
- Wikipedia:Qif conditionals
- {{pipe}} - Note that this one looks like {{!}} but has a very different meaning for the MediaWiki parser and thus has different functionality.
- {{(}}
- {{!(}}