Template:Quote box

From 118Wiki
Jump to navigation Jump to search
Sample Quote

"...to boldly go where no man has gone before."

—James T. Kirk

See wikipedia quote box for documentation and how to use.

Template Data

Displays a quote in a box with flexible styling options.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Quotequote 1

The quote displayed in the box

Example
"...to boldly go where no man has gone before."
Stringrequired
Sourcesource 2

Source of the quote, e.g. author

Example
—James T. Kirk
Stringsuggested
Titletitle

Title displayed above the quote

Example
Sample Quote
Stringoptional
Alignmentalign

Placement of the box on the page, left, right or center. Option "none" places the box in text without wrapping.

Suggested values
left right center none
Default
right
Lineoptional
Widthwidth

Width of the box. Use CSS measure units, e.g. pixels (px), em, %

Example
100px
Lineoptional
Borderborder

Width of the grey border around the box. Use CSS measure units, e.g. pixels (px), em

Default
1px
Example
2px
Fileoptional
Font sizefontsize

Size of the font used in the box. Use CSS measure units, e.g. pixels (px), em, %

Default
88%
Example
16px
Lineoptional
Background colorbgcolor

Background color of the box. Use any color naming system recognized in CSS, e.g. HTLM names or HEX

Default
#F9F9F9
Example
red
Lineoptional
CSS Stylestyle

Open CSS style option for the box, supersedes other box style options

Example
border: black 5px double;
Stringoptional
Title background colortitle_bg

Background color for the title (if title exists). If empty, uses box's background color. Use any color naming system recognized in CSS, e.g. HTLM names or HEX

Default
#F9F9F9
Example
blue
Lineoptional
Title font colortitle_fnt

Font color of the title (if title exists). Use any color naming system recognized in CSS, e.g. HTLM names or HEX.

Default
black
Example
green
Lineoptional
Title CSS Styletstyle

Open CSS style option for the title (if title exists), supersedes other title style options.

Example
font-size: 2em;
Stringoptional
Quote alignmentqalign halign

Alignment of the quote text in the box, left, right or center

Suggested values
left right center justify
Default
left
Lineoptional
Quote CSS Styleqstyle

Open CSS style option for the quote, supersedes other quote style options.

Example
font-weight: bold; background: silver;
Stringoptional
Quote signsquoted

Adds large quote signs “ ” around the quote text. Any text in this parameters causes the signs to appear, leave empty if you do not want them.

Example
yes
Lineoptional
Source alignmentsalign

Alignment of the source (if source exists), left, right or center. If empty, source is aligned similarily to the quote.

Suggested values
left right center justify
Default
left
Example
center
Lineoptional
Source CSS Stylesstyle

Open CSS style option for the source (if source exists), supersedes other source style options.

Example
color: purple;
Stringoptional