Template:Quote fancy: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
No edit summary
(documentation)
Line 1: Line 1:
<includeonly><div style="display:flex;align-items:center;">
<includeonly><div style="display:flex;align-items:center;">
<span style="display: inline-block; vertical-align: middle; border: hidden; border-radius:15%; overflow: hidden;>{{Icon|{{{image}}}|{{{w|{{{h|80px}}}}}}|{{{h|{{{w|80px}}}}}}|link={{{link|}}}}}</span>
<span style="display: inline-block; vertical-align: middle; border: hidden; border-radius:{{{rounding|15%}}}; overflow: hidden;>{{Icon|{{{image}}}|h={{{height|80px}}}|link={{{link|}}}}}</span>
<blockquote style="font-size:130%; margin:10px;">''{{{quote}}}''</blockquote>
<blockquote style="font-size:{{{font-size|130%}}}; margin:10px;">''{{{quote}}}''</blockquote>
</div></includeonly>
</div></includeonly>
<noinclude>
<noinclude>
{{documentation|content=
Display a quote with an accompanying image which are vertically aligned with each other.
== Examples ==
<pre>
{{User:NtCarlson/Template:ImageQuote
{{User:NtCarlson/Template:ImageQuote
| quote = The operations of these huge steel juggernauts are powered by engines of churning hellfire.
| quote = The operations of these huge steel juggernauts are powered by engines of churning hellfire.
Line 9: Line 13:
| link = Adamantine Golem
| link = Adamantine Golem
}}
}}
</pre>
{{User:NtCarlson/Template:ImageQuote
| quote = The operations of these huge steel juggernauts are powered by engines of churning hellfire.
| image = Portrait Steel Watcher.png
| link = Adamantine Golem
}}
<pre>
{{User:NtCarlson/Template:ImageQuote
| quote = These levitating eyes transmit all that they see to the one who created them.
| image = Portrait Scrying Eye.png
| link = Scrying Eye
| height = 60px
| rounding = 20%
| font-size = 100%
}}
</pre>
{{User:NtCarlson/Template:ImageQuote
{{User:NtCarlson/Template:ImageQuote
| quote = These levitating eyes transmit all that they see to the one who created them.
| quote = These levitating eyes transmit all that they see to the one who created them.
| image = Portrait Scrying Eye.png
| image = Portrait Scrying Eye.png
| link = Scrying Eye
| link = Scrying Eye
| height = 60px
| rounding = 20%
| font-size = 100%
}}
}}
== Template data ==
<templatedata>
{
"params": {
"quote": {
"label": "Quote",
"description": "The quote",
            "type": "string",
"required": true
},
"image": {
"label": "Image",
"description": "Add an image to go along with the quote.",
            "type": "wiki-file-name",
"example": "Portrait Lae'zel.png"
},
"font-size": {
"label": "Font size",
"description": "Size of the font used for the quote.",
            "type": "string",
            "example": "100%, 1.1em",
            "default": "130%"
},
"rounding": {
"label": "Rounding",
"description": "The amount of rounding applied to the image.",
            "type": "string",
            "example": "50%, 20px",
            "default": "15%"
},
        "height": {
"label": "Height",
"description": "The height of the image",
            "type": "string",
            "example": "60px, 4em",
            "default": "80px"
},
        "height": {
"label": "Height",
"description": "The height of the image",
            "type": "string",
            "example": "60px, 4em",
            "default": "80px"
}
},
    "description": "Display a quote with an accompanying image which are aligned with each other",
    "format": "block",
"paramOrder": [
"quote",
"image",
"font-size",
"rounding",
        "height"
]
}
</templatedata>}}
</noinclude>
</noinclude>

Revision as of 19:54, 6 July 2024


Template documentation

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

Examples

{{User:NtCarlson/Template:ImageQuote
| quote = The operations of these huge steel juggernauts are powered by engines of churning hellfire.
| image = Portrait Steel Watcher.png
| link = Adamantine Golem
}}
  1. REDIRECT User:Template:ImageQuote
{{User:NtCarlson/Template:ImageQuote
| quote = These levitating eyes transmit all that they see to the one who created them.
| image = Portrait Scrying Eye.png
| link = Scrying Eye
| height = 60px
| rounding = 20%
| font-size = 100%
}}
  1. REDIRECT User:Template:ImageQuote

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
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
Heightheight

The height of the image

Default
80px
Example
60px, 4em
Stringoptional