Template:Cquote/doc: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Chris Day
(New page: === 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 i...)
 
imported>Chris Day
No edit summary
Line 4: Line 4:
=== Basic example ===
=== Basic example ===
<pre>
<pre>
{{quote|{{Lorem}}}}
{{cquote|{{Lorem}}}}
</pre>
</pre>
gives the following result:
gives the following result:
{{quote|{{Lorem}}}}
{{cquote|{{Lorem}}}}


=== Using other parameters ===
=== Using other parameters ===
Line 17: Line 17:


<pre>
<pre>
{{quote|{{Lorem}}|||Author|Work being quoted}}
{{cquote|{{Lorem}}|||Author|Work being quoted}}
</pre>
</pre>
gives the following result:
gives the following result:
{{quote|{{Lorem}}|||Author|Work being quoted}}
{{cquote|{{Lorem}}|||Author|Work being quoted}}


'''Control size of quote:'''
'''Control size of quote:'''
Line 26: Line 26:
The second parameter defines the size of the quotation marks.
The second parameter defines the size of the quotation marks.
<pre>
<pre>
{{quote|{{Lorem}}|60px||Author|Work being quoted}}
{{cquote|{{Lorem}}|60px||Author|Work being quoted}}
</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 (default font size for the quote mark is 30px; other options are 10, 20, 40, 50 or 60px):
{{quote|{{Lorem}}|60px||Author|Work being quoted}}
{{cquote|{{Lorem}}|60px||Author|Work being quoted}}


'''Control size of quote with a 'size', 'quotewidth' or 'width' parameter:'''
'''Control size of quote with a 'size', 'quotewidth' or 'width' parameter:'''
Line 35: Line 35:
These three parameters can be defined in any location in the template. In the following example they are tagged onto the end.
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}}|||Author|Work being quoted|size=40px}}
{{cquote|{{Lorem}}|||Author|Work being quoted|size=40px}}
</pre>
</pre>
gives the following result :
gives the following result :
{{quote|{{Lorem}}|||Author|Work being quoted|size=40px}}
{{cquote|{{Lorem}}|||Author|Work being quoted|size=40px}}


===For the record===
===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.
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.

Revision as of 05:27, 3 March 2010

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.

Basic example

{{cquote|{{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.

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.

{{cquote|{{Lorem}}|||Author|Work being quoted}}

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.

Control size of quote:

The second parameter defines the size of the quotation marks.

{{cquote|{{Lorem}}|60px||Author|Work being quoted}}

gives the following result (default font size for the quote mark is 30px; other options are 10, 20, 40, 50 or 60px):

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.

—60px

Control size of quote with a 'size', 'quotewidth' or 'width' parameter:

These three parameters can be defined in any location in the template. In the following example they are tagged onto the end.

{{cquote|{{Lorem}}|||Author|Work being quoted|size=40px}}

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.

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.