Template:Template doc
{{#ifeq:template doc |doc
|
{{#ifeq:show |show
| {{
{{#switch:
{{#if:
|
| {{#if:
|
{{#ifeq:|
| talk
|
}}
|
{{#ifeq:template|template talk
| talk
| template
}}
}}
}}
| main | = ambox | talk = tmbox | user = ombox | wikipedia = ombox | file | image = imbox | mediawiki = ombox | template = ombox | help = ombox | category = cmbox | portal = ombox | book = ombox | other | #default = ombox
}}
| type = notice
| image =
| imageright =
| style = margin-bottom:1.0em;
| textstyle =
| text = This is a documentation subpage for Template:Template doc.
It contains usage information, categories and other content that is not part of the original {{#if: |{{{text2}}} |{{#if: |{{{text1}}} |{{#ifeq:Template |User |template template page |{{#if:Template |template page|article}}}}}}}}.
| small =
| smallimage =
| smallimageright =
| smalltext =
}}
}}{{#if: |
| {{#ifexist:Template:Template doc
| [[Category:{{#switch:Template |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]]
|
}}
}}
|
}}
Usage
This is the {{!}} meta-template.
This is an auxiliary template allowing the encoding of "|" within template parameters. It is necessary if the character is used in wiki table syntax, or if the parameter is automatically wikilinked and you wish to use a pipe to specify different link text from the target page name. In other cases it is better to use "|".
This template cannot be used for putting the character as text in a wiki table; in that case, again, "|" can be used.
Note that no special template is needed for "!" (exclamation mark).
This is a high risk template, and it usually cannot be substituted (see conditions for substing on the section below).
Substitution
It is possible to substitute {{!}} only if an unescaped "|" works as expected, i.e. after substituting the template containing {{!}}, or after eliminating an
#if containing {{!}}.
See also
- {{!!}}
- {{!-}} creates |-
- {{-!}}
- {{broken bar}}
- {{'}} and related
- Wikipedia:Qif conditionals
- {{pipe}} - Note that this one looks like {{{{#if:!|!| tlf|...}}{{#ifeq:x|| |{{{2}}} | }}{{#ifeq:x|| |{{{3}}} | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}} but has a very different meaning for the MediaWiki parser and thus has different functionality.
- {{(}} creates {
- {{((}} creates {{
- {{!(}}
- {{=}}