Template:Cquote: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Chris Day
No edit summary
imported>Chris Day
(I'm going to minimize this tenmplate and remove parameters that I doubt will ever be used.)
Line 1: Line 1:
<includeonly>{| align="center" style="border-collapse:collapse; border-style:none; background-color:transparent;" class="cquote"
<includeonly>{| align="center" style="border-collapse:collapse; border-style:none; background-color:transparent;"
| width="20" valign="top" style="color:#B2B7F2; font-size:{{#switch:{{{size|{{{2|{{{quotewidth|{{{width|30px}}}}}}}}}}}}
| width="20" valign="top" style="color:#B2B7F2; font-size:30px; font-family:'Times New Roman',serif; font-weight:bold; text-align:left; padding:10px 10px; border:none;" | “
|10px=10px
|20px=20px
|30px=30px
|40px=40px
|50px=50px
|60px=60px
|#default=30px}}; font-family:'Times New Roman',serif; font-weight:bold; text-align:left; padding:10px 10px; border:none;" | “
| valign="top" style="padding:4px 10px; border:none;" | {{{1|Insert the text of the quote here, without quotation marks.}}}
| valign="top" style="padding:4px 10px; border:none;" | {{{1|Insert the text of the quote here, without quotation marks.}}}
| width="20" valign="bottom" style="color:#B2B7F2; font-size:{{#switch:{{{size|{{{2|{{{quotewidth|{{{width|30px}}}}}}}}}}}}
| width="20" valign="bottom" style="color:#B2B7F2; font-size:30px; font-family:'Times New Roman',serif; font-weight:bold; text-align:right; padding:10px 10px; border:none;" | ”
|10px=10px
|20px=20px
|30px=30px
|40px=40px
|50px=50px
|60px=60px
|#default=30px}}; font-family:'Times New Roman',serif; font-weight:bold; text-align:right; padding:10px 10px; border:none;" | ”
|-
|-
{{#if:{{{4|}}}{{{5|}}}|
{{#if:{{{2|}}}{{{3|}}}|
{{!}} colspan="3" style="padding-top: 10px" {{!}} {{#if:{{{4|<noinclude>Origin</noinclude>}}}|<p style="font-size:smaller;line-height:1em;text-align: right"><cite style="font-style:normal;">—{{{4}}}{{#if:{{{5|<noinclude>Source</noinclude>}}}|, {{{5}}}}}</cite></p>}}
{{!}} colspan="3" style="padding-top: 10px" {{!}} {{#if:{{{2|<noinclude>Origin</noinclude>}}}|<p style="font-size:smaller;line-height:1em;text-align: right"><cite style="font-style:normal;">—{{{2}}}{{#if:{{{3|<noinclude>Source</noinclude>}}}|, {{{3}}}}}</cite></p>}}
}}
}}
|}</includeonly><noinclude>{{TlDoc}}</noinclude>
|}</includeonly><noinclude>{{TlDoc}}</noinclude>

Revision as of 00:30, 4 March 2010

This documentation is transcluded from Template:Cquote/doc (edit | history)

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