m
 
(33 intermediate revisions by one user not shown)
Line 1: Line 1:
{|width="{{{width}}}" align="{{{align}}}" cellspacing="4" cellpadding="4" style="font-size: 90%; padding: 4px; margin: 1em; background-color: #f9f9f9;"
+
<noinclude>
|-
+
Unnamed (positional) parameters
|align="center"|''{{{quote}}}''<br>&mdash;{{{source}}}
+
<pre>{{quote|phrase|person|source|style}}</pre>
|-}<noinclude>
+
Named parameters
----
+
<pre>{{quote|text=phrase|author=person|source=source|style=style}}</pre>
== Instructions ==
+
Example
The '''Quote''' template allows you to easily insert a quote (and its source).
+
<pre>{{quote|text=Cry “Havoc,” and let slip the dogs of war.|author=[[William Shakespeare]]
 +
|source=[[Julius Caesar (play)|''Julius Caesar'']], Act III, Scene I}}</pre>
 +
{{quote|text=Cry “Havoc,” and let slip the dogs of war.|author=[[William Shakespeare]]|source=[[Julius Caesar (play)|''Julius Caesar'']], Act III, Scene I}}
  
As a stylistic device, the quoted text is ''italicized'' in the box by default, so you don't need to put quote marks (" ") around the quoted text; the italics do the work of quote marks in this context. (Should you want to defeat any part of the default italics in the quote, put two apostrophes on each side of the quoted text you do not want italicized, <nowiki>''like this''</nowiki>.)
+
Opening citation:
 +
<pre>{{quote|A piece of wisdom.|style={{opencite}}}}</pre>
  
You can pick how wide you want the box (as px or a percentage), and how to align it (center, right, left). The parameters are:
+
Inline citation with <tt><nowiki>{{inlinecite|...}}</nowiki></tt>:
  
 
<pre>
 
<pre>
{{Quote|
+
This also reminds of the comte de Lasalle's famous declamation to Napoleon:
width=
+
{{inlinequote|«Tout hussard qui n’est pas mort à trente ans est un jean-
|align=
+
foutre»}} (he would himself die at 34).
|quote=
+
|source=
+
|}}
+
 
</pre>
 
</pre>
  
For example, entering the following:
+
This also reminds of the comte de Lasalle's famous declamation to Napoleon: {{inlinequote|«Tout hussard qui n’est pas mort à trente ans est un jean-foutre»}} (he would himself die at 34).
 
+
<pre>
+
{{Quote|
+
width=45%
+
|align=right
+
|quote=Cry "Havoc," and let slip the dogs of war.
+
|source=[[William Shakespeare]], ''[[Julius Caesar (play)|Julius Caesar]]'', Act III, Scene I.
+
|}}
+
</pre>
+
 
+
 
+
Produces this:
+
 
+
{{Quote|
+
width=45%
+
|align=right
+
|quote=Cry "Havoc," and let slip the dogs of war.
+
|source=[[w:William Shakespeare|William Shakespeare]], ''[[w:Julius Caesar (play)|Julius Caesar]]'', Act III, Scene I.
+
|}}
+
  
 +
General appearance:
 
</noinclude>
 
</noinclude>
 +
<blockquote style="font-size: 1em; font-family: Avantgarde, TeX Gyre Adventor, URW Gothic L, sans-serif; {{{style}}}"><div>{{{text|{{{1|<noinclude>{{lorem ipsum}}</noinclude><includeonly>{{error|Error: No text given for quotation (or equals sign used in the actual argument to an unnamed parameter)}}</includeonly>}}}}}}</div><span style="font-family:times; font-style:normal;">{{#if:{{{author|{{{2|<noinclude>TRUE</noinclude>}}}}}}|<div class="templatequotecite">&#8212;{{{author|{{{2|<noinclude>[[Someone's full name|Someone]]</noinclude>}}}}}}{{#if:{{{source|{{{3|<noinclude>TRUE</noinclude>}}}}}}|,&nbsp;<cite style="font-style:italic;">{{{source|{{{3|<noinclude>''Source''</noinclude>}}}}}}</cite>}}</div >}}</span></blockquote>

Latest revision as of 08:35, 5 September 2021

Unnamed (positional) parameters

{{quote|phrase|person|source|style}}

Named parameters

{{quote|text=phrase|author=person|source=source|style=style}}

Example

{{quote|text=Cry “Havoc,” and let slip the dogs of war.|author=[[William Shakespeare]]
|source=[[Julius Caesar (play)|''Julius Caesar'']], Act III, Scene I}}
Cry “Havoc,” and let slip the dogs of war.
William ShakespeareJulius Caesar, Act III, Scene I

Opening citation:

{{quote|A piece of wisdom.|style={{opencite}}}}

Inline citation with {{inlinecite|...}}:

This also reminds of the comte de Lasalle's famous declamation to Napoleon:
{{inlinequote|«Tout hussard qui n’est pas mort à trente ans est un jean-
foutre»}} (he would himself die at 34).

This also reminds of the comte de Lasalle's famous declamation to Napoleon: «Tout hussard qui n’est pas mort à trente ans est un jean-foutre» (he would himself die at 34).

General appearance:

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
SomeoneSource