Difference between revisions of "Template:!/doc"

From Yugipedia
Jump to: navigation, search
(Character escape templates: add {{pound}}, use {{tn}})
(Character escape templates: no reason to use {{t}} instead of {{tl}})
Line 43: Line 43:
 
<td></td>
 
<td></td>
 
</tr><tr>
 
</tr><tr>
<td><code>{{t|!(}}</code></td>
+
<td><code>{{tl|!(}}</code></td>
 
<td><code>{{!(}}</code></td>
 
<td><code>{{!(}}</code></td>
 
<td></td>
 
<td></td>
 
</tr><tr>
 
</tr><tr>
<td><code>{{t|)!}}</code></td>
+
<td><code>{{tl|)!}}</code></td>
 
<td><code>{{)!}}</code></td>
 
<td><code>{{)!}}</code></td>
 
<td></td>
 
<td></td>
 
</tr><tr>
 
</tr><tr>
<td><code>{{t|!((}}</code></td>
+
<td><code>{{tl|!((}}</code></td>
 
<td><code>{{!((}}</code></td>
 
<td><code>{{!((}}</code></td>
 
<td></td>
 
<td></td>
 
</tr><tr>
 
</tr><tr>
<td><code>{{t|))!}}</code></td>
+
<td><code>{{tl|))!}}</code></td>
 
<td><code>{{))!}}</code></td>
 
<td><code>{{))!}}</code></td>
 
<td></td>
 
<td></td>
 
</tr><tr>
 
</tr><tr>
<td><code>{{t|(!}}</code></td>
+
<td><code>{{tl|(!}}</code></td>
 
<td><code><nowiki>{|</nowiki></code></td>
 
<td><code><nowiki>{|</nowiki></code></td>
 
<td></td>
 
<td></td>
 
</tr><tr>
 
</tr><tr>
<td><code>{{t|!-}}</code></td>
+
<td><code>{{tl|!-}}</code></td>
 
<td><code>{{!-}}</code></td>
 
<td><code>{{!-}}</code></td>
 
<td></td>
 
<td></td>
 
</tr><tr>
 
</tr><tr>
<td><code>{{t|!)}}</code></td>
+
<td><code>{{tl|!)}}</code></td>
 
<td><code>{{!)}}</code></td>
 
<td><code>{{!)}}</code></td>
 
<td></td>
 
<td></td>
 
</tr><tr>
 
</tr><tr>
<td><code>{{t|!-!}}</code></td>
+
<td><code>{{tl|!-!}}</code></td>
 
<td><code>{{!-!}}</code></td>
 
<td><code>{{!-!}}</code></td>
 
<td></td>
 
<td></td>
 
</tr><tr>
 
</tr><tr>
<td><code>{{t|((}}</code></td>
+
<td><code>{{tl|((}}</code></td>
 
<td><code>{{((}}</code></td>
 
<td><code>{{((}}</code></td>
 
<td></td>
 
<td></td>
 
</tr><tr>
 
</tr><tr>
<td><code>{{t|))}}</code></td>
+
<td><code>{{tl|))}}</code></td>
 
<td><code>{{))}}</code></td>
 
<td><code>{{))}}</code></td>
 
<td></td>
 
<td></td>
 
</tr><tr>
 
</tr><tr>
<td><code>{{t|(((}}</code></td>
+
<td><code>{{tl|(((}}</code></td>
 
<td><code>{{(((}}</code></td>
 
<td><code>{{(((}}</code></td>
 
<td></td>
 
<td></td>
 
</tr><tr>
 
</tr><tr>
<td><code>{{t|)))}}</code></td>
+
<td><code>{{tl|)))}}</code></td>
 
<td><code>{{)))}}</code></td>
 
<td><code>{{)))}}</code></td>
 
<td></td>
 
<td></td>

Revision as of 09:01, 26 December 2013

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

See also