Vorlage:Cquote/Doku: Unterschied zwischen den Versionen
Resolving self-contradictory advice; noting where this CAN be used well. Fixed wretched and in parts completely smartassy documentation.
(→Parameters: wide) |
(Resolving self-contradictory advice; noting where this CAN be used well. Fixed wretched and in parts completely smartassy documentation.) |
||
Zeile 4: | Zeile 4: | ||
'''{{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. | ||
* | * '''NOTE''': This template should '''not be used''' for [[block quotation]]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. | ||
* Pull-quotes work best when used with short quotes, and at the start or end of a section, to help emphasize the content of the section. | * Pull-quotes work best when used with short quotes, and at the start or end of a section, to help emphasize the content of the section. | ||
* For shorter pull-quotes of 50 words or fewer in a similar style, consider using {{tl|Rquote}} which sets the quote off to either the right or left as in a magazine [[sidebar]]. | * For shorter pull-quotes of 50 words or fewer in a similar style, consider using {{tl|Rquote}} which sets the quote off to either the right or left as in a magazine [[sidebar]]. This can be effective on [[WP:ESSAY|essay]] pages and [[WP:WIKIPROJECT|WikiProject]] homepages. | ||
===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> | ||
# <code><nowiki>{{cquote|quote text|quote width in pixels|| | # <code><nowiki>{{cquote|quote text|quote width in pixels||title of article, speech, book, etc.|author or speaker}}</nowiki></code> | ||
;Only the first parameter is required. | ;Only the first parameter is required. | ||
:But since sizes are slotted into the second parameter place by default, to cite a source one must deliberately define dummy parameters for those (abusing the template logic which expects numbers), or explicitly define the source publication and author as 4= and 5= respectively (using them as named parameters—the preprocessor takes such fine): | :But since sizes are slotted into the second parameter place by default, to cite a source one must deliberately define dummy parameters for those (abusing the template logic which expects numbers), or explicitly define the source publication and author as 4= and 5= respectively (using them as named parameters—the preprocessor takes such fine): | ||
{{cquote|Publishers of English classics for the educational trade, [[Harrap]] was also known for publishing finely illustrated books by Rackham, Gooden, and others, and as the publisher of Winston Churchill. | {{cquote|Publishers of English classics for the educational trade, [[Harrap]] was also known for publishing finely illustrated books by Rackham, Gooden, and others, and as the publisher of Winston Churchill. |