Deprecated: Return type of Wikimedia\CSS\Objects\CSSObjectList::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2/neotokyowiki/public_html/wiki/extensions/TemplateStyles/vendor/wikimedia/css-sanitizer/src/Objects/CSSObjectList.php on line 117

Deprecated: Return type of Wikimedia\CSS\Objects\CSSObjectList::seek($offset) should either be compatible with SeekableIterator::seek(int $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2/neotokyowiki/public_html/wiki/extensions/TemplateStyles/vendor/wikimedia/css-sanitizer/src/Objects/CSSObjectList.php on line 124

Deprecated: Return type of Wikimedia\CSS\Objects\CSSObjectList::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2/neotokyowiki/public_html/wiki/extensions/TemplateStyles/vendor/wikimedia/css-sanitizer/src/Objects/CSSObjectList.php on line 132

Deprecated: Return type of Wikimedia\CSS\Objects\CSSObjectList::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2/neotokyowiki/public_html/wiki/extensions/TemplateStyles/vendor/wikimedia/css-sanitizer/src/Objects/CSSObjectList.php on line 142

Deprecated: Return type of Wikimedia\CSS\Objects\CSSObjectList::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2/neotokyowiki/public_html/wiki/extensions/TemplateStyles/vendor/wikimedia/css-sanitizer/src/Objects/CSSObjectList.php on line 137

Deprecated: Return type of Wikimedia\CSS\Objects\CSSObjectList::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2/neotokyowiki/public_html/wiki/extensions/TemplateStyles/vendor/wikimedia/css-sanitizer/src/Objects/CSSObjectList.php on line 152

Deprecated: Return type of Wikimedia\CSS\Objects\CSSObjectList::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2/neotokyowiki/public_html/wiki/extensions/TemplateStyles/vendor/wikimedia/css-sanitizer/src/Objects/CSSObjectList.php on line 147

Deprecated: Return type of Wikimedia\CSS\Objects\CSSObjectList::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2/neotokyowiki/public_html/wiki/extensions/TemplateStyles/vendor/wikimedia/css-sanitizer/src/Objects/CSSObjectList.php on line 159

Deprecated: Return type of Wikimedia\CSS\Objects\CSSObjectList::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2/neotokyowiki/public_html/wiki/extensions/TemplateStyles/vendor/wikimedia/css-sanitizer/src/Objects/CSSObjectList.php on line 164

Deprecated: Return type of Wikimedia\CSS\Objects\CSSObjectList::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2/neotokyowiki/public_html/wiki/extensions/TemplateStyles/vendor/wikimedia/css-sanitizer/src/Objects/CSSObjectList.php on line 175

Deprecated: Return type of Wikimedia\CSS\Objects\CSSObjectList::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2/neotokyowiki/public_html/wiki/extensions/TemplateStyles/vendor/wikimedia/css-sanitizer/src/Objects/CSSObjectList.php on line 192
Template:!/doc - Neo Tokyo Citizen Wiki

Template:!/doc

Template page
< Template:!
Revision as of 11:03, 5 December 2021 by https://neotokyowiki.com/index.php?title=>Gonnym
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Script error: No such module "Message box". Script error: No such module "Message box".

The magic word {{!}} is used to escape a vertical bar character "|" in wikitext markup, causing the parser to temporarily not interpret it as a special character.

This used to be a template, but for speed reasons, the MediaWiki parser was changed in July 2014 to instantly interpret {{!}} as "|" and ignore this template, making {{!}} a magic word. You can continue to use the code in exactly the same way as before.

Do not transclude the template, instead of using the magic word, by using template-specific syntax like {{Template:!}}, or by supplying a parameter, for example {{!|foo}}. The template transcludes as an error message: Error: The retired template {{!}} has been transcluded; see mw:Help:Magic words#Other for details. To fix this, use only the code {{!}} to generate the | character.

Usage

The code {{!}} is used to escape the vertical bar character, |, so that it is interpreted later than it would be otherwise. This is mostly useful when trying to include a table in a template. For example,

{{rquote|none|text=
{| class="wikitable"
|+ Caption text
|-
! Header text !! Header text
|-
| Example || Example
|-
| Example || Example
|}
}}

yields nonsense:

However escaping the bars with this magic word and similar templates gives:

{{rquote|none|<nowiki>
</nowiki>{{(!}} class{{=}}"wikitable"
{{!}}+ Caption text
{{!}}-
! Header text !! Header text
{{!}}-
{{!}} Example {{!!}} Example
{{!}}-
{{!}} Example {{!!}} Example
{{!}}}
}}

See also

Script error: No such module "Navbar".
Template call
(m for magic word)
Output (delayed interpretation as wikimarkup) HTML alternative (never interpreted as wikimarkup)
{{!}} (m) | &#124; or {{pipe}}
{{=}} = &#61;
{{!!}} || &#124;&#124;
{{!(}} [ &#91;
{{)!}} ] &#93;
{{!((}} [[ &#91;&#91;
{{))!}} ]] &#93;&#93;
{{(}} { &#123;
{{)}} } &#125;
{{((}} {{ &#123;&#123;
{{))}} }} &#125;&#125;
{{(((}} {{{ &#123;&#123;&#123;
{{)))}} }}} &#125;&#125;&#125;
{{(!}} {| &#123;&#124;
{{!-}} |- &#124;&#45;
{{!)}} |} &#124;&#125;

Documentation for the magic word may be found in the MediaWiki documentation at mw:Help:Magic words#Other.