Template:!!/doc

From Xenharmonic Wiki
Jump to navigation Jump to search
English Wikipedia has an article on:

This is an auxiliary template that allows one to encode "||" (two pipes or vertical bars). There is usually no such problem with exclamation marks themselves, but in table rows starting with "!" there can be problems with "!" and "!!" being interpreted as a cell separator. For table rows or cells starting with "!" or "!!", it is better to use the corresponding HTML entity for exclamation marks that are not cell separators (i.e. ! or !).

This template extends the magic word {{!}}, which is used to escape a single vertical bar character.

Template calls for escaping characters
Template call* Output** HTML alternative***
{{!}} (m) | | or {{pipe}}
{{=}} (m) = =
{{!!}} || ||
{{!(}} [ [ or {{lbrack}}
{{)!}} ] ] or {{rbrack}}
{{!((}} [[ [[
{{))!}} ]] ]]
{{(}} { {
{{)}} } }
{{((}} {{ {{
{{))}} }} }}
{{(((}} {{{ {{{
{{)))}} }}} }}}
{{(!}} {| {|
{{!+}} |+ |+
{{!-}} |- |-
{{!)}} |} |}
{{'}} ' '
{{colon}} : :
{{^(}} < &#60; or &lt;
{{)^}} > &#62; or &gt;
{{**}} * &#42;
This table: ViewTalkEdit

* m for magic word

** Delayed interpretation as Wiki markup

*** Never interpreted as Wiki markup