Template:Quote: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
mNo edit summary
mNo edit summary
(66 intermediate revisions by 15 users not shown)
Line 1: Line 1:
<span {{#if:{{{nostyle|}}}|| style="font-family:Times New Roman;font-size:11pt;"}}>''&ldquo;{{{1}}}&rdquo;''<br/>
:<span class="quote" style="font-family:Times New Roman;font-size:11pt;font-style:italic">{{{text|&ldquo;{{{1}}}&rdquo;}}}</span>
&mdash;'''[[{{{2}}}|{{#switch:{{{4}}}|<small>({{{4}}})</small>|#default={{{2}}}}}]]'''{{#if:{{{3|}}}|, ''[[{{{3}}}]]''}}</span><noinclude>
:<span class="quote" style="font-family:Times New Roman;font-size:11pt;padding-left:15px">&mdash;{{{author|{{#rmatch:{{{2}}}|'''|{{{2}}}|'''{{#ifexist:{{{2}}}|[[:{{{2}}}]]|{{{2}}}}}'''}}}}}{{#if:{{{source|{{{3|}}}}}}|, {{{source|{{#rmatch:{{{3}}}|^"{{!}}''|{{{3}}}|''{{#ifexist:{{{3}}}|[[:{{{3}}}]]|{{{3}}}}}''}}}}}}}</span><noinclude>
==Usage==
==Usage==
For quoting. For a similar template without automatic linking, see [[Template:LLQuote|LLQuote]].
<pre>{{quote|The quote text.|Quote author|Quote source}}</pre>


NOTE. Do not use this template more than once on the same page, or errors with {{tem|randomquote}] on the Main Page may occur. For two quotes, use LLQuote the 2nd time and just add links where appropriate. For more than two quotes, you'll have to substitute this template via <nowiki>{{subst:quote|etc...}}</nowiki>.
The template automatically links to the quote author and source, if the article exists.


==Code==
To prevent automatic linking, apply bold/italic formatting to the author/source:
<pre><nowiki>{{Quote
 
|The quote.
<pre>{{quote|I'm Shadow. Shadow the Hedgehog.|'''Shadow'''|''Mario & Sonic at the Rio 2016 Olympic Games''}}</pre>
|Who said the quote.
 
|Game, year, subject etc.
To change the link destination, just use a normal piped link (e.g. <code><nowiki>[[Shadow (character)|Shadow]]</nowiki></code>).
|What the link to the character should say.
 
}}</nowiki></pre>
===Customization===
</noinclude>
The template's bold and italics can also be applied selectively, if needed:
 
<pre>{{quote|What a pest!|'''[[Wario]]''', CEO of Nintendo|''[[Wario Land 4]]'' instruction booklet}}</pre>
 
To completely omit italics from the source, use the <code>source</code> parameter or start it with a double quotation mark:
 
<pre>{{quote|SMBP left my house an absolute MESS!|BrKLnCouple|source=SMBPlumbing.com}}</pre>
<pre>{{quote|That sun is not too bright!|Mario|"[[Sneaky Lying Cheating Giant Ninja Koopas]]"}}</pre>
 
[[Category:Formatting templates]]</noinclude>

Revision as of 18:33, May 18, 2024

“{{{1}}}”
{{{2}}}

Usage

{{quote|The quote text.|Quote author|Quote source}}

The template automatically links to the quote author and source, if the article exists.

To prevent automatic linking, apply bold/italic formatting to the author/source:

{{quote|I'm Shadow. Shadow the Hedgehog.|'''Shadow'''|''Mario & Sonic at the Rio 2016 Olympic Games''}}

To change the link destination, just use a normal piped link (e.g. [[Shadow (character)|Shadow]]).

Customization

The template's bold and italics can also be applied selectively, if needed:

{{quote|What a pest!|'''[[Wario]]''', CEO of Nintendo|''[[Wario Land 4]]'' instruction booklet}}

To completely omit italics from the source, use the source parameter or start it with a double quotation mark:

{{quote|SMBP left my house an absolute MESS!|BrKLnCouple|source=SMBPlumbing.com}}
{{quote|That sun is not too bright!|Mario|"[[Sneaky Lying Cheating Giant Ninja Koopas]]"}}