Difference between revisions of "Template:!/doc"

From Arkaz
Jump to: navigation, search
(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}}
<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 load (to not break template inclusion limits). -->
+
<!-- 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). -->
{{ombox
+
<includeonly>{{pp-template|small=yes}}
| type = content
+
{{high-risk|4,000,000+}}</includeonly>
| text = '''This template is used on [[Special:MostLinkedTemplates| 3,000,000+ pages]], and is the single most used template on the English Wikipedia.''' <br> To avoid any disruptions and to save server load, any changes should first be tested in this template's [[/sandbox]] or [[/testcases]] subpage, or in your own [[Special:Mypage/Test1|user space]]. The tested changes can then be added in one single edit to this template. As a courtesy to other users, please discuss any changes at the [[{{TALKPAGENAME}}|talk page]] before implementing them.
 
}}
 
</includeonly>
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
 
  
This is the {{tl|!}} meta-template.
+
=== Usage ===
  
This is an auxiliary template allowing to encode "<code>|</code>"
+
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>&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>".  
  
 
This template cannot be used for putting the character as text in a wiki table; in that case, again,  "<code>&amp;#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>&amp;#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 [[Template talk:!#Usage|the talk page]]).
+
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>
<!-- ADD CATEGORIES BELOW THIS LINE -->
 
 
[[Category:Template namespace templates|{{PAGENAME}}]]
 
[[Category:Template namespace templates|{{PAGENAME}}]]
 
[[Category:Wikipedia formatting and function templates|{{PAGENAME}}]]
 
[[Category:Wikipedia formatting and function templates|{{PAGENAME}}]]
  
<!-- ADD INTERWIKIS BELOW THIS LINE -->
+
[[simple:Template:!]]
 
 
 
</includeonly>
 
</includeonly>

Latest revision as of 09:13, 2 December 2009


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 "&#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 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