Template:Quote: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
m (finally fixed for real)
(Undo revision 133141 by Willowisp (talk))
Tag: Undo
 
(15 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly><blockquote style="font-size:130%; font-family:Georgia;">''{{{1}}}''</blockquote></includeonly>
<includeonly><blockquote style="font-size:{{#if:{{{size|}}}|{{{size}}}|130%}}; font-family:Georgia;">{{#if: {{{noitalics|}}}| |''}} {{{1}}} {{#if: {{{noitalics|}}}| |''}}</blockquote></includeonly><noinclude>
<noinclude>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.


== Usage Examples ==


Example usage:
Default usage:


<code>&#123;&#123;DescriptionQuote{{!}}Your quote goes here.&#125;&#125;</code>
<pre>{{Quote|Your quote goes here.}}</pre>


Yields:
Result:
<blockquote style="font-size:130%; font-family:Georgia;">''Your quote goes here.''</blockquote></noinclude>
{{quote|Your quote goes here.}}
 
----
 
Optional {{C|size}} parameter for different quote sizes:
 
<pre>{{Quote|size=90%|Here is a smaller quote.}}</pre>
 
Result:
{{Quote|size=90%|Here is a smaller quote.}}
 
----
 
Optional {{C|noitalics}} parameter for longer quotes, such as the text found in books:
 
<pre>{{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>}}</pre>
 
Result:
{{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 version of the template is automatically applied for [[Books]] in [[Template:MiscItemPage]].</p>}}
[[Category:Templates]]
[[Category:Quotation templates]]
</noinclude>

Latest revision as of 17:48, 22 June 2024

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

Usage Examples

Default usage:

{{Quote|Your quote goes here.}}

Result:

Your quote goes here.

Optional size parameter for different quote sizes:

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

Result:

Here is a smaller quote.

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

{{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>}}

Result:

Here is a multi-paragraph quote with italics removed.

Useful for books and the like.

This version of the template is automatically applied for Books in Template:MiscItemPage.