Difference between revisions of "Template:!/doc"

From Yugipedia
Jump to: navigation, search
(Character escape templates: add {{colon}}/{{;}})
(Character escape templates: add {{pound}}, use {{tn}})
Line 11: Line 11:
 
<th scope="col">Notes</th>
 
<th scope="col">Notes</th>
 
</tr><tr>
 
</tr><tr>
<td><code>{[[Template:!|{!}]]}</code></td>
+
<td><code>{{tn|!}}</code></td>
 
<td><code>{{!}}</code></td>
 
<td><code>{{!}}</code></td>
 
<td></td>
 
<td></td>
 
</tr><tr>
 
</tr><tr>
<td><code>{[[Template:(|{(}]]}</code></td>
+
<td><code>{{tn|(}}</code></td>
 
<td><code>{{(}}</code></td>
 
<td><code>{{(}}</code></td>
 
<td></td>
 
<td></td>
 
</tr><tr>
 
</tr><tr>
<td><code>{[[Template:)|{)}]]}</code></td>
+
<td><code>{{tn|)}}</code></td>
 
<td><code>{{)}}</code></td>
 
<td><code>{{)}}</code></td>
 
<td></td>
 
<td></td>
 
</tr><tr>
 
</tr><tr>
<td><code>{[[Template:'|{'}]]}</code></td>
+
<td><code>{{tn|'}}</code></td>
 
<td><code>{{'}}</code></td>
 
<td><code>{{'}}</code></td>
 
<td></td>
 
<td></td>
Line 31: Line 31:
 
<td></td>
 
<td></td>
 
</tr><tr>
 
</tr><tr>
<td><code>{[[Template:;|{;}]]}</code></td>
+
<td><code>{{tn|;}}</code></td>
 
<td><code>{{;}}</code></td>
 
<td><code>{{;}}</code></td>
 
<td></td>
 
<td></td>
Line 38: Line 38:
 
<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>{{tl|pound}}</code></td>
 +
<td><code>{{pound}}</code></td>
 +
<td></td>
 
</tr><tr>
 
</tr><tr>
 
<td><code>{{t|!(}}</code></td>
 
<td><code>{{t|!(}}</code></td>

Revision as of 09:00, 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