Template:Quote box2

From Wikipedia, the free encyclopedia

[edit] Template documentation

Quote box2 places text in a box with versatile formatting. This template is backwardly compatible with {{quote box}}. A variety of examples are shown on the testcases page.

It should be noted that simply because this template allows various formatting, such formatting may not be acceptable to all editors.

Contents

[edit] Usage

This template may be added by copy-pasting the template as shown below into an article.

{{Quote box2
|width     = 
|border    =
|margin    =
|align     = 
|bgcolor   = 
|title_bg  = 
|title_fnt = 
|title     = 
|halign    = 
|quote     = 
|salign    = 
|source    = 
}}

[edit] Parameters

Parameter Explanation
width Set the width of the quote box using em, px or %; defaults to the width of the text
It may be desirable to match the width of an infobox in the article. Infobox widths vary— some common boxes are:
border Set the border width using em or px; defaults to 2px
margin Set the margin to control the spacing between the outside of the box and surrounding text using em or px; defaults to 1em
align Set the horizontal alignment for the quote box to left, center or right; defaults to right
bgcolor Set the box background color; defaults to #F9F9F9
#F9F9F9 is the the color of the WP left sidebar with the default Monobook skin; the WP article background is #F8FCFF; see web colors and list of colors for more
title_bg Set the title background color; defaults to no background
title_fnt Set the title font color; defaults to black
title Insert the desired title; this will be centered and bolded
halign Set the horizontal alignment for the quote text to left, center or right; defaults to center
quote Quote text
salign Set the horizontal alignment for the source text to left, center or right; defaults to the halign setting
source Source text

[edit] Text formatting

Normally, text is formatted as a single paragraph. Line breaks may be retained by adding a <br /> at the end of line. Text formatting may also be retained by the use of the <poem> extension; placing text in between <poem> and </poem> will retain line breaks and leading spaces.

[edit] Examples

{{quote box2 |width=30em | bgcolor=#c6dbf7 |align=right |halign=left | quote="Baden-Powell is a wonderfully able scout and quick at sketches. I do not know another who could have done the work at Mafeking if the same conditions had been imposed. All the bits of knowledge he studiously gathered have been utilized in saving that community." |source= — ''Siege of Mafeking Abandoned by the Boers'', [[Frederick Russell Burnham]], the American scout, interviewed by [[The Times]], May 19, 1900.}}

produces:

"Baden-Powell is a wonderfully able scout and quick at sketches. I do not know another who could have done the work at Mafeking if the same conditions had been imposed. All the bits of knowledge he studiously gathered have been utilized in saving that community."
Siege of Mafeking Abandoned by the Boers, Frederick Russell Burnham, the American scout, interviewed by The Times, May 19, 1900.

More examples can be found on the examples page.