Template:Quote: Difference between revisions
Fabrice P. Laussy's Web
Fabrice (talk | contribs)
m 1 revision imported
Fabrice (talk | contribs)
m 1 revision imported
 
(One intermediate revision by one other user not shown)
Line 33: Line 33:
General appearance:
General appearance:
</noinclude>
</noinclude>
<blockquote style="font-size: 1em; font-family: Avantgarde, TeX Gyre Adventor, URW Gothic L, sans-serif; {{{style|}}}"><div>
<blockquote style="font-size: 1em; font-family: Avantgarde, TeX Gyre Adventor, URW Gothic L, sans-serif; {{{style|}}}">
{{#if:{{{text|}}}|
{{#if:{{{text|{{{1|}}}}}}|
   {{#ifeq:{{{style|}}}|{{opencite}}|«{{{text}}}»|{{{text}}}}}
   {{#ifeq:{{{style|}}}|{{opencite}}|
|{{#if:{{{1|}}}|
    «{{#invoke:Quote|process|{{{text|{{{1|}}}}}}}}»|
  {{#ifeq:{{{style|}}}|{{opencite}}|«{{#replace:{{{1}}}|=|__EQUALS__}}»|{{#replace:{{{1}}}|=|__EQUALS__}}}}
    {{#invoke:Quote|process|{{{text|{{{1|}}}}}}}}
|<noinclude>{{lorem ipsum}}</noinclude><includeonly>{{error|Error: No text given for quotation}}</includeonly>
  }}
}}}}</div><span style="font-family:times; font-style:normal;">{{#if:{{{author|{{{2|<noinclude>TRUE</noinclude>}}}}}}|<div class="templatequotecite">—{{{author|{{{2|<noinclude>[[Someone's full name|Someone]]</noinclude>}}}}}}{{#if:{{{source|{{{3|<noinclude>TRUE</noinclude>}}}}}}|, <cite style="font-style:italic;">{{{source|{{{3|<noinclude>''Source''</noinclude>}}}}}}</cite>}}</div>}}</span></blockquote>
|
  <noinclude>{{lorem ipsum}}</noinclude><includeonly>{{error|Error: No text given for quotation}}</includeonly>
}}
{{#if:{{{author|{{{2|<noinclude>TRUE</noinclude>}}}}}}|
  <div class="templatequotecite" style="font-family:times; font-style:normal;">
    &nbsp;{{{author|{{{2|<noinclude>[[Someone's full name|Someone]]</noinclude>}}}}}}{{#if:{{{source|{{{3|<noinclude>TRUE</noinclude>}}}}}}|
      , <cite style="font-style:italic;">{{{source|{{{3|<noinclude>''Source''</noinclude>}}}}}}</cite>
    |}}
  </div>
|}}
</blockquote>

Latest revision as of 10:45, 31 December 2025

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 Shakespeare, Julius Caesar, Act III, Scene I

Opening citation:

{{quote|text=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).

If there is an equal sign in the quoted text, either escape those as = or add text= before the citation, e.g.:

{{quote|text=These excitons decay by
acoustic phonon emission to populate the k = 0 exci-
tonic mode, where a population buildup occurs. The
output from the exciton boser (coherent state of k =
0 excitons) is light generated by radiative recombi-
nation.}}

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.

— Someone, Source