Difference between revisions of "Template:Cquote"

From Worms Knowledge Base

Jump to: navigation, search
m (very nice, but let's see if we can make a little less space-wasting)
m
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<table align="center" style="border-collapse:collapse; border-style:none; background-color:transparent;" class="cquote">
+
{| align="center" style="border-collapse: collapse; border-style: none; background-color: transparent;" class="cquote"
<tr>
+
|-
  <td 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;"></td>
+
| 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;" |
  <td valign="top" style="padding:4px 10px;"><i>{{{1}}}</i></td>
+
| valign="top" style="padding: 20px 5px 40px 5px;" | {{{1}}}
  <td 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;"></td>
+
| 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;" |
</tr>
+
|-
{{#if:{{{2|}}}|<tr><td height="1" colspan="3" align="right" style="font-size: xx-small;">- {{{2}}}</td></tr>}}
+
| colspan="3" style="font-size: smaller; text-align: right;" | {{#if:{{{2|}}}|—{{{2}}}}}<noinclude>—{{{2}}}</noinclude>
</table>
+
|}<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 &lt;blockquote&gt; 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

  1. {{cquote|quote text}}
  2. {{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")

Personal tools