“ Insert the text of the quote here, without quotation marks.
—A random person, The source
Expand the below text for usage and other information.
View, edit, or check the history of this documentation. (How does this work?)
Editors can experiment with this template's sandbox and testcases.
Description
This template is used to create stylized pull quotes. Note: Set the template type to Design, and not Quote. This is to fix mobile styling.
Syntax
{{Quote
|<Quote>
|<By>
|<From>
|align=left
|style=margin: 10em;
}}
Parameters
1=
quote=
- The main quote block.
2=
person=
- The person who said the quote.
The following parameters are optional.
3=
source=
- The source of the quote. Can be a reference tag, like
Book<ref>Example</ref>
image=
4=
- Optional image at the start of the quote. The
File:
namespace prefix is not needed. Size hardcoded to 50px. align=
- Alignment of the quote box. Defaults to
center
. Can beleft
orright
width=
- The width of the quote box. Defaults to
80%
if centered, or300px
if aligned left/right. style=
css=
- Optional styling for the base <blockquote/> element.
TemplateData
This template is used to create styled quotes. Basically, a better version of the standard "block quote" used normally.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Quote text | 1 quote text | The main quote text by a person.
| String | required |
Quote speaker | 2 by person | The person/character/object who stated the quote.
| String | suggested |
Quote source | 3 source from | The source of the quote. Can be a named reference tag
| String | suggested |
Blockquote image | 4 image | Custom blockquote image tht replaces the quotation mark; remove the File: namespace
| File | optional |
Blockquote classes | class | Additional classes for the base <blockquote> template | String | optional |
Blockquote align | align | The alignment of the blockquotequote. Available options: left - right - center
| String | optional |
Blockquote styles | style css | Custom styling for the base <blockquote> element | String | optional |
Blockquote width | width | Custom width for the base <blockquote> element
| String | optional |
Examples
Basic usage
{{quote|
results in
My beautiful quote
}}
“ My beautiful quote
{{quote|
results in
My beautiful quote
|Speaker
}}
“ My beautiful quote
—Speaker
{{quote|
results in
My beautiful quote
|Speaker
|Source
}}
“ My beautiful quote
—Speaker, Source
With align
{{quote|
results in
My beautiful quote
|Speaker
|Source
|align=right
}}
“ My beautiful quote
—Speaker, Source
{{quote|
results in
My beautiful quote
|Speaker
|Source
|align=left
}}
“ My beautiful quote
—Speaker, Source
- Export this template, then import to install it.
Use edit summary:Copied from [[w:c:templates:Template:Quote]]
to properly attribute this template's editors.
- There is no additional installation instructions for this template. If there is any, you may create it at Template:Quote/install.