Template:Blockquote: Difference between revisions

From Baldur's Gate 3 Wiki
Jump to navigation Jump to search
(Created page with "<includeonly><blockquote class="bquote" {{#if: {{{style|}}}|style="{{{style}}}"}}>{{{1|Error! Must include quote!}}}{{#if: {{{2|}}} | <div class="quotesource">— <cite>{{{2|}}}}}</cite></blockquote></includeonly><noinclude>{{documentation|content=Adds a blockquote. == Examples == === Example 1 === {{blockquote|This is a quote.}} === Example 2 === {{blockquote|This is a quote.|Perry}} Category: Templates Category: Quotation templates == Template data == <t...")
 
No edit summary
 
(29 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><blockquote class="bquote" {{#if: {{{style|}}}|style="{{{style}}}"}}>{{{1|Error! Must include quote!}}}{{#if: {{{2|}}} | <div class="quotesource">—&nbsp;<cite>{{{2|}}}}}</cite></blockquote></includeonly><noinclude>{{documentation|content=Adds a blockquote.
<includeonly>{{#if: {{{image|}}} {{{4|}}} | <div class="nomobile noexcerpt" style="display: flex; align-items: center;">}}<blockquote class="bg3wiki-bquote noexcerpt" {{#if: {{{style|}}} {{{align|}}}|style="{{{style|text-align:{{{align}}};}}}"}}>{{#if: {{{addquotes|}}} | <span class="bg3wiki-blockquote-marks">“</span>}}{{{1|Error! Must include quote!}}}{{#if: {{{addquotes|}}} | <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|}}} |
<div style="margin-right: 60px;">[[File:{{{image|{{{4}}}}}}|64px]]</div>
</div>}}</includeonly><noinclude>{{documentation|content=Adds a blockquote.


== Examples ==
== Examples ==
=== Example 1 ===
; Wikitext
<pre>
{{blockquote|This is a quote.}}
{{blockquote|This is a quote.}}
</pre>


=== Example 2 ===
; Result
{{blockquote|This is a quote.}}
 
; Wikitext
<pre>
{{blockquote|This is a quote.|addquotes=1}}
</pre>
 
; Result
{{blockquote|This is a quote.|addquotes=1}}
 
; Wikitext
<pre>
{{blockquote|This is a quote.|align=center}}
</pre>
 
; Result
{{blockquote|This is a quote.|align=center}}
 
; Wikitext
<pre>
{{blockquote|This is a quote.|Perry}}
{{blockquote|This is a quote.|Perry}}
</pre>
; Result
{{blockquote|This is a quote.|Perry}}
; Wikitext
<pre>
{{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}}
</pre>
; Result
{{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}}
[[Category: Templates]]
[[Category: Templates]]
[[Category: Quotation templates]]
[[Category: Quotation templates]]
Line 17: Line 54:
"description": "The quote",
"description": "The quote",
"required": true
"required": true
},
"image": {
"aliases": [
"4"
],
"label": "Image",
"description": "Add an image to go along with the quote.",
"example": "Book.png"
},
"style": {
"label": "HTML Style",
"description": "Add custom styling."
},
"author": {
"aliases": [
"2"
],
"label": "Author",
"description": "Citation"
},
"ref": {
"aliases": [
"3"
],
"label": "Ref",
"description": "Adds a reference tag"
},
"align": {
"label": "Alignment",
"description": "Left, center or right."
}
}
},
},
"paramOrder": [
"paramOrder": [
"1"
"1",
"image",
"style",
"author",
"ref",
"align"
]
]
}
}
</templatedata>}}
</templatedata>}}
</noinclude>
</noinclude>

Latest revision as of 15:11, 25 December 2023

Template documentation

Adds a blockquote.

Examples

Wikitext
{{blockquote|This is a quote.}}
Result
This is a quote.
Wikitext
{{blockquote|This is a quote.|addquotes=1}}
Result
This is a quote.
Wikitext
{{blockquote|This is a quote.|align=center}}
Result
This is a quote.
Wikitext
{{blockquote|This is a quote.|Perry}}
Result
This is a quote.
— Perry
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
This is a quote. This example also has an image, and works with or without an author.
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
Alignmentalign

Left, center or right.

Unknownoptional