Difference between revisions of "Template:Quotebox"
m |
m |
||
(41 intermediate revisions by 10 users not shown) | |||
Line 1: | Line 1: | ||
{| class="{{{2}}}"; style="background:{{{background|#E6F2FF}}}; border:1px dotted {{{border|#A3B1BF}}}; color:{{{color|black}}}; padding:3px; margin-bottom:8px" | |||
|+ align = "top"; style = "caption-side: top; text-align: left"| '''<span style = "color:black">{{{speaker|}}}'''</span>{{#if:{{{time|}}}| }}<span style = "color:black">{{{time|}}}</span> | |||
| {{{1}}} | |||
|}<noinclude> | |||
__NOTOC__ | |||
{{usage|1=This is a formatting template used primarily to color code e-mail correspondence. Generally, e-mails from Chris are colored blue using [[Template:Quotebox]]. E-mails from the other party are colored red using [[Template:Quoteboxred]]. In the event that a third party is involved in the correspondence, e-mails from that person are colored green using [[Template: Quoteboxgreen]]. When using this template in an article, it is good practice to state in the article what the color represents. For example: "E-mails from Clyde Cash are in red." | |||
The format for using this template is as follows:<br /> | |||
'''<pre>{{quoteboxred|Dear Chris, | |||
Please stop touching me. You are gross. | |||
--A Gal-Pal}} | |||
{{quotebox|PLEASE do Not "Friend-Zone" me; it makes me feel SOO much Stress. | |||
Stay Safe, | |||
Christian Weston Chandler}} | |||
{{quoteboxred|It's over Chris. | |||
Leave me alone. I'm in love with one of the trolls now. Stop calling me.}} | |||
{{quoteboxgreen|Hey, Chris, | |||
It sure is awesome having sex with your Gal-Pal! Thanks for being a total loser so she'd dump your ass and have sex with me! | |||
Your friend, | |||
A troll}} | |||
{{quotebox|You Trollin' Stupid TROLL! | |||
I pray to God and Jesus that you DIE! | |||
Stay Safe, | |||
Christian Weston Chandler}}</pre>''' | |||
- Displays:{{quoteboxred|Dear Chris, | |||
Please stop touching me. You are gross. | |||
--A Gal-Pal}} | |||
{{quotebox|PLEASE do Not "Friend-Zone" me; it makes me feel SOO much Stress. | |||
Stay Safe, | |||
Christian Weston Chandler}} | |||
{{quoteboxred|It's over Chris. | |||
Leave me alone. I'm in love with one of the trolls now. Stop calling me.}} | |||
{{quoteboxgreen|Hey, Chris, | |||
It sure is awesome having sex with your Gal-Pal! Thanks for being a total loser so she'd dump your ass and have sex with me! | |||
Your friend, | |||
A troll}} | |||
{{quotebox|You Trollin' Stupid TROLL! | |||
I pray to God and Jesus that you DIE! | |||
Stay Safe, | |||
Christian Weston Chandler}} | |||
{{Navbox Quoteboxes}} | |||
==Customizability== | |||
Outside of using the standard colored quotebox templates, parameters may be added onto this default template to customize the colors of its background, border, and text. The writer of a message can also be added on for transcriptions of chats. | |||
The format for using this template is as follows:<br /> | |||
'''<pre>{{quotebox | |||
|speaker = Blue | |||
|time = 12:00 AM | |||
|background = #CEDAF2 | |||
|border = #A3ACBF | |||
|color = white | |||
|Da-ba-de Da-ba-di}}</pre> | |||
{{quotebox | |||
|speaker = Blue | |||
|time = 12:00 AM | |||
|background = #CEDAF2 | |||
|border = #A3ACBF | |||
|color = white | |||
|Da-ba-de Da-ba-di}} | |||
'''<pre>{{quotebox | |||
|speaker = Blue | |||
|time = 03‑Jul‑2021 12:00 AM | |||
|background = #CEDAF2 | |||
|border = #A3ACBF | |||
|color = white | |||
|Lol}}</pre> | |||
{{quotebox | |||
|speaker = Blue | |||
|time = 03‑Jul‑2021 12:00 AM | |||
|background = #CEDAF2 | |||
|border = #A3ACBF | |||
|color = white | |||
|Lol}} | |||
Note: When giving inputs to the parameters (outside of the actual text in the box), always use the non-breaking hyphen character <code>‑</code>, U+2011, coded by <code>&#8209;</code> or <code>&#x2011;</code>. Using regular hyphens can result in line breaks. Likewise, always use <code>&nbsp;</code> for spaces, as regular spaces can also result in line breaks. | |||
==Default Parameters== | |||
* <code>speaker</code> - The person who wrote the message can be indicated through this. Default: Blank | |||
* <code>time</code> - The time the message was sent can be indicated through this. Default: Blank | |||
* <code>background</code> - Background colour of the quotebox. Default: "#E6F2FF" | |||
* <code>border</code> - Colour for the quotebox border. Default: "#A3B1BF" | |||
* <code>color</code> - Text color for the quotebox text. Default: black (It's highly recommended just to use "black" or "white" for this parameter.) | |||
Note that you can use sRGB (rgb(255, 0, 0)), Hex triplet (#FF0000), or the name of the color (red) when entering colors in the template. The third method is discouraged, however. | |||
==Additional Help== | |||
For help on color combinations for this template, click [[User:PsychoNerd054/ColorTable|here]]. | |||
}} | |||
[[Category:Formatting and function templates|Quotebox, 1]]</noinclude> |
Latest revision as of 18:57, 18 January 2022
{{{1}}} |
Usage
These usage notes will not be included in articles bearing this template.
This is a formatting template used primarily to color code e-mail correspondence. Generally, e-mails from Chris are colored blue using Template:Quotebox. E-mails from the other party are colored red using Template:Quoteboxred. In the event that a third party is involved in the correspondence, e-mails from that person are colored green using Template: Quoteboxgreen. When using this template in an article, it is good practice to state in the article what the color represents. For example: "E-mails from Clyde Cash are in red."
The format for using this template is as follows:
{{quoteboxred|Dear Chris, Please stop touching me. You are gross. --A Gal-Pal}} {{quotebox|PLEASE do Not "Friend-Zone" me; it makes me feel SOO much Stress. Stay Safe, Christian Weston Chandler}} {{quoteboxred|It's over Chris. Leave me alone. I'm in love with one of the trolls now. Stop calling me.}} {{quoteboxgreen|Hey, Chris, It sure is awesome having sex with your Gal-Pal! Thanks for being a total loser so she'd dump your ass and have sex with me! Your friend, A troll}} {{quotebox|You Trollin' Stupid TROLL! I pray to God and Jesus that you DIE! Stay Safe, Christian Weston Chandler}}
- Displays:
Dear Chris,
Please stop touching me. You are gross. --A Gal-Pal |
PLEASE do Not "Friend-Zone" me; it makes me feel SOO much Stress.
Stay Safe, Christian Weston Chandler |
It's over Chris.
Leave me alone. I'm in love with one of the trolls now. Stop calling me. |
Hey, Chris,
It sure is awesome having sex with your Gal-Pal! Thanks for being a total loser so she'd dump your ass and have sex with me! Your friend, A troll |
You Trollin' Stupid TROLL!
I pray to God and Jesus that you DIE! Stay Safe, Christian Weston Chandler |
|
Customizability
Outside of using the standard colored quotebox templates, parameters may be added onto this default template to customize the colors of its background, border, and text. The writer of a message can also be added on for transcriptions of chats.
The format for using this template is as follows:
{{quotebox |speaker = Blue |time = 12:00 AM |background = #CEDAF2 |border = #A3ACBF |color = white |Da-ba-de Da-ba-di}}
Da-ba-de Da-ba-di |
{{quotebox |speaker = Blue |time = 03‑Jul‑2021 12:00 AM |background = #CEDAF2 |border = #A3ACBF |color = white |Lol}}
Lol |
Note: When giving inputs to the parameters (outside of the actual text in the box), always use the non-breaking hyphen character ‑
, U+2011, coded by ‑
or ‑
. Using regular hyphens can result in line breaks. Likewise, always use
for spaces, as regular spaces can also result in line breaks.
Default Parameters
speaker
- The person who wrote the message can be indicated through this. Default: Blanktime
- The time the message was sent can be indicated through this. Default: Blankbackground
- Background colour of the quotebox. Default: "#E6F2FF"border
- Colour for the quotebox border. Default: "#A3B1BF"color
- Text color for the quotebox text. Default: black (It's highly recommended just to use "black" or "white" for this parameter.)
Note that you can use sRGB (rgb(255, 0, 0)), Hex triplet (#FF0000), or the name of the color (red) when entering colors in the template. The third method is discouraged, however.
Additional Help
For help on color combinations for this template, click here.