Ad placeholder

Template:Quote: Difference between revisions

Jump to navigation Jump to search
add noitalics parameter
m (testing space before and after parameter insertion to support quotes that begin or end with a single-quote character)
(add noitalics parameter)
Line 1: Line 1:
<includeonly><blockquote style="font-size:{{#if:{{{size|}}}|{{{size}}}|130%}}; 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>
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.


Line 5: Line 5:
Default usage:
Default usage:


{{code|<nowiki>{{Quote|Your quote goes here.}}</nowiki>}}
<pre><nowiki>{{Quote|Your quote goes here.}}</nowiki></pre>


Result:
Result:
{{quote|Your quote goes here.}}
{{quote|Your quote goes here.}}


 
----


Optional {{C|size}} parameter for different quote sizes:
Optional {{C|size}} parameter for different quote sizes:


{{code|<nowiki>{{Quote|size=90%|Here is a smaller quote.}}</nowiki>}}
<pre><nowiki>{{Quote|size=90%|Here is a smaller quote.}}</nowiki></pre>


Result:
Result:
{{Quote|size=90%|Here is a smaller quote.}}
{{Quote|size=90%|Here is a smaller quote.}}
----
Optional {{C|noitalics}} parameter for longer quotes, such as the text found in books:
<pre><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>}}</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:Weapon Page Templates]]
[[Category:Weapon Page Templates]]
</noinclude>
</noinclude>

Navigation menu