Difference between revisions of "Template:Quotebox"

From CWCki
Jump to navigation Jump to search
m
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| class="{{{2}}}"; style="background: #E6F2FF; border:1px dotted #A3B1BF; color:{{{color|black}}}; padding:3px; margin-bottom:8px"
{| 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> <span style = "color:black">{{{time|}}}</span>
|+ align = "top"; style = "caption-side: top; text-align: left"| '''<span style = "color:black">{{{speaker|}}}'''</span>{{#if:{{{time|}}}|&nbsp;}}<span style = "color:black">{{{time|}}}</span>
| {{{1}}}
| {{{1}}}
|}<noinclude>
|}<noinclude>
Line 91: Line 91:
'''<pre>{{quotebox
'''<pre>{{quotebox
|speaker = Blue
|speaker = Blue
|time = 12:00&nsbp;AM
|time = 03&#8209;Jul&#8209;2021&nbsp;12:00&nbsp;AM
|background = #CEDAF2
|background = #CEDAF2
|border = #A3ACBF
|border = #A3ACBF
Line 99: Line 99:
{{quotebox
{{quotebox
|speaker = Blue
|speaker = Blue
|time = 12:00&nbsp;AM
|time = 03&#8209;Jul&#8209;2021&nbsp;12:00&nbsp;AM
|background = #CEDAF2
|background = #CEDAF2
|border = #A3ACBF
|border = #A3ACBF
|color = white
|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 <code>‑</code>, U+2011, coded by <code>&amp;#8209;</code> or <code>&amp;#x2011;</code>. Using regular hyphens can result in line breaks. Likewise, always use <code>&amp;nbsp;</code> for spaces, as regular spaces can also result in line breaks.


==Default Parameters==
==Default Parameters==

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}}
Blue 12:00 AM
Da-ba-de Da-ba-di
{{quotebox
|speaker = Blue
|time = 03‑Jul‑2021 12:00 AM
|background = #CEDAF2	
|border = #A3ACBF
|color = white
|Lol}}
Blue 03‑Jul‑2021 12:00 AM
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 &#8209; or &#x2011;. Using regular hyphens can result in line breaks. Likewise, always use &nbsp; 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: Blank
  • time - The time the message was sent can be indicated through this. Default: Blank
  • background - 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.