Template:Cquote/doc: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Chris Day
imported>Chris Day
No edit summary
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=== Usage ===
=== Usage ===
The first parameter takes the quote itself, the fourth the author, and the fifth the work being quoted. The second parameter defines the size of the qute mark and the third is not used.
The first parameter takes the quote itself, the second the author, and the third the work being quoted.
See {{tl|quote}} for single 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>
{{cquote|{{Lorem}}}}
<blockquote>The ink of the learned is equal in merit to the blood of the martyrs.</blockquote>
</pre>
</pre>
gives the following result:
gives the following result:
{{cquote|{{Lorem}}}}
<blockquote>The ink of the learned is equal in merit to the blood of the martyrs.</blockquote>
 
=== Using other parameters ===
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 author and source of the quote respectively.


Or, using the {{tl|Quotation}} template,
<pre>
<pre>
{{cquote|{{Lorem}}|||Author|Work being quoted}}
{{quotation|The ink of the learned is equal in merit to the blood of the martyrs.|Louis de Bernières|Birds Without Wings}}
</pre>
</pre>
gives the following result:
gives the following result:
{{cquote|{{Lorem}}|||Author|Work being quoted}}
{{quotation|The ink of the learned is equal in merit to the blood of the martyrs.|Louis de Bernières|Birds Without Wings}}


'''Control size of quote:'''
=== Basic example using Cquote===
 
The second parameter defines the size of the quotation marks.
<pre>
<pre>
{{cquote|{{Lorem}}|60px||Author|Work being quoted}}
{{cquote|The ink of the learned is equal in merit to the blood of the martyrs.}}
</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:
{{cquote|{{Lorem}}|60px||Author|Work being quoted}}
{{cquote|The ink of the learned is equal in merit to the blood of the martyrs.}}


'''Control size of quote with a 'size', 'quotewidth' or 'width' parameter:'''
=== Define the author and source using Cquote===
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 author and source of the quote respectively.


These three parameters can be defined in any location in the template. In the following example they are tagged onto the end.
<pre>
<pre>
{{cquote|{{Lorem}}|||Author|Work being quoted|size=40px}}
{{cquote|The ink of the learned is equal in merit to the blood of the martyrs.|Louis de Bernières|Birds Without Wings}}
</pre>
</pre>
gives the following result :
gives the following result:
{{cquote|{{Lorem}}|||Author|Work being quoted|size=40px}}
{{cquote|The ink of the learned is equal in merit to the blood of the martyrs.|Louis de Bernières|Birds Without Wings}}
 
===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.
 
The third parameter was used for the desired height; See http://en.wikipedia.org/wiki/Template:Cquote

Latest revision as of 01:14, 4 March 2010

Usage

The first parameter takes the quote itself, the second the author, and the third the work being quoted. See {{quote}} for single 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>The ink of the learned is equal in merit to the blood of the martyrs.</blockquote>

gives the following result:

The ink of the learned is equal in merit to the blood of the martyrs.

Or, using the {{Quotation}} template,

{{quotation|The ink of the learned is equal in merit to the blood of the martyrs.|Louis de Bernières|Birds Without Wings}}

gives the following result:

The ink of the learned is equal in merit to the blood of the martyrs. — Louis de Bernières, Birds Without Wings

Basic example using Cquote

{{cquote|The ink of the learned is equal in merit to the blood of the martyrs.}}

gives the following result:

The ink of the learned is equal in merit to the blood of the martyrs.

Define the author and source using Cquote

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 author and source of the quote respectively.

{{cquote|The ink of the learned is equal in merit to the blood of the martyrs.|Louis de Bernières|Birds Without Wings}}

gives the following result:

The ink of the learned is equal in merit to the blood of the martyrs.

—Louis de Bernières, Birds Without Wings