Template:Quote/doc

From FasciPedia
< Template:Quote
Revision as of 20:55, 10 April 2022 by 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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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 be left or right
width=
The width of the quote box. Defaults to 80% if centered, or 300px 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.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Quote text1 quote text

The main quote text by a person.

Auto value
''Quote text here''
Stringrequired
Quote speaker2 by person

The person/character/object who stated the quote.

Example
John
Stringsuggested
Quote source3 source from

The source of the quote. Can be a named reference tag

Example
Book of something
Stringsuggested
Blockquote image4 image

Custom blockquote image tht replaces the quotation mark; remove the File: namespace

Default
Defaults to the large quotation mark (")
Fileoptional
Blockquote classesclass

Additional classes for the base <blockquote> template

Stringoptional
Blockquote alignalign

The alignment of the blockquotequote. Available options: left - right - center

Default
center
Example
left, right, center
Stringoptional
Blockquote stylesstyle css

Custom styling for the base <blockquote> element

Stringoptional
Blockquote widthwidth

Custom width for the base <blockquote> element

Example
80%, 300px
Stringoptional

Examples

Basic usage

{{quote|My beautiful quote}} results in

Quotebubble.png My beautiful quote

{{quote|My beautiful quote|Speaker}} results in

Quotebubble.png My beautiful quote
—Speaker

{{quote|My beautiful quote|Speaker|Source}} results in

Quotebubble.png My beautiful quote
—Speaker, Source

With align

{{quote|My beautiful quote|Speaker|Source|align=right}} results in

Quotebubble.png My beautiful quote
—Speaker, Source

{{quote|My beautiful quote|Speaker|Source|align=left}} results in

Quotebubble.png My beautiful quote
—Speaker, Source