Template:Quote fancy: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Linked derived templates in the documentation)
(Added example captions)
Line 45: Line 45:
{{Template demo
{{Template demo
| style = list
| style = list
| caption 1 = This is the default appearance for a quote with an image.
| <nowiki>
| <nowiki>
{{Quote fancy
{{Quote fancy
Line 52: Line 53:
}}
}}
</nowiki>
</nowiki>
| caption 2 = This example demonstrates some of the optional style parameters that can be adjusted.
| <nowiki>
| <nowiki>
{{Quote fancy
{{Quote fancy
Line 63: Line 65:
}}
}}
</nowiki>
</nowiki>
| caption 3 = For quotes of this style, see {{t link|Quote class}}.
| <nowiki>
| <nowiki>
{{Quote fancy
{{Quote fancy
Line 73: Line 76:
| align = center
| align = center
}}
}}
For quotes of this style, see [[Template:Quote class]].
</nowiki>
</nowiki>
| caption 4 = For quotes of this style, see {{t link|Quote character}}.
| <nowiki>
| <nowiki>
{{Quote fancy
{{Quote fancy
Line 89: Line 91:
| image-border-color = black
| image-border-color = black
}}
}}
For quotes of this style, see [[Template:Quote character]].
</nowiki>
</nowiki>
}}
}}

Revision as of 20:47, 22 July 2024

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:

Refer to Template: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 = The operations of these huge steel juggernauts are powered by engines of churning hellfire. 
| image = Portrait Steel Watcher.png
| link = Adamantine Golem
}}
Renders as
Portrait Steel Watcher.png
The operations of these huge steel juggernauts are powered by engines of churning hellfire.

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

Markup
{{Quote fancy
| quote = These levitating eyes transmit all that they see to the one who created them.
| image = Portrait Scrying Eye.png
| author = In-game racial description of [[Scrying Eye]]s
| link = Scrying Eye
| height = 60
| font-size = 120%
| align = center
}}
Renders as
Portrait Scrying Eye.png
These levitating eyes transmit all that they see to the one who created them.
— In-game racial description of Scrying Eyes

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

Markup
{{Quote fancy
| quote = The strong embrace the wild that hides inside - keen instincts, primal physicality, and most of all, an unbridled, unquenchable rage.
| image = Class Barbarian Badge Icon.png
| image-position = right
| height = 160
| font-size = 120%
| link = Barbarian
| align = center
}}
Renders as
Class Barbarian Badge Icon.png
The strong embrace the wild that hides inside - keen instincts, primal physicality, and most of all, an unbridled, unquenchable rage.

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

Markup
{{Quote fancy
| quote = Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
| image = Portrait Gale.png
| link = Gale
| author = [[Gale]], casting Knuth's Magnificent Kerning
| height = 60
| font-size = 100%
| align = center
| image-border-shape = diamond
| image-border-width = 4
| image-border-color = black
}}
Renders as
Portrait Gale.png
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Gale, casting Knuth's Magnificent Kerning

Template data

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

Template parameters

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.png
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
Alignmentalign

Horizontal alignment of the quote.

Suggested values
left right center
Default
left
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
80
Example
60px, 50
Stringoptional