Difference between revisions of "Template:!/doc"

From Yugipedia
Jump to: navigation, search
(Character escape templates: no reason to use {{t}} instead of {{tl}})
(Character escape templates: cheating? yes... but it works!)
Line 35: Line 35:
 
<td></td>
 
<td></td>
 
</tr><tr>
 
</tr><tr>
<td>Template:=</td><!-- this one is IMPOSSIBLE to link to =P -->
+
<td><code>{{[[Template:Equals|=]]}}</code></td>
 
<td><code>{{=}}</code></td>
 
<td><code>{{=}}</code></td>
 
<td>Allows equals signs to be used in unnamed parameters.</td>
 
<td>Allows equals signs to be used in unnamed parameters.</td>

Revision as of 14:21, 22 February 2014

This is a metatemplate intended to escape a character or group of characters in other templates that would otherwise be difficult to use with wikimarkup. The canonical example of this is the pipe character (|), which is heavily used in ParserFunctions. See wikipedia:Template:! for more information and examples.

Character escape templates

Template Output Notes
{{!}} |
{{(}} {
{{)}} }
{{'}} '
{{colon}} :
{{;}} ;
{{=}} = Allows equals signs to be used in unnamed parameters.
{{pound}} #
{{!(}} [
{{)!}} ]
{{!((}} [[
{{))!}} ]]
{{(!}} {|
{{!-}} |-
{{!)}} |}
{{!-!}} |-|
{{((}} {{
{{))}} }}
{{(((}} {{{
{{)))}} }}}

See also