Template:Blockquote: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
No edit summary
(New demo template)
 
(28 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>
<includeonly><center class="noexcerpt">
 
{| style="background: none;"
 
|-
{{#if: {{{image|}}} {{{4|}}} | [[File:{{{image|{{{4}}}}}}|64px|{{#if:{{{link|}}}|link={{{link}}}}}]]}}
{{#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>
<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></includeonly><noinclude>{{documentation|content=Adds a 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 ==
=== Example 1 ===
{{Template demo
{{blockquote|This is a quote.}}
| style = list
| <nowiki>{{blockquote|This is a quote.}}</nowiki>
| <nowiki>{{blockquote|This is a quote.|Author}}</nowiki>
| <nowiki>
{{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
}}</nowiki>
}}


=== Example 2 ===
{{blockquote|This is a quote.|Perry}}
[[Category: Templates]]
[[Category: Templates]]
[[Category: Quotation templates]]
[[Category: Quotation templates]]
Line 23: Line 36:
"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 23:01, 19 July 2024

Template documentation

Adds a blockquote.

Examples

Markup
{{blockquote|This is a quote.}}
Renders as
This is a quote.
Markup
{{blockquote|This is a quote.|Author}}
Renders as
This is a quote.
Author
Markup
{{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
}}
Renders as
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