Template:Quote/doc: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Chris Day
m (→‎Usage: second)
 
(10 intermediate revisions by one other user not shown)
Line 2: Line 2:


=== Usage ===
=== Usage ===
The first parameter takes the quote itself, the second the author, and the third the work being quoted.<br />
The first parameter takes the quote itself, the second the author, and the third the work being quoted. See {{tl|cquote}} for double quote marks.


=== Basic example ===
===Blockquote or {{tl|Quotation}} is preferable===
In most cases it is preferable to use the <nowiki><blockquote></nowiki> markup for quotations or the {{tl|Quotation}} template that uses the <nowiki><blockquote></nowiki> markup.
 
For example,
<pre>
<pre>
{{quote|{{Lorem}}}}
<blockquote>{{Lorem}}</blockquote>
</pre>
</pre>
gives the following result:
gives the following result:
{{quote|{{Lorem}}}}
<blockquote>{{Lorem}}</blockquote>


=== Using other parameters ===
Or, using the {{tl|Quotation}} template,
There are five automatic parameter that can be used with this template. The first parameter is the quotation, as seen in the example above.
 
'''Define the origin and source:'''
 
The 4th and 5th parameters define the origin and source of the quote respectively. In this example the origin is "Cicero" and the source is "de Finibus Bonorum et Malorum"
<pre>
<pre>
{{quote|{{Lorem}}|||Cicero|de Finibus Bonorum et Malorum}}
{{quotation|{{Lorem}}|Cicero|de Finibus Bonorum et Malorum}}
</pre>
</pre>
gives the following result:
gives the following result:
{{quote|{{Lorem}}|||Cicero|de Finibus Bonorum et Malorum}}
{{quotation|{{Lorem}}|Cicero|de Finibus Bonorum et Malorum}}


'''Control size of quote:'''
=== Basic example ===
 
The second parameter defines the size of the quotation marks.
<pre>
<pre>
{{quote|{{Lorem}}|60px||Cicero|de Finibus Bonorum et Malorum}}
{{quote|{{Lorem}}}}
</pre>
</pre>
gives the following result (default font size for the quote mark is 30px; other options are 10, 20, 40, 50 or 60px):
gives the following result:
{{quote|{{Lorem}}|60px||Cicero|de Finibus Bonorum et Malorum}}
{{quote|{{Lorem}}}}


'''Control size of quote with a 'size', 'quotewidth' or 'width' parameter:'''
=== Define the origin and source ===
 
There are three automatic parameter that can be used with this template. The first parameter is the quotation, as seen in the example above. The 2nd and 3rd parameters define the origin and source of the quote respectively. In this example the origin is "Cicero" and the source is "de Finibus Bonorum et Malorum"
These three parameters can be defined in any location in the template. In the following example they are tagged onto the end.
<pre>
<pre>
{{quote|{{Lorem}}|||Cicero|de Finibus Bonorum et Malorum|size=40px}}
{{quote|{{Lorem}}|Cicero|de Finibus Bonorum et Malorum}}
</pre>
</pre>
gives the following result :
gives the following result:
{{quote|{{Lorem}}|||Cicero|de Finibus Bonorum et Malorum|size=40px}}
{{quote|{{Lorem}}|Cicero|de Finibus Bonorum et Malorum}}
 
===For the record===
As used here in citizendium there is no 3rd parameter defined in the template.  Possibly this is due to it having been imported from a different location and subsequently modified. Also there is no obvious reason for using  'size', 'quotewidth' or 'width' parameters at citizendium.  This might be a remnant of an ancestor version being used in conjunction with other more complex templates.

Latest revision as of 05:43, 11 May 2023

Note: This template is for use only when single enclosed quotation marks are required for correct punctuation. Found commonly in BE, AustE, and NZE language articles, and used in Oxford University and Cambridge University publications. Rare in AmerE.

Usage

The first parameter takes the quote itself, the second the author, and the third the work being quoted. See {{cquote}} for double quote marks.

Blockquote or {{Quotation}} is preferable

In most cases it is preferable to use the <blockquote> markup for quotations or the {{Quotation}} template that uses the <blockquote> markup.

For example,

<blockquote>{{Lorem}}</blockquote>

gives the following result:

Lorem ipsum dolor sit amet, consectetur adipisicing 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.

Or, using the {{Quotation}} template,

{{quotation|{{Lorem}}|Cicero|de Finibus Bonorum et Malorum}}

gives the following result:

Lorem ipsum dolor sit amet, consectetur adipisicing 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. — Cicero, de Finibus Bonorum et Malorum

Basic example

{{quote|{{Lorem}}}}

gives the following result:

Lorem ipsum dolor sit amet, consectetur adipisicing 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.

Define the origin and source

There are three automatic parameter that can be used with this template. The first parameter is the quotation, as seen in the example above. The 2nd and 3rd parameters define the origin and source of the quote respectively. In this example the origin is "Cicero" and the source is "de Finibus Bonorum et Malorum"

{{quote|{{Lorem}}|Cicero|de Finibus Bonorum et Malorum}}

gives the following result:

Lorem ipsum dolor sit amet, consectetur adipisicing 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.

—Cicero, de Finibus Bonorum et Malorum