Difference between revisions of "Template:!/doc"

From Yugipedia
Jump to: navigation, search
(Character escape templates: updates - why in God's name is it so freaking hard to link to {{=}}?!)
(more)
Line 30: Line 30:
 
<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>
 +
</tr><tr>
 +
<td><code>{{t|!(}}</code></td>
 +
<td><code>{{!(}}</code></td>
 +
<td></td>
 +
</tr><tr>
 +
<td><code>{{t|)!}}</code></td>
 +
<td><code>{{)!}}</code></td>
 +
<td></td>
 +
</tr><tr>
 +
<td><code>{{t|!((}}</code></td>
 +
<td><code>{{!((}}</code></td>
 +
<td></td>
 +
</tr><tr>
 +
<td><code>{{t|))!}}</code></td>
 +
<td><code>{{))!}}</code></td>
 +
<td></td>
 +
</tr><tr>
 +
<td><code>{{t|(!}}</code></td>
 +
<td><code><nowiki>{|</nowiki></code></td>
 +
<td></td>
 +
</tr><tr>
 +
<td><code>{{t|!-}}</code></td>
 +
<td><code>{{!-}}</code></td>
 +
<td></td>
 +
</tr><tr>
 +
<td><code>{{t|!)}}</code></td>
 +
<td><code>{{!)}}</code></td>
 +
<td></td>
 
</tr><tr>
 
</tr><tr>
 
<td><code>{{t|!-!}}</code></td>
 
<td><code>{{t|!-!}}</code></td>
Line 41: Line 69:
 
<td><code>{{t|))}}</code></td>
 
<td><code>{{t|))}}</code></td>
 
<td><code>{{))}}</code></td>
 
<td><code>{{))}}</code></td>
 +
<td></td>
 +
</tr><tr>
 +
<td><code>{{t|(((}}</code></td>
 +
<td><code>{{(((}}</code></td>
 +
<td></td>
 +
</tr><tr>
 +
<td><code>{{t|)))}}</code></td>
 +
<td><code>{{)))}}</code></td>
 
<td></td>
 
<td></td>
 
</tr>
 
</tr>

Revision as of 09:38, 6 October 2012

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
{{!}} |
{{(}} {
{{)}} }
{{'}} '
Template:= = Allows equals signs to be used in unnamed parameters.
{{!(}} [
{{)!}} ]
{{!((}} [[
{{))!}} ]]
{{(!}} {|
{{!-}} |-
{{!)}} |}
{{!-!}} |-|
{{((}} {{
{{))}} }}
{{(((}} {{{
{{)))}} }}}

See also