This is Gentoo's testing wiki. It is a non-operational environment and its textual content is outdated.
Please visit our production wiki at https://wiki.gentoo.org
Template:!/doc
This page is a template. It contains some standardized, often used text, which can be transcluded inside other pages.
As this template is widely used in our wiki, it may be protected in which case only staff members can change it. Use the discussion page to propose enhancements or fixes, or to voice your opinion.
This template is used to insert a pipe (or vertical bar) character, |
, in a template call where it would normally be interpreted as a parameter separator.
As shown in the test cases below, it can be used to pass to a template:
- a literal pipe character;
- a pipe character that the template can use to form a piped link;
- table wiki-markup containing one or more pipe characters.
In most cases where a literal pipe character is desired, it is better to use the HTML entity |
instead (or the template {{!!}}
, which outputs this entity), since this is displayed as a pipe character and will never be interpreted as wiki markup.
Actually, this template has been deprecated by the addition, in MediaWiki version 1.24, of the "{{!}}" magic word. Because of this fact, nothing placed on the page Template:! has any effect on the result obtained by calling
{{!}}
, since the result is now "hardcoded" into the MediaWiki software itself. This means that template editors can no longer change the functionality of this template. Template users, however, can continue to use the template as they always have.Parameters
None.
Usage
{{!}}
If this does not have the desired effect, try {{!!}}
instead (which outputs the HTML entity |
instead of the character |
).
See the template's testcases:
Note: There is no sandbox version shown for this template because the effect of {{!}}
cannot be changed.
Correct
{{!!}}
instead.
{{cmd|mount {{!}} sort}}
user $
mount | sort
{{confused|Project:LLVM{{!}}LLVM}}
Not to be confused with LLVM.
{{tl|RootCmd{{!}}<nowiki>{{RootCmd|umount /mnt/gentoo}}</nowiki>}}
[[Template:RootCmd|<nowiki>{{RootCmd|umount /mnt/gentoo}}</nowiki>]]
(which might be better to use, as it is easier to understand than this template call). Note that this template call does not produce two sets of enclosing double-braces, as one may expect.
{{noop|{{{!}} class{{=}}"wikitable" {{!}} cell contents {{!}}} }}
cell contents |
{{{1}}}
(meaning its output is just its input with no additional processing). For more information, see a similar example at Wikimedia's Meta-Wiki and our own Help:Tables.Incorrect
{{!|anything}}
{| class="wikitable" | this {{!}} that |}
that |
{{!!}}
were used in place of {{!}}
. See that template's test cases.