Template:!!/doc: Difference between revisions
Edit Tags Tag: Reverted |
No edit summary |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 22: | Line 22: | ||
<includeonly>{{Sandbox other|| |
<includeonly>{{Sandbox other|| |
||
[[Category:Character |
[[Category:Character templates]] |
||
[[Category:Templates with partial table wikitext]] |
[[Category:Templates with partial table wikitext]] |
||
[[Category:Template namespace templates]] |
[[Category:Template namespace templates]] |
||
}}</includeonly> |
}}</includeonly> |
||
https://en.wikipedia.org/enwiki/w/index.php?title=Wikipedia:Request_an_account&action=edit |
|||
<templatestyles src="Template:Blockquote/styles.css" /><!-- |
|||
--><blockquote class="templatequote {{{class|}}}" {{#if:{{{style|}}}|style="{{{style}}}"}}>{{{text|{{{content|{{{quotetext|{{{quote|{{{1|<includeonly>{{error|Error: No text given for quotation (or equals sign used in the actual argument to an unnamed parameter)}}{{main other|[[Category:Pages incorrectly using the quote template]]}}</includeonly><noinclude>{{lorem ipsum}}</noinclude>}}}}}}}}}}}}}}}{{#if:{{{sign|}}}{{{cite|}}}{{{author|}}}{{{by|}}}{{{personquoted|}}}{{{source|}}}{{{ts|}}}{{{title|}}}{{{publication|}}}{{{quotesource|}}}{{{char|}}}{{{character|}}}{{{2|}}}{{{3|}}}{{{4|}}}{{{5|}}}|{{#if:{{{multiline|}}}|<nowiki />}} |
|||
<div class="templatequotecite">— <cite>{{#if:{{{char|{{{character|{{{5|}}}}}}}}}|{{{char|{{{character|{{{5|}}}}}}}}}, in }}{{Comma separated entries |
|||
| {{if empty|{{{sign|}}}|{{{cite|}}}|{{{author|}}}|{{{by|}}}|{{{personquoted|}}}|{{{2|}}}}} |
|||
| {{if empty|{{{title|}}}|{{{publication|}}}|{{{ts|}}}|{{{quotesource|}}}|{{{3|}}}}} |
|||
| {{if empty|{{{source|}}}|{{{4|}}}}} |
|||
}}</cite></div> |
|||
}}</blockquote>{{#if:{{{class|}}}{{{id|}}}{{{diff|}}}{{{4|}}}{{{5|}}}|{{main other|[[Category:Pages incorrectly using the Blockquote template]]}}}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using Blockquote template with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Blockquote]] with unknown parameter "_VALUE_"|ignoreblank=y| 1 | 2 | 3 | 4 | 5 | author | by | char | character | cite | class | content | diff | id | multiline | personquoted | publication | quote | quotesource | quotetext | sign | source | style | text | title | ts }}<noinclude> |
|||
{{documentation}}<!-- Add categories to the /doc subpage, not here! --> |
|||
</noinclude |
|||
{{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. 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. |
|||
[[Special:Contributions/192.183.71.195|192.183.71.195]] ([[User talk:192.183.71.195|talk]]) |
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) |
= | = |
{{!!}} |
|| | || |
{{!(}} |
[ | [ |
{{)!}} |
] | ] |
{{!((}} |
[[ | [[ |
{{))!}} |
]] | ]] |
{{(}} |
{ | { |
{{)}} |
} | } |
{{((}} |
{{ | {{ |
{{))}} |
}} | }} |
{{(((}} |
{{{ | {{{ |
{{)))}} |
}}} | }}} |
{{(!}} |
{| | {| |
{{!+}} |
|+ | |+ |
{{!-}} |
|- | |- |
{{!)}} |
|} | |} |