Jump to content

Template:!!/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
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-substitution templates]]
[[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">—&thinsp;<cite>{{#if:{{{char|{{{character|{{{5|}}}}}}}}}|{{{char|{{{character|{{{5|}}}}}}}}}, in&#32;}}{{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>&amp;#124;&amp;#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 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 "&#124;&#124;". 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 "&#33;&#33;".

This template cannot be substituted.

Parameters

[edit]

Escapes double pipe characters within template parameters

Template parameters

ParameterDescriptionTypeStatus
No parameters specified

See also

[edit]
Template call
(m for magic word)
Output (delayed interpretation as wikimarkup) HTML alternative (never interpreted as wikimarkup)
{{!}} (m) | &#124; or {{pipe}}
{{=}} (m) = &#61;
{{!!}} || &#124;&#124;
{{!(}} [ &#91;
{{)!}} ] &#93;
{{!((}} [[ &#91;&#91;
{{))!}} ]] &#93;&#93;
{{(}} { &#123;
{{)}} } &#125;
{{((}} {{ &#123;&#123;
{{))}} }} &#125;&#125;
{{(((}} {{{ &#123;&#123;&#123;
{{)))}} }}} &#125;&#125;&#125;
{{(!}} {| &#123;&#124;
{{!+}} |+ &#124;&#43;
{{!-}} |- &#124;&#45;
{{!)}} |} &#124;&#125;