Template:Talk quote inline brackets/sandbox: Difference between revisions

Content deleted Content added
Created page with '<ins style="color:{{str right|{{dec2hex|{{#expr: {{hex2dec|0x{{{color|202122}}}}} mod 16777216}} }}|2}}#;font-face:Sans;font-style:normal;text-decoration-line: n...'
 
Update sandbox from main template
Tag: Replaced
 
(4 intermediate revisions by one other user not shown)
Line 1:
<ins style="color:{{str right|{{dec2hex|{{#expr: {{hex2dec|0x{{{color|202122}}}}} mod 16777216}} }}|2}}#;font-facefamily:Sanssans-serif;font-style:normal;text-decoration-line: none" title="{{{htmltitle|{{{2|text differs from original}}}|text differs from original}}}">&lsqb;{{{btext|{{{21|template text}}}|template text}}}&rsqb;</ins><noinclude>
{{documentation|content=}}
</templatedata></noinclude>
'''This template should not be used in articles. It should only be used on talk pages and project pages.'''
 
This template is intended to be used inside of {{tlx|Talk quote inline}} and its variants, for most of the purposes described at {{format linkr|square bracket#Uses in published text}}, indicating text which differs from the original quoted material, such as paraphrasing, changes in [[capitalization]], and [[parenthesis (rhetoric)]].
 
It wraps the first unnamed parameter, or {{para|btext}}, in square brackets and an HTML <code>&lt;ins&gt;...&lt;/ins&gt;</code> element with the CSS properties,
<syntaxhighlight lang="css">
color: #202122;
font-face: Sans;
font-style: normal;
text-decoration-line: none;
</syntaxhighlight>to make the bracketed text appear with similar formatting to normal talk page text <u>in the default [[Wikipedia:Vector|Vector]] skin</u>. A [[Web colors#Hex triplet|web color hex triplet]] can be passed through the {{para|color}} parameter to change the color to match a different skin, or for other purposes.
 
Additionally, a {{para|title|text differs from original}} attribute is set on the <code>&lt;ins&gt;...&lt;/ins&gt;</code> element, which in desktop browsers will produce a [[Mouseover#Tooltip|tooltip]] on mouseover. Alternative title text can be set with the second unnamed template parameter or {{para|htmltitle}}.
 
==== Aliases ====
* <span class="plainlinks">[{{fullurl:Special:WhatLinksHere/Template:Talk quote inline brackets|hidetrans=1&hidelinks=1&limit=500}} Also known as...]</span> – list of templates that redirect here and may also be used
 
{{Quotation templates}}
 
[[Category:Talk namespace quotation templates]]
 
}}<templatedata>
{
"params": {
"btext": {
"aliases": [
"1"
],
"label": "Bracketed text",
"description": "Text to be bracketed and formatted",
"type": "content",
"default": "template text",
"suggested": true
},
"htmltitle": {
"aliases": [
"2"
],
"label": "HTML title",
"description": "Value of the “title” HTML attribute, producing a tooltip upon mouseover in most desktop web browsers",
"type": "content",
"default": "text differs from original"
},
"color": {
"label": "Text color",
"description": "Value changes the text color to match a Wikipedia skin other than “Vector”, or for other purposes",
"type": "number",
"default": "202122"
}
},
"description": "This template is intended to be used inside of {{Talk quote inline}} and its variants, for most common applications of square brackets within quoted text: indicating added text which is not part of the quote, such as paraphrasing, changes in capitalization, parenthesis, and other purposes.",
"format": "inline"
}
</templatedata></noinclude>