Template:Blockquote: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{{#if: {{{image|}}} {{{4|}}} | <div class="nomobile noexcerpt" style="display: flex; align-items: center;">}}<blockquote class="bg3wiki-bquote" {{#if: {{{style|}}}|style="{{{style}}}"}}><span class="bg3wiki-blockquote-marks" style="vertical-align: top;"> “ </span>{{{1|Error! Must include quote!}}}<span class="bg3wiki-blockquote-marks" style="vertical-align: bottom;"> „ </span>{{#if: {{{author|}}} {{{2|}}} | <div class="bg3wiki-quotesource">—&nbsp;<cite>{{{author|{{{2}}}}}}</cite></div>}}</blockquote>{{#if: {{{image|}}} {{{4|}}} |  
<includeonly>{{#if: {{{image|}}} {{{4|}}} | <div class="nomobile noexcerpt" style="display: flex; align-items: center;">}}<blockquote class="bg3wiki-bquote" {{#if: {{{style|}}}|style="{{{style}}}"}}><span class="bg3wiki-blockquote-marks" style="vertical-align: top;"> “ </span>{{{1|Error! Must include quote!}}}<span class="bg3wiki-blockquote-marks" style="vertical-align: bottom;"> „ </span>{{#if: {{{author|}}} {{{2|}}} {{{3|}}}| <div class="bg3wiki-quotesource">—&nbsp;<cite>{{{author|{{{2}}}}}} {{#if: {{{ref|}}} {{{3|}}} | {{ref|{{{ref|{{{3}}}}}}}}}}</cite></div>}}</blockquote>{{#if: {{{image|}}} {{{4|}}} |  
<div style="margin-right: 60px;">[[File:{{{image|{{{4}}}}}}|64px]]</div>
<div style="margin-right: 60px;">[[File:{{{image|{{{4}}}}}}|64px]]</div>
</div>}}</includeonly><noinclude>{{documentation|content=Adds a blockquote.
</div>}}</includeonly><noinclude>{{documentation|content=Adds a blockquote.
Line 5: Line 5:
== Examples ==
== Examples ==
=== Example 1 ===
=== Example 1 ===
<pre>
{{blockquote|This is a quote.}}
{{blockquote|This is a quote.}}
</pre>


; Result
{{blockquote|This is a quote.}}
=== Example 2 ===
=== Example 2 ===
<pre>
{{blockquote|This is a quote.|Perry}}
</pre>
; Result
{{blockquote|This is a quote.|Perry}}
{{blockquote|This is a quote.|Perry}}


=== Example 3 ===
=== Example 3 ===
<pre>
{{blockquote|This is a quote.|Perry|image=Book Tome Y Item Icon.png}}
</pre>
; Result
{{blockquote|This is a quote.|Perry|image=Book Tome Y Item Icon.png}}
{{blockquote|This is a quote.|Perry|image=Book Tome Y Item Icon.png}}


Line 42: Line 56:
"label": "Author",
"label": "Author",
"description": "Citation"
"description": "Citation"
},
"ref": {
"aliases": [
"3"
],
"label": "Ref",
"description": "Adds a reference tag"
}
}
},
},
Line 48: Line 69:
"image",
"image",
"style",
"style",
"author"
"author",
"ref"
]
]
}
}
</templatedata>}}
</templatedata>}}
</noinclude>
</noinclude>

Revision as of 22:53, 23 December 2023

Template documentation

Adds a blockquote.

Examples

Example 1

{{blockquote|This is a quote.}}
Result
This is a quote.

Example 2

{{blockquote|This is a quote.|Perry}}
Result
This is a quote.
— Perry

Example 3

{{blockquote|This is a quote.|Perry|image=Book Tome Y Item Icon.png}}
Result
This is a quote.
— Perry
Book Tome Y Item Icon.png

Template data

No description.

Template parameters

ParameterDescriptionTypeStatus
Quote1

The quote

Unknownrequired
Imageimage 4

Add an image to go along with the quote.

Example
Book.png
Unknownoptional
HTML Stylestyle

Add custom styling.

Unknownoptional
Authorauthor 2

Citation

Unknownoptional
Refref 3

Adds a reference tag

Unknownoptional