Template:Cquote/doc

From WikiEducator
Jump to: navigation, search

Usage

{{Cquote}} is used to display a quotation centered on the page, and surrounded by large quotation marks. Consider using {{Cquote}} to

  • highlight a quotation from the text on the page (called a pull-quote in journalism and publishing), or
  • display a quotation at the top of a page or section, as a way to engage the reader.

Syntax

  1. {{cquote|quote text}}
  2. {{cquote|quote text|author=author or speaker}}
  3. {{cquote|quote text|author=author or speaker|source=title of article, speech, book, etc.}}

Parameters

Parameter 1
text of the quote; use <br /> between paragraphs.
Required
Note: if the quote text contains one or more "=" (equal signs), then the template must be called as {{cquote|1=quote text}} (see Restrictions on parameter values for additional discussion and methods)
quotewidth
The size of the quotation marks; default=35px; options=10px, 30px, 40px, 50px, 60px.
author
Name of the person that wrote or spoke the text being quoted. Can include wiki syntax.
source
Source of the quote (publication title, speech, etc.). Can include wiki syntax.
bgcolor
The color of the background--see Help:Colors for options.
wide
When set to "yes", the quote expands to the entire width of the page. Useful for small quotes, but may clash with other floating objects, such as infoboxes.

Simple example

{{cquote|quote text}}
To be, or not to be.


Sourced example

{{cquote
|Life is like riding a bicycle. To keep your balance you must keep moving.
|author=[[Albert Einstein]]
|source=in a letter to his son<ref>Walter Isaacson, ''Einstein: His Life and Universe'' (2007), p. 367.</ref>
}}
Life is like riding a bicycle. To keep your balance you must keep moving.

Albert Einstein, in a letter to his son[1]


  1. Walter Isaacson, Einstein: His Life and Universe (2007), p. 367.

Example with background color

{{cquote
|Life itself is a quotation.
|author=Jorge Luis Borges
|bgcolor=#FFC
}}


Life itself is a quotation.

—Jorge Luis Borges


Other examples

{{cquote|1=F=ma|author=[[Isaac Newton]]}}

(the 1= is necessary as quote text contains an equal sign)

F=ma

Isaac Newton


{{cquote|1=Thus:
:<math>E=mc^2</math>|author=[[Albert Einstein]]}}

(quote text contains an equal sign and math syntax)

Thus:
[math]E=mc^2[/math]

Albert Einstein


See also

Acknowledgements

Template and documentation adapted from Wikipedia, Template:Cquote.