Template:Cquote/doc: Difference between revisions

section
m (indent)
(section)
Line 1:
<includeonly>{{mergefrom|Cquotetxt}}</includeonly><noinclude>{{documentation subpage}}</noinclude>{{-}}{{interwikitmp-grp|wsp=|cms=}}{{TOCright}}
{{Documentation subpage}}{{TOC right}}
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
'''{{tl|Cquote}}''' (for '''Centered pull-quote''') is a template meant for [[pull-quote]]s, which stand apart from the text of a page.
Line 9 ⟶ 10:
'''NOTE''': This template should '''not be used''' for [[block quote]]s in article text. For long quotations in the text, the [[Wikipedia:Manual of Style#Quotations|Manual of Style]] recommends using the HTML &lt;[[blockquote]]&gt; element, such as through the use of the {{tl|Quote}} template.
 
===Usage===
# <code><nowiki>{{cquote|quote text}}</nowiki></code>
# <code><nowiki>{{cquote|quote text|quotewidth=40px}}</nowiki></code> or <code><nowiki>{{cquote|quote text|40px|}}</nowiki></code>
Line 31 ⟶ 32:
|5=this is five}}
</pre>
===Parameters===
; Parameter 1: text of the quote; use <code><nowiki><br /></nowiki></code> between paragraphs.
: '''''Required'''''
Line 43 ⟶ 44:
;bgcolor :The color of the background.
 
===Examples===
<pre>{{cquote|quote text}}</pre>
{{cquote|External success has to do with people who may see me as a model, or an example, or a representative. As much as I may dislike or want to reject that responsibility, this is something that comes with public success. It's important to give others a sense of hope that it is possible and you can come from really different places in the world and find your own place in the world that's unique for yourself.|4=[[Amy Tan]]}}<!--This is a bad example, as it is illustrating use of the template in article text, not as a pull-quote!-->
Line 68 ⟶ 69:
<references />
 
===See also===
 
Direct variants: