NewsUnrealEdForumsFilesModsFragBU

Skin

BeyondUnreal


Personal tools

Difference between revisions of "Template:!/doc"

From Liandri Archives

Jump to: navigation, search
(initial description of the template)
 
(description of the template and note that the description is actually included from another page)
 
Line 1: Line 1:
This template consists only of a single pipe | character.
+
<noinclude>''This page documents the read-only [[Template:!]] page.''</noinclude>
 +
== Usage ==
 +
<includeonly>''This documentation was included from [[Template:!/doc]].''</includeonly>
  
It can be used in syntax constructs where the pipe character itself would have a special meaning. For example to pass a wiki-markup table as parameter to a template, the table's pipe characters need to be replaced by this template.
+
<pre>
 +
{{!}}
 +
</pre>
 +
 
 +
This is an auxiliary template allowing to encode "<code>|</code>" within template and parser function parameters. To get the symbol in final output this template is unnecessary, better use "<code>&amp;#124;</code>" which is rendered the same. Use this template in parameter values of [http://meta.wikimedia.org/wiki/Help:Template templates] and [http://meta.wikimedia.org/wiki/Help:Parser_function parser functions] of which the result is used in [http://meta.wikimedia.org/wiki/Help:Table table] syntax, since this requires the "real" pipe character.  
 +
 
 +
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.
 +
 
 +
Note that the table syntax code "<code>!</code>" (exclamation mark) can be used directly in parameter values, so for that a template like this is not needed.

Latest revision as of 16:45, 28 December 2007

This page documents the read-only Template:! page.

Usage

{{!}}

This is an auxiliary template allowing to encode "|" within template and parser function parameters. To get the symbol in final output this template is unnecessary, better use "&#124;" which is rendered the same. Use this template in parameter values of templates and parser functions of which the result is used in table syntax, since this requires the "real" pipe character.

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 the table syntax code "!" (exclamation mark) can be used directly in parameter values, so for that a template like this is not needed.