Template:!!/doc: Difference between revisions
m Bot: Migrating 3 interwiki links, now provided by Wikidata on d:Q6582455 |
No edit summary |
||
(28 intermediate revisions by 25 users not shown) | |||
Line 1: | Line 1: | ||
{{Documentation subpage}} |
{{Documentation subpage}} |
||
{{ |
{{High-risk|250,000+}} |
||
⚫ | This is an auxiliary [[Help:Template|template]] that allows one to encode "<code>||</code>" (two pipes or [[vertical bar]]s) within template parameters. |
||
⚫ | This is an auxiliary [[Help:Template|template]] that allows one to encode "<code>||</code>" (two pipes or [[vertical bar]]s) within template parameters. If this does not need to be interpreted as wikitext (i.e. table cell separators), it is better to use "<code>&#124;&#124;</code>". However the "<code>||</code>" delimiter for a [[Wikipedia:Manual of Style/Tables|wikitable]] has to be [[:Category:Character-substitution templates|escaped by a template]] if it is used within a template. |
||
⚫ | |||
⚫ | |||
There is usually no such problem with "<code>!!</code>" (exclamation marks). This problem only affects "<code>||</code>" (vertical bars) in conjunction with the [[m:Help:Parameter default]] mechanism within tables. However, in table rows starting with "<code>!</code>" there can be problems with "<code>!!</code>" being interpreted as a cell separator. Try replacing it with "<code>&#33;&#33;</code>". |
There is usually no such problem with "<code>!!</code>" (exclamation marks). This problem only affects "<code>||</code>" (vertical bars) in conjunction with the [[m:Help:Parameter default]] mechanism within tables. However, in table rows starting with "<code>!</code>" there can be problems with "<code>!!</code>" being interpreted as a cell separator. Try replacing it with "<code>&#33;&#33;</code>". |
||
This template cannot be [[Wikipedia: |
This template cannot be [[Wikipedia:Substitution|substituted]]. |
||
== Parameters == |
|||
<TemplateData>{ |
|||
⚫ | |||
"description": "Escapes double pipe characters within template parameters", |
|||
*[[Template:!]] |
|||
"params": {} |
|||
*[[Template:!-]] |
|||
}</TemplateData> |
|||
*[[Wikipedia:Qif conditionals]] |
|||
*{{tim|!}} |
|||
⚫ | |||
<!-- ADD CATEGORIES BELOW THIS LINE --> |
|||
⚫ | |||
[[Category:Wikipedia formatting and function templates|{{PAGENAME}}]] |
|||
⚫ | |||
<!-- ADD INTERWIKIS BELOW THIS LINE --> |
|||
{{Escape template list}} |
|||
⚫ | |||
*[[m:Help:Template#A parameter value containing a pipe character]] |
|||
*[[Help:Conditional tables]] |
|||
⚫ | |||
</noinclude> |
|||
[[Category:Character templates]] |
|||
[[Category:Templates with partial table wikitext]] |
|||
⚫ | |||
⚫ |
Latest revision as of 14:57, 4 January 2024
This is a documentation subpage for Template:!! It may contain usage information, categories and other content that is not part of the original template page. |
This template is used on 230,000+ pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. |
This is an auxiliary template that allows one to encode "||
" (two pipes or vertical bars) within template parameters. If this does not need to be interpreted as wikitext (i.e. table cell separators), it is better to use "||
". However the "||
" delimiter for a wikitable has to be escaped by a template if it is used within a template.
Notes
[edit]There is usually no such problem with "!!
" (exclamation marks). This problem only affects "||
" (vertical bars) in conjunction with the m:Help:Parameter default mechanism within tables. However, in table rows starting with "!
" there can be problems with "!!
" being interpreted as a cell separator. Try replacing it with "!!
".
This template cannot be substituted.
Parameters
[edit]Escapes double pipe characters within template parameters
Parameter | Description | Type | Status | |||
---|---|---|---|---|---|---|
No parameters specified |
See also
[edit]Template call (m for magic word) |
Output (delayed interpretation as wikimarkup) | HTML alternative (never interpreted as wikimarkup) |
---|---|---|
{{!}} (m) |
| | | or {{pipe}} |
{{=}} (m) |
= | = |
{{!!}} |
|| | || |
{{!(}} |
[ | [ |
{{)!}} |
] | ] |
{{!((}} |
[[ | [[ |
{{))!}} |
]] | ]] |
{{(}} |
{ | { |
{{)}} |
} | } |
{{((}} |
{{ | {{ |
{{))}} |
}} | }} |
{{(((}} |
{{{ | {{{ |
{{)))}} |
}}} | }}} |
{{(!}} |
{| | {| |
{{!+}} |
|+ | |+ |
{{!-}} |
|- | |- |
{{!)}} |
|} | |} |