Still working to recover. Please don't edit quite yet.

Difference between revisions of "Template:Quote box2"

From Anarchopedia
Jump to: navigation, search
(New page: <div style="width:250px; background:#ddd; border:1px solid black; padding:0.5em 1em 0.5em 1em;"> <pre>{{Quote box2 |width = |border = |align = |bgcolor = |title_bg = |tit...)
 
Line 1: Line 1:
<div style="width:250px; background:#ddd; border:1px solid black; padding:0.5em 1em 0.5em 1em;">
+
{| class="wikitable"
<pre>{{Quote box2
+
!style="width:140px; text-align:left;"| Parameter
|width    =
+
!style="text-align:left;"| Explanation
|border   =
+
|-
|align     =
+
| '''''width'''''
|bgcolor   =
+
| Set the width of the quote box using ''em'', ''px'' or ''%''; defaults to the width of the text
|title_bg =
+
|-
|title_fnt =
+
|
|title     =
+
| It may be desirable to match the width of an infobox in the article.  Infobox widths vary— some common boxes are:
|halign   =
+
* 22em: {{tlx|Infobox Person}}
|quote     =
+
* 23em: {{tlx|Infobox Company}}
|salign   =
+
* 315px: infoboxes based on {{tlx|WPMILHIST Infobox style}} such as {{tlx|Infobox Military Person}}
|source   =
+
|-
}}</pre>
+
| '''''border'''''
</div>
+
| Set the border width using ''em'' or ''px''; defaults to 2px
 +
|-
 +
| '''''align'''''
 +
| Set the horizontal alignment for the quote box to ''left'', ''center'' or ''right''; defaults to ''right''.  Left alignment creates a 0em left margin and a 1em right margin; right alignment creates a 1em left margin and a 0em right margin.
 +
|-
 +
| '''''bgcolor'''''
 +
| Set the box background color; defaults to #F9F9F9<br />#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.
 +
 
 +
Please ensure that the result will be readable by people with [[color blindness]], and those with visual disabilities. The [[Web Content Accessibility Guidelines]] recommend a [[contrast ratio]] of at least 5:1 for text&nbsp;— use this [http://www.msfw.com/accessibility/tools/contrastratiocalculator.aspx Contrast ratio calculator] to help determine if the colors you choose will be visible to everyone.
 +
|-
 +
| '''''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
 +
|}

Revision as of 06:21, 14 November 2008

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
align Set the horizontal alignment for the quote box to left, center or right; defaults to right. Left alignment creates a 0em left margin and a 1em right margin; right alignment creates a 1em left margin and a 0em right margin.
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.

Please ensure that the result will be readable by people with color blindness, and those with visual disabilities. The Web Content Accessibility Guidelines recommend a contrast ratio of at least 5:1 for text â€” use this Contrast ratio calculator to help determine if the colors you choose will be visible to everyone.

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