Template:Quote: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
No edit summary
 
(40 intermediate revisions by one other user not shown)
Line 1: Line 1:
<p class="quote" {{#if:{{{nostyle|}}}|| style="font-family:Times New Roman;font-size:11pt;padding:0 10px;"}}><span style="font-style:italic;">&ldquo;{{{1}}}&rdquo;</span><br>
:<span class="quote" style="font-family:Times New Roman;font-size:11pt;font-style:italic">{{{text|&ldquo;{{{1}}}&rdquo;}}}</span>
<span style="padding-left:15px;">&mdash;<span style="font-weight:bold;">[[{{{2}}}|{{#switch:{{{4}}}|{{{4}}}|#default={{{2}}}}}]]</span>{{#if:{{{3|}}}|, <span style="font-style:italic;">[[{{{3}}}]]</span>}}</span></p><noinclude>
:<span class="quote" style="font-family:Times New Roman;font-size:11pt;padding-left:15px">&mdash;{{{author|{{#rmatch:{{{2}}}|'''|{{{2}}}|'''{{#ifeq:{{{2}}}|{{PAGETITLE}}|{{{2}}}|{{#ifexist:{{{2}}}|[[:{{{2}}}]]|{{{2}}}}}}}'''}}}}}{{#if:{{{source|{{{3|}}}}}}|, {{{source|{{#rmatch:{{{3}}}|^"{{!}}''|{{{3}}}|{{#ifeq:{{{3}}}|{{PAGETITLE}}|''{{{3}}}''|{{#ifexist:{{{3}}}|[[:{{{3}}}|{{#if:{{#pos:{{{3}}}|<nowiki/> (}}|''{{#sub:{{{3}}}|0|{{#rpos:{{{3}}}|<nowiki/> (}}}}'' ({{#sub:{{{3}}}|{{#expr:{{#rpos:{{{3}}}|<nowiki/> (}}+2}}|-1}})|''{{{3}}}''}}]]|''{{{3}}}''}}}}}}}}}}}</span><noinclude>
==Usage==
==Usage==
For quoting. For a similar template without automatic linking, see {{tem|quote2}}.
<pre>{{quote|The quote text.|Quote author|Quote source}}</pre>


==Code==
===Linking===
<pre><nowiki>{{quote|The quote.|Who said the quote|Game, year, subject, etc.}}</nowiki></pre>
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:
[[Category:Formatting templates]]</noinclude>
 
<pre>{{quote|I'm Shadow. Shadow the Hedgehog.|'''Shadow'''|''Mario & Sonic at the Rio 2016 Olympic Games''}}</pre>
 
To change the link text or destination, just use a normal piped link:
 
<pre>{{quote|I can build another castle, but you can't build another princess!|[[Bowser|King Koopa]]}}</pre>
 
===Customization===
The template's bold and italics can also be applied selectively, if needed:
 
<pre>{{quote|What a pest!|'''[[Wario]]''', CEO of WarioWare|''[[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:Structural templates]]</noinclude>

Latest revision as of 11:07, May 31, 2024

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

Usage

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

Linking

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 text or destination, just use a normal piped link:

{{quote|I can build another castle, but you can't build another princess!|[[Bowser|King Koopa]]}}

Customization

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

{{quote|What a pest!|'''[[Wario]]''', CEO of WarioWare|''[[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]]"}}