Template:Cquote/doc: Difference between revisions

(Imported from the English Wikipedia at Wp:Template:Cquote/doc, in accordance with the terms of CC-BY-SA-3.0, for full attribution see its edit history [https://En.Wikipedia.org/w/index.php?title=Template:Cquote/doc&action=history here]])
 
Line 5: Line 5:


==Usage==
==Usage==
'''''Centered quote''''' – for quotes, this {{tag|Templates|template}} provides a centred, borderless quote, with scalable decorative quotation marks, and optional attribution of the source of the quote.  It can be used with or without the names of the parameters.
'''''Centered quote''''' – for quotes, this [[:Category:Templates|template]] provides a centred, borderless quote, with scalable decorative quotation marks, and optional [[attribution]] of the source of the quote.  It can be used with or without the names of the parameters.


===Syntax===
===Syntax===
Line 23: Line 23:
;<code>quotealign</code>: Set to 'center' to centre-align the quote text; this parameter is disabled in article space.
;<code>quotealign</code>: Set to 'center' to centre-align the quote text; this parameter is disabled in article space.
'''''Deprecated''''':
'''''Deprecated''''':
;<code style=color:DarkRed>wide</code>: In older versions of the template, when this was set to 'yes', the quote expanded to the entire width of the page, which was useful for long quotes; however, it clashed with other floating objects, such as infoboxes, and the template now auto expands and line wraps as needed (full page, or within a <code>|width=</code> constraint).  This parameter is disabled in article space.
;<code style=color:DarkRed>wide</code>: In older versions of the template, when this was set to 'yes', the quote expanded to the entire width of the page, which was useful for long quotes; however, it clashed with other floating objects, such as [[:Category:Infobox templates|infoboxes]], and the template now auto expands and line wraps as needed (full page, or within a <code>|width=</code> constraint).  This parameter is disabled in article space.


===Simple example===
===Simple example===
<pre>{{Cquote|quote text}}</pre>
<pre>{{Cquote|To be, or not to be ...}}</pre>The above code will generate the following:
{{Cquote|To be, or not to be ...}}
{{Cquote|To be, or not to be ...}}


===Sourced example===
===Sourced example===
This includes a citation, which is then displayed in the 'References' section.
<pre>{{Cquote|Life is like riding a bicycle.  To keep your balance you must keep moving.
<pre>{{Cquote|Life is like riding a bicycle.  To keep your balance you must keep moving.
|author={{Wp|Albert Einstein}}
|author={{Wp|Albert Einstein}}
|source=in a letter to his son<ref>{{Wp|Walter Isaacson}}, ''Einstein: His Life and Universe'' (2007), p. 367.</ref>
|source=in a letter to his son<ref>{{Wp|Walter Isaacson}}, ''Einstein: His Life and Universe'' (2007), p. 367.</ref>
}}</pre>
}}</pre>The above code will generate the following:


{{Cquote|Life is like riding a bicycle.  To keep your balance you must keep moving.
{{Cquote|Life is like riding a bicycle.  To keep your balance you must keep moving.
Line 172: Line 173:
}
}
},
},
"description": "This template is intended for quotes; usually this is not appropriate for encyclopedia articles. The (En-Wp) Manual of Style guidelines for block quotations recommend formatting block quotations using the {{Quote}} template or the HTML <blockquote> element.",
"description": "This template is intended for quotes; usually this is not appropriate for encyclopedia articles. The (En-Wp) Manual of Style guidelines for block quotations recommend formatting block quotations using the {{Wp|Template:Quote}} template or the HTML <blockquote> element.",
"paramOrder": [
"paramOrder": [
"quote",
"quote",
Line 195: Line 196:
"format": "block"
"format": "block"
}</templatedata><includeonly>
}</templatedata><includeonly>
[[Category:Templates]]</includeonly>
[[Category:Documentation templates]]</includeonly>