Vorlage:Cquote/Doku: Unterschied zwischen den Versionen
section
K (indent) |
(section) |
||
Zeile 1: | Zeile 1: | ||
<includeonly>{{mergefrom|Cquotetxt}}</includeonly> | <includeonly>{{mergefrom|Cquotetxt}}</includeonly> | ||
{{Documentation subpage}}{{TOC right}} | |||
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> | <!-- 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. | '''{{tl|Cquote}}''' (for '''Centered pull-quote''') is a template meant for [[pull-quote]]s, which stand apart from the text of a page. | ||
Zeile 9: | Zeile 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 <[[blockquote]]> element, such as through the use of the {{tl|Quote}} template. | '''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 <[[blockquote]]> element, such as through the use of the {{tl|Quote}} template. | ||
==Usage== | ===Usage=== | ||
# <code><nowiki>{{cquote|quote text}}</nowiki></code> | # <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> | # <code><nowiki>{{cquote|quote text|quotewidth=40px}}</nowiki></code> or <code><nowiki>{{cquote|quote text|40px|}}</nowiki></code> | ||
Zeile 31: | Zeile 32: | ||
|5=this is five}} | |5=this is five}} | ||
</pre> | </pre> | ||
==Parameters== | ===Parameters=== | ||
; Parameter 1: text of the quote; use <code><nowiki><br /></nowiki></code> between paragraphs. | ; Parameter 1: text of the quote; use <code><nowiki><br /></nowiki></code> between paragraphs. | ||
: '''''Required''''' | : '''''Required''''' | ||
Zeile 43: | Zeile 44: | ||
;bgcolor :The color of the background. | ;bgcolor :The color of the background. | ||
==Examples== | ===Examples=== | ||
<pre>{{cquote|quote text}}</pre> | <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!--> | {{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!--> | ||
Zeile 68: | Zeile 69: | ||
<references /> | <references /> | ||
==See also== | ===See also=== | ||
Direct variants: | Direct variants: |