Template:Quote fancy: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Added image position parameter)
(Linked stylesheet)
Line 21: Line 21:
   {{#if:{{{author|}}}|<div class="bg3wiki-image-quote-author>— {{{author|}}}</div>}}
   {{#if:{{{author|}}}|<div class="bg3wiki-image-quote-author>— {{{author|}}}</div>}}
</div>
</div>
</div></includeonly><noinclude>
</div></includeonly><noinclude>{{documentation|content=
Display a quote with an accompanying image which are vertically aligned with each other.
Display a quote with an accompanying image which are vertically aligned with each other.
This template has an associated stylesheet at [[Template:ImageQuote/style.css]].


== Examples ==
== Examples ==
Line 120: Line 122:
     "format": "block"
     "format": "block"
}
}
</templatedata>
</templatedata>}}
[[Category: Templates]]
[[Category: Templates]]
[[Category: Quotation templates]]
[[Category: Quotation templates]]
</noinclude>
</noinclude>

Revision as of 09:34, 20 July 2024

Template documentation

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

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

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

Page Template:ImageQuote/style.css has no content.

Portrait Steel Watcher.png

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

Page Template:ImageQuote/style.css has no content.

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
Markup
{{ImageQuote
| 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 = 160px
| font-size = 120%
| link = Barbarian
| align = center
}}
Renders as

Page Template:ImageQuote/style.css has no content.

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.

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
Image positionimage-position

Position of the image relative to the quote

Default
left
Example
left, right
Stringoptional
Heightheight

The height of the image

Default
80px
Example
60px, 4em
Stringoptional