Template:Quote: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
No edit summary
(Use documentation/template demo templates)
 
(11 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly><blockquote style="font-size:140%; font-family:Georgia;">''{{{1}}}''</blockquote></includeonly><noinclude>
<includeonly><blockquote style="font-size:{{#if:{{{size|}}}|{{{size}}}|130%}}; font-family:Georgia;">{{#if: {{{noitalics|}}}| |''}} {{{1}}} {{#if: {{{noitalics|}}}| |''}}</blockquote></includeonly><noinclude>{{Documentation|content=
Insert a pre-formatted blockquote for an item, class, or feature description, or simply a prominent quote from an NPC.
Insert a pre-formatted blockquote for an item, class, or feature description, or simply a prominent quote from an NPC.


Example usage:
== Examples ==


{{code|<nowiki>{{Quote|Your quote goes here.}}</nowiki>}}
{{Template demo
| style = list
| caption 1 = Default usage:
| <nowiki>{{Quote|Your quote goes here.}}</nowiki>
| caption 2 = Optional {{C|size}} parameter for different quote sizes:
| <nowiki>{{Quote|size=90%|Here is a smaller quote.}}</nowiki>
| caption 3 = Optional {{C|noitalics}} parameter for longer quotes, such as the text found in books:
| <nowiki>{{Quote|size=100%|noitalics=yes|
<p>Here is a multi-paragraph quote with italics removed.</p>
<p>Useful for books and the like.</p>
<p>This is used for Books in [[Template:MiscItemPage]]</p>
}}</nowiki>
}}


Yields:
}}
{{quote|Your quote goes here.}}</noinclude>
[[Category:Templates]]
[[Category:Quotation templates]]
</noinclude>

Latest revision as of 21:20, 19 January 2025

Template documentation

Insert a pre-formatted blockquote for an item, class, or feature description, or simply a prominent quote from an NPC.

Examples

Default usage:

Markup
{{Quote|Your quote goes here.}}
Renders as
Your quote goes here.

Optional size parameter for different quote sizes:

Markup
{{Quote|size=90%|Here is a smaller quote.}}
Renders as
Here is a smaller quote.

Optional noitalics parameter for longer quotes, such as the text found in books:

Markup
{{Quote|size=100%|noitalics=yes|

<p>Here is a multi-paragraph quote with italics removed.</p> <p>Useful for books and the like.</p> <p>This is used for Books in [[Template:MiscItemPage]]</p>

}}
Renders as

Here is a multi-paragraph quote with italics removed.

Useful for books and the like.

This is used for Books in Template:MiscItemPage