Template:Quote fancy: Difference between revisions
Jump to navigation
Jump to search
(Use TemplateStyle for @media query) |
(Massively cleaned up template with the help of external CSS) |
||
Line 1: | Line 1: | ||
<includeonly><templatestyles src="ImageQuote/style.css" /><div class="bg3wiki-image-quote"> | <includeonly><templatestyles src="ImageQuote/style.css" /><div class="bg3wiki-image-quote"> | ||
<!-- Quote image --> | <!-- Quote image --> | ||
[[File:{{{image}}}|x{{{height|80px}}}|link={{{link|}}}|class=bg3wiki-image-quote-image]] | |||
<!-- Container for the quote and the author/attribution if present --> | |||
<div style="display: flex; flex-direction: column;"> | |||
<!-- Formatted quote --> | |||
<blockquote class="bg3wiki-image-quote-blockquote-right" style="font-size:{{{font-size|130%}}}"> | |||
<div style="display:flex;align-items:center> | |||
<!-- Starting quotation mark. Aligned with the top-left corner of the quote text --> | |||
<div class="bg3wiki-image-quote-begin">“</div> | |||
<!-- Actual text of the quote --> | |||
<div style="font-style:italic">{{{quote}}}</div> | |||
<!-- Ending quotation mark. Aligned with the bottom-right corner of the quote text --> | |||
<div class="bg3wiki-image-quote-end">„</div> | |||
</div> | |||
</blockquote> | |||
<!--- Optional author or attribution for the quote. Aligned with the bottom-right of the quote --> | |||
{{#if:{{{author|}}}|<div class="bg3wiki-image-quote-author>— {{{author|}}}</div>}} | |||
</div> | |||
</div></includeonly><noinclude> | </div></includeonly><noinclude> | ||
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. |
Revision as of 07:47, 20 July 2024
Display a quote with an accompanying image which are vertically aligned with each other.
Examples
Markup
Page Template:ImageQuote/style.css has no content.
{{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.
Markup
Page Template:ImageQuote/style.css has no content.
{{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.
Template data
Display a quote with an accompanying image which are aligned with each other
Parameter | Description | Type | Status | |
---|---|---|---|---|
Quote | quote | The quote | String | required |
Image | image | Add an image to go along with the quote.
| File | optional |
Author | author | The author or context of the quote | String | optional |
Font size | font-size | Size of the font used for the quote.
| String | optional |
Rounding | rounding | The amount of rounding applied to the image.
| String | optional |
Alignment | align | Horizontal alignment of the quote
| String | optional |
Height | height | The height of the image
| String | optional |