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 {{=}}?!)
(and {{(-}})
 
(11 intermediate revisions by 3 users not shown)
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>
 
</tr><tr>
 
</tr><tr>
<td>Template:=</td><!-- this one is IMPOSSIBLE to link to =P -->
+
<td><code>{{tl|colon}}</code></td>
 +
<td><code>{{colon}}</code></td>
 +
<td></td>
 +
</tr><tr>
 +
<td><code>{{tn|;}}</code></td>
 +
<td><code>{{;}}</code></td>
 +
<td></td>
 +
</tr><tr>
 +
<td><code>{{tn|&#61;}}</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>
 
</tr><tr>
 
</tr><tr>
<td><code>{{t|!-!}}</code></td>
+
<td><code>{{tl|pound}}</code></td>
 +
<td><code>{{pound}}</code></td>
 +
<td></td>
 +
</tr><tr>
 +
<td><code>{{tl|(-}}</code></td>
 +
<td><code>{{(-}}</code></td>
 +
<td>Inserts extra padding after an opening parenthesis, when the parenthesized content is italicized but the parentheses are not.</td>
 +
</tr><tr>
 +
<td><code>{{tl|-)}}</code></td>
 +
<td><code>{{-)}}</code></td>
 +
<td>Inserts extra padding before a closing parenthesis, when the parenthesized content is italicized but the parentheses are not.</td>
 +
</tr><tr>
 +
<td><code>{{tl|!(}}</code></td>
 +
<td><code>{{!(}}</code></td>
 +
<td></td>
 +
</tr><tr>
 +
<td><code>{{tl|)!}}</code></td>
 +
<td><code>{{)!}}</code></td>
 +
<td></td>
 +
</tr><tr>
 +
<td><code>{{tl|!((}}</code></td>
 +
<td><code>{{!((}}</code></td>
 +
<td></td>
 +
</tr><tr>
 +
<td><code>{{tl|))!}}</code></td>
 +
<td><code>{{))!}}</code></td>
 +
<td></td>
 +
</tr><tr>
 +
<td><code>{{tl|(!}}</code></td>
 +
<td><code><nowiki>{|</nowiki></code></td>
 +
<td></td>
 +
</tr><tr>
 +
<td><code>{{tl|!-}}</code></td>
 +
<td><code>{{!-}}</code></td>
 +
<td></td>
 +
</tr><tr>
 +
<td><code>{{tl|!)}}</code></td>
 +
<td><code>{{!)}}</code></td>
 +
<td></td>
 +
</tr><tr>
 +
<td><code>{{tl|!!}}</code></td>
 +
<td><code>{{!!}}</code></td>
 +
<td></td>
 +
</tr><tr>
 +
<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>
 +
</tr><tr>
 +
<td><code>{{tl|(((}}</code></td>
 +
<td><code>{{(((}}</code></td>
 +
<td></td>
 +
</tr><tr>
 +
<td><code>{{tl|)))}}</code></td>
 +
<td><code>{{)))}}</code></td>
 
<td></td>
 
<td></td>
 
</tr>
 
</tr>
Line 52: Line 112:
 
<includeonly>
 
<includeonly>
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Character escape templates|{{PAGENAME}}]]
+
[[Category:Character escape templates]]
 
</includeonly>
 
</includeonly>

Latest revision as of 17:25, 10 July 2016

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[edit]

Template Output Notes
{{!}} |
{{(}} {
{{)}} }
{{'}} '
{{colon}} :
{{;}} ;
= Allows equals signs to be used in unnamed parameters.
{{pound}} #
{{(-}} ( Inserts extra padding after an opening parenthesis, when the parenthesized content is italicized but the parentheses are not.
{{-)}} ) Inserts extra padding before a closing parenthesis, when the parenthesized content is italicized but the parentheses are not.
{{!(}} [
{{)!}} ]
{{!((}} [[
{{))!}} ]]
{{(!}} {|
{{!-}} |-
{{!)}} |}
{{!!}} ||
{{!-!}} |-|
{{((}} {{
{{))}} }}
{{(((}} {{{
{{)))}} }}}

See also[edit]