Template:Quote fancy

From dos2.wiki
Jump to navigation Jump to search
Template documentation

Display a fancily formatted quote with an (optional) accompanying image. This is a parent template used as a basis for other more specific quote templates. These are:

  • {{Quote character}}: Display character quotes with automatic handling of the character portrait.

In addition, the following quote template displays a set of predefined quotes. They are intended for use on their specific pages only rather than general purpose templates.

See also

Refer to {{Image frame}} for the template used to render the image.

This template has an associated stylesheet at Template:Quote fancy/style.css.

Examples

This is the default appearance for a quote with an image.

Markup
{{Quote fancy
| quote = I am rare, you see. A singularity. As is my story.
| image = Portrait The Red Prince.webp
| link = The Red Prince
}}
Renders as
I am rare, you see. A singularity. As is my story.

This example demonstrates some of the optional style parameters that can be adjusted.

Markup
{{Quote fancy
| quote = I'm not a lady. I'm a Malady. And I'm here to help you.
| image = Portrait Malady.webp
| author = [[Malady]], introducing herself
| link = Malady
| height = 80
| font-size = 120%
| image-align = edge
}}
Renders as
I'm not a lady. I'm a Malady. And I'm here to help you.
Malady, introducing herself

For quotes of this style, see {{Quote class}}.

Markup
{{Quote fancy
| quote = I used to be a slave. Now? I'm a nightmare.
| image = Portrait Sebille.webp
| image-position = left
| image-align = center
| height = 100
| font-size = 120%
| link = Sebille
}}
Renders as
I used to be a slave. Now? I'm a nightmare.

For quotes of this style, see {{Quote character}}.

Markup
{{Quote fancy
| quote = I'll not be lectured by a creature whose lifespan is a rounding error.
| image = Portrait Fane.webp
| link = Fane
| author = [[Fane]], displaying his usual charm
| height = 100
| font-size = 110%
| image-border-shape = diamond
| image-border-width = 2
| image-border-color = #d4af37
}}
Renders as
I'll not be lectured by a creature whose lifespan is a rounding error.
Fane, displaying his usual charm

Override justify-content.

Markup
{{Quote fancy
| quote = Source is not a gift. It is a curse. And I am the cure.
| image = Portrait Dallis, the Hammer.webp
| link = Dallis the Hammer
| justify = left
}}
Renders as
Source is not a gift. It is a curse. And I am the cure.

Template data

Display a quote with an accompanying image which are aligned with each other

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Quotequote

The quote

Stringrequired
Imageimage

Add an image to go along with the quote.

Example
Portrait Lae'zel.webp
Filesuggested
Linklink

Clicking the image will link to the specified page instead of the image file.

Example
Lae'zel
Page namesuggested
Authorauthor

The author or context of the quote

Stringoptional
Font sizefont-size

Size of the font used for the quote.

Default
130%
Example
100%, 1.1em
Stringoptional
Image alignmentimage-align

How to align the image with the quote. Either centered along with the quote (default) or kept at the edge.

Suggested values
center edge
Default
center
Stringoptional
Image positionimage-position

Position of the image relative to the quote.

Suggested values
left right
Default
left
Stringoptional
Image border widthimage-border-width

Width in pixels of the border around the image. Set to 0 to completely disable this.

Default
0
Numberoptional
Image border shapeimage-border-shape

Shape of the border frame which crops the image. This can be an arbitrary CSS clip-path or a predefined value. Refer to [[Template:Image frame]] for details. The default value of basic disables this.

Suggested values
rounded diamond basic
Default
basic
Example
circle(60% at 50% 50%)
Stringoptional
Image border colorimage-border-color

Color of the image border. This can be a CSS color descriptor.

Default
black
Example
#3d3d3d
Stringoptional
Heightheight

The height of the image in pixels.

Default
100
Example
60px, 50
Stringoptional
Widthwidth

The width of the image in pixels. Defaults to 0.8 * Height.

Default
80
Example
80
Stringoptional
Justifyjustify

Override justify (default is either space-between or center, depending on image position).

Unknownoptional