Template:Quote/doc: Difference between revisions
Deleted User (talk | contribs) (Created page with "== Description == This template is used to create stylized pull quotes. <strong>Note: Set the template type to Design, <u>and not Quote.</u> This is to fix mobile styling.</strong> == Syntax == {{t|Quote|<Quote>|<By>|<From>|5=align=left|6=style=margin: 10em;|style=pre|block=y}} === Parameters === ;<code>1=</code> ''<code>quote=</code>'' :The main quote block. : ;<code>2=</code> ''<code>person=</code>'' :The person who said the quote. The following parameters are optio...") |
Deleted User (talk | contribs) No edit summary |
||
Line 141: | Line 141: | ||
<includeonly> | <includeonly> | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
[[Category:Template documentation]] | [[Category:Template documentation]] | ||
</noinclude> | </noinclude> |
Latest revision as of 11:43, 7 September 2022
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
}}
{{quote|
results in
My beautiful quote
|Speaker
}}
{{quote|
results in
My beautiful quote
|Speaker
|Source
}}
With align
{{quote|
results in
My beautiful quote
|Speaker
|Source
|align=right
}}
{{quote|
results in
My beautiful quote
|Speaker
|Source
|align=left
}}