Template:Quote fancy: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Formatted for slightly less painful reading)
(Removed linebreaks that caused issues in the template output)
Line 31: Line 31:
           margin-bottom: auto;
           margin-bottom: auto;
           margin-right: 8px
           margin-right: 8px
         ">“</div>
         ">“</div><!--
        <!-- Actual text of the quote -->
        Actual text of the quote
        <i>{{{quote}}}</i>
        --><i>{{{quote}}}</i>
         <!-- Ending quotation mark. Aligned with the bottom-right corner of the quote text -->
         <!-- Ending quotation mark. Aligned with the bottom-right corner of the quote text -->
         <div style="
         <div style="

Revision as of 04:15, 20 July 2024

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

Examples

Markup
{{ImageQuote
| 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

Adamantine Golem

The operations of these huge steel juggernauts are powered by engines of churning hellfire.
Markup
{{ImageQuote
| 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 = 60px
| rounding = 20%
| font-size = 120%
| align = center
}}
Renders as

Scrying Eye

These levitating eyes transmit all that they see to the one who created them.
In-game racial description of Scrying Eyes

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
Fileoptional
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
Roundingrounding

The amount of rounding applied to the image.

Default
15%
Example
50%, 20px
Stringoptional
Alignmentalign

Horizontal alignment of the quote

Default
left
Example
left, right, center
Stringoptional
Heightheight

The height of the image

Default
80px
Example
60px, 4em
Stringoptional