Template:Dquote/doc
From WikiEducator
Purpose
An alternative template to Cquote to provide a fancy (with graphical double quotes) pull-out quote, but modelled on a more 'adaptive layout'-friendly <div> rather than a <table>.
Syntax
-
{{dquote|quote text}}
-
{{dquote|quote text|author=author or speaker}}
-
{{dquote|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 {{dquote|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
{{dquote|quote text}}
"
To be, or not to be.
"
Sourced example
{{dquote |text=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.
"
- ↑ Walter Isaacson, Einstein: His Life and Universe (2007), p. 367.
Example with background color
{{dquote |Life itself is a quotation. |author=Jorge Luis Borges |bgcolor=#FFC }}
"
Life itself is a quotation.
"
Other examples
{{dquote|1=F=ma|author=[[Isaac Newton]]}}
(the 1= is necessary as quote text contains an equal sign)
"
F=ma
"
{{dquote|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]
"
See also
Acknowledgements
Template and documentation adapted from Wikipedia, Template:Dquote.