Template:Cquote/doc: Difference between revisions
imported>Chris Day No edit summary |
imported>Chris Day No edit summary |
||
(7 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
=== Usage === | === Usage === | ||
The first parameter takes the quote itself, the | 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. | |||
=== | ===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> | ||
<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: | ||
<blockquote>The ink of the learned is equal in merit to the blood of the martyrs.</blockquote> | |||
Or, using the {{tl|Quotation}} template, | |||
<pre> | <pre> | ||
{{ | {{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: | ||
{{ | {{quotation|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=== | |||
<pre> | <pre> | ||
{{cquote| | {{cquote|The ink of the learned is equal in merit to the blood of the martyrs.}} | ||
</pre> | </pre> | ||
gives the following result | gives the following result: | ||
{{cquote| | {{cquote|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. | |||
<pre> | <pre> | ||
{{cquote| | {{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| | {{cquote|The ink of the learned is equal in merit to the blood of the martyrs.|Louis de Bernières|Birds Without Wings}} | ||
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 |