Difference between revisions of "Template:Quotebox"

From CWCki
Jump to navigation Jump to search
m
 
(26 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| class="{{{2}}}"; style="background:{{{background|{{{bg|#E6F2FF}}}}}}; border:1px dotted {{{border|#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>{{#if:{{{time|}}}|&nbsp;}}<span style = "color:black">{{{time|}}}</span>
| {{{1}}}
| {{{1}}}
|}<noinclude>{{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."
|}<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 />  
The format for using this template is as follows:<br />  
Line 66: Line 69:
==Customizability==
==Customizability==


Outside of using the standard colored quotebox templates, you may add parameters onto this default template to customize the colors of its background, border, and text.
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 />  
The format for using this template is as follows:<br />  


'''<pre>{{quotebox
'''<pre>{{quotebox
|speaker = Blue
|time = 12:00 AM
|background = #CEDAF2
|background = #CEDAF2
|border = #A3ACBF
|border = #A3ACBF
|color = white
|color = white
Da-ba-di}}</pre>
|Da-ba-de Da-ba-di}}</pre>


{{quotebox
{{quotebox
|speaker = Blue
|time = 12:00 AM
|background = #CEDAF2
|background = #CEDAF2
|border = #A3ACBF
|border = #A3ACBF
|color = white
|color = white
|Da-ba-de Da-ba-di}}
|Da-ba-de Da-ba-di}}
'''<pre>{{quotebox
|speaker = Blue
|time = 03&#8209;Jul&#8209;2021&nbsp;12:00&nbsp;AM
|background = #CEDAF2
|border = #A3ACBF
|color = white
|Lol}}</pre>
{{quotebox
|speaker = Blue
|time = 03&#8209;Jul&#8209;2021&nbsp;12:00&nbsp;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>&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==


* <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>background</code> - Background colour of the quotebox. Default: "#E6F2FF"
* <code>border</code> - Colour for the quotebox border. Default: "#A3B1BF"
* <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.)
* <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.
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==
==Additional Help==

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.