|
|
Line 1: |
Line 1: |
− | {| class="wikitable" | + | {| cellspacing="2" cellpadding="2" style="width:{{{width}}}; float:{{{align|right}}}; border: {{{border|2px}}} solid #aaa; font-size:90%; {{#ifeq:{{{align}}}|center|auto}} margin: {{ #switch: {{{align}}} | left = 1em 1em 1em 0em | center = auto | 1em 0em 1em 1em }}; background-color:{{{bgcolor|#F9F9F9}}}; clear:{{{align}}};" |
− | !style="width:140px; text-align:left;"| Parameter
| + | |
− | !style="text-align:left;"| Explanation
| + | |
| |- | | |- |
− | | '''''width''''' | + | ! colspan="2" style="background-color:{{{title_bg|}}}; color:{{{title_fnt|black}}}; text-align: center; font-size: larger;" | {{{title|}}} |
− | | Set the width of the quote box using ''em'', ''px'' or ''%''; defaults to the width of the text | + | |
| |- | | |- |
− | | | + | |align="{{{halign|center}}}" | {{{quote|}}} |
− | | It may be desirable to match the width of an infobox in the article. Infobox widths vary— some common boxes are:
| + | |
− | * 22em: {{tlx|Infobox Person}}
| + | |
− | * 23em: {{tlx|Infobox Company}}
| + | |
− | * 315px: infoboxes based on {{tlx|WPMILHIST Infobox style}} such as {{tlx|Infobox Military Person}}
| + | |
| |- | | |- |
− | | '''''border''''' | + | |align="{{{salign|{{{halign|center}}}}}}" | {{{source|}}} |
− | | 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 — 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 | + | |
| |} | | |} |