Template talk:Quote box
From Wikipedia, the free encyclopedia
Contents |
[edit] Instructions
The quote box template allows you to easily put a quote (and its source) inside a box. This is useful in articles where you are short on images and want to add some sort of graphic, or you just want to set off an important or interesting quote away from the main text.
As a stylistic device, the quoted text is italicized in the box by default, so you don't need to put quote marks (" ") around the quoted text; the italics do the work of quote marks in this context. (Should you want to defeat any part of the default italics in the quote, put two apostrophes on each side of the quoted text you do not want italicized, ''like this''.)
You can pick how wide you want the box (as px or a percentage), and how to align it (center, right, left). The parameters are:
{{Quote_box| width= |align= |quote= |source= |}}
For example, entering the following:
{{Quote_box| width=45% |align=right |quote=Cry "Havoc," and let slip the dogs of war. |source=[[William Shakespeare]], ''[[Julius Caesar (play)|Julius Caesar]]'', Act III, Scene I. |}}
Produces this:
Cry "Havoc," and let slip the dogs of war. —William Shakespeare, Julius Caesar, Act III, Scene I. |
[edit] Related templates
[edit] Discussion
Hi, this template seems to be clashing with text in some browsers/preferences. See Talk:English Channel#Box conflicting with text. Cheers, JackyR | Talk 23:23, 23 August 2006 (UTC)
[edit] Attempting to center
I took your example and changed only the alignment:
{{Quote_box| width=45% |align=center |quote=Cry "Havoc," and let slip the dogs of war. |source=[[William Shakespeare]], ''[[Julius Caesar (play)|Julius Caesar]]'', Act III, Scene I. |}}
produces this:
Cry "Havoc," and let slip the dogs of war. —William Shakespeare, Julius Caesar, Act III, Scene I. |
Why isn't it centered on the page? In deference to Shakespeare, I tried "centre", but that didn't work, either. JamesMLane t c 21:01, 27 September 2006 (UTC)
- Your example is centered on my page. (WP default skin, IE) —Kevin 21:07, 27 September 2006 (UTC)
- But not on mine (WP default skin, Safari on Mac) JackyR | Talk 23:07, 27 September 2006 (UTC)
- Weird. Someone who knows how these computer-thingys work will have to figure it out. This rules me out. —Kevin 23:24, 27 September 2006 (UTC)
- More data for the nerds' use: I'm using Win XP. I usually edit with Firefox and the Classic skin for WP. In Firefox 1.5.0.7, the box was left-aligned in both the Classic skin and the default (MonoBook) skin. In MSIE, the box was centered in both those skins. JamesMLane t c 06:14, 28 September 2006 (UTC)
- I fixed this, hopefully without causing any harm. Nikola 11:15, 17 November 2006 (UTC)
- More data for the nerds' use: I'm using Win XP. I usually edit with Firefox and the Classic skin for WP. In Firefox 1.5.0.7, the box was left-aligned in both the Classic skin and the default (MonoBook) skin. In MSIE, the box was centered in both those skins. JamesMLane t c 06:14, 28 September 2006 (UTC)
- Weird. Someone who knows how these computer-thingys work will have to figure it out. This rules me out. —Kevin 23:24, 27 September 2006 (UTC)
- But not on mine (WP default skin, Safari on Mac) JackyR | Talk 23:07, 27 September 2006 (UTC)
[edit] Used for vandalism
A shock image was added to this template to vandalize an article linked to from the main page.[1] I will accordingly protect this template as high risk, given the recent spate of such similar vandalism. Postdlf 17:09, 27 December 2006 (UTC)
[edit] Background color
can the template be modified to allow for a background color. If no color is specified, then the current default color of grey will be used--Ccson 15:29, 30 December 2006 (UTC)