Difference between revisions of "Template:Cquote"
From Worms Knowledge Base
m |
Explorer09 (Talk | contribs) m |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | {| align="center" style="border-collapse: collapse; border-style: none; background-color: transparent;" class="cquote" | |
− | + | |- | |
− | + | | width="20" valign="top" style="color: #B2B7F2; font-size: 35px; font-family: 'Times New Roman', serif; font-weight: bold; text-align: left; padding: 10px 10px;" | “ | |
− | + | | valign="top" style="padding: 20px 5px 40px 5px;" | {{{1}}} | |
− | + | | width="20" valign="bottom" style="color: #B2B7F2; font-size: 36px; font-family: 'Times New Roman', serif; font-weight: bold; text-align: right; padding: 10px 10px;" | ” | |
− | + | |- | |
− | + | | colspan="3" style="font-size: smaller; text-align: right;" | {{#if:{{{2|}}}|—{{{2}}}}}<noinclude>—{{{2}}}</noinclude> | |
− | </ | + | |}<noinclude> |
+ | ---- | ||
+ | |||
+ | '''<nowiki>{{Cquote}}</nowiki>''' (for '''Centered pull-quote''') is a template meant for [[w:Pull-quote|pull-quotes]], which stand apart from the text of a page. | ||
+ | |||
+ | * '''NOTE''': This template should not be used for [[w:Block quotation|block quotations]] in article text. For long quotations in the text, the wikipedia [[w:Wikipedia:Manual of Style#Quotations|Manual of Style]] recommends using the HTML <blockquote> element. | ||
+ | * 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. | ||
+ | |||
+ | === Syntax === | ||
+ | # <code><nowiki>{{cquote|quote text}}</nowiki></code> | ||
+ | # <code><nowiki>{{cquote|quote text|author or speaker AND/OR title of article, speech, book, etc.}}</nowiki></code> | ||
+ | |||
+ | '''Only the first parameter is required.''' | ||
+ | |||
+ | '''Note''': if the quote text contains one or more "=" (equal signs), then the template must be called as <nowiki>{{cquote|</nowiki>'''<span style="color:red;">1=</span>'''<nowiki>quote text}}</nowiki> (see [[metawikipedia:Help:Templates#Equals sign in parameter value|"Equals sign in parameter value"]]) | ||
+ | </noinclude> |
Latest revision as of 12:19, 19 January 2010
“ | {{{1}}} | ” |
—{{{2}}} |
{{Cquote}} (for Centered pull-quote) is a template meant for pull-quotes, which stand apart from the text of a page.
- NOTE: This template should not be used for block quotations in article text. For long quotations in the text, the wikipedia Manual of Style recommends using the HTML <blockquote> element.
- 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.
Syntax
-
{{cquote|quote text}}
-
{{cquote|quote text|author or speaker AND/OR title of article, speech, book, etc.}}
Only the first parameter is required.
Note: if the quote text contains one or more "=" (equal signs), then the template must be called as {{cquote|1=quote text}} (see "Equals sign in parameter value")