Template:Blockquote: Difference between revisions

Template page
No edit summary
No edit summary
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{#if: {{{image|}}} {{{4|}}} | <div class="nomobile noexcerpt" style="display: flex; align-items: center;">}}<blockquote class="bg3wiki-bquote" {{#if: {{{style|}}} {{{align|}}}|style="{{{style|text-align:{{{align}}};}}}"}}><span class="bg3wiki-blockquote-marks">“</span>{{{1|Error! Must include quote!}}}<span class="bg3wiki-blockquote-marks"></span>{{#if: {{{author|}}} {{{2|}}}| <div class="bg3wiki-quotesource">—&nbsp;<cite>{{{author|{{{2}}}}}} {{#if: {{{ref|}}} {{{3|}}} | {{ref|{{{ref|{{{3}}}}}}}}}}</cite></div>}}</blockquote>{{#if: {{{image|}}} {{{4|}}} |
<includeonly><center class="noexcerpt">
<div style="margin-right: 60px;">[[File:{{{image|{{{4}}}}}}|64px]]</div>
{| style="background: none;"
</div>}}</includeonly><noinclude>{{documentation|content=Adds a blockquote.
|-
{{#if:{{{image|{{{4|}}}}}}|{{!}}{{#if:{{{author|{{{2|}}}}}}|rowspan="2"{{!}}}}[[File:{{{image|{{{4}}}}}}|64px|link=]]}}
| style="color: #C1A878; font-size: 3.3em; font-family: serif; font-weight: bold; padding: 4px 2px 2px; width: 0.5em; vertical-align: top;" |
| <blockquote style="margin: 0; font-style: italic">{{{1}}}</blockquote>
| style="color: #C1A878; font-size: 3.3em; font-family: serif; font-weight: bold; padding: 4px 2px 2px; width: 0.5em; vertical-align: bottom;" |
{{#if:{{{author|{{{2|}}}}}} |  
{{!}}-
{{!}} <!-- empty cell -->
{{!}} style="text-align: right;" {{!}} <small>— '''{{{author|{{{2}}}}}}{{#if:{{{topic|{{{3|}}}}}}|<nowiki /> on {{{topic|{{{3}}}}}}}}'''</small>
{{!}} <!-- empty cell to prevent potential rendering issues --> }}
|}</center></includeonly>
<noinclude>[[Category:Templates]]{{documentation|content=Adds a blockquote.


== Examples ==
== Examples ==
Line 12: Line 23:
{{blockquote|This is a quote.}}
{{blockquote|This is a quote.}}


; Wikitext
<pre>
{{blockquote|''This is a quote.''|align=center}}
</pre>
; Result
{{blockquote|''This is a quote.''|align=center}}


; Wikitext
; Wikitext
<pre>
<pre>
{{blockquote|This is a quote.|Perry}}
{{blockquote|This is a quote.|Author}}
</pre>
</pre>


; Result
; Result
{{blockquote|This is a quote.|Perry}}
{{blockquote|This is a quote.|Author}}


; Wikitext
; Wikitext

Latest revision as of 19:19, 21 June 2024

Template documentation

Adds a blockquote.

Examples

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


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


Wikitext
{{blockquote|This is a quote. This example also has an image, and works with or without an author.|image=Book Tome Y Item Icon.png}}
Result
Book Tome Y Item Icon.png
This is a quote. This example also has an image, and works with or without an author.

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
Alignmentalign

Left, center or right.

Unknownoptional