Difference between revisions of "Template:CQuote"

From Sugar Labs
Jump to navigation Jump to search
(Created page with "<div style="float:{{{float|right}}};width:400px;margin:2em;"> {| |valign="top" | 20px  || {{{text}}} 20px |} <p style="font-...")
 
Line 1: Line 1:
 
<div style="float:{{{float|right}}};width:400px;margin:2em;">
 
<div style="float:{{{float|right}}};width:400px;margin:2em;">
 
{|
 
{|
|valign="top" | [[Image:cquote1.svg|20px]]&nbsp; || {{{text}}}&nbsp;[[Image:cquote2.svg|20px]]
+
|valign="top" | [[File:cquote1.svg|20px]]&nbsp; || {{{1}}}&nbsp;[[File:cquote2.svg|20px]]
 
|}
 
|}
 
<p style="font-size:smaller;line-height:1em;text-align: right"><cite style="font-style:normal;">—{{#if:{{{source|}}}|{{{source}}}|}}{{#if:{{{source|}}}|{{#if:{{{author|}}}|,&nbsp;|}}|}}{{#if:{{{author|}}}|{{{author}}}|}}</cite></p></div>
 
<p style="font-size:smaller;line-height:1em;text-align: right"><cite style="font-style:normal;">—{{#if:{{{source|}}}|{{{source}}}|}}{{#if:{{{source|}}}|{{#if:{{{author|}}}|,&nbsp;|}}|}}{{#if:{{{author|}}}|{{{author}}}|}}</cite></p></div>
Line 9: Line 9:
  
 
----
 
----
 +
'''Usage'''
 +
<nowiki>{{CQuote|The wisdom of the wise, and the experience of ages, may be preserved by quotation.
 +
|author=Benjamin Disraeli (1804 - 1881)}}</nowiki>
 +
 +
{{CQuote|The wisdom of the wise, and the experience of ages, may be preserved by quotation.
 +
|author=Benjamin Disraeli (1804 - 1881)}}
 +
 
'''Parameters:'''
 
'''Parameters:'''
 
* text - the quote
 
* text - the quote

Revision as of 03:26, 28 February 2011

Cquote1.svg  {{{1}}} Cquote2.svg




Usage

{{CQuote|The wisdom of the wise, and the experience of ages, may be preserved by quotation.
|author=Benjamin Disraeli (1804 - 1881)}}
Cquote1.svg  The wisdom of the wise, and the experience of ages, may be preserved by quotation.

 Cquote2.svg

—Benjamin Disraeli (1804 - 1881)


Parameters:

  • text - the quote
  • source (optional) - the publication in which the quote was made (no automatic referencing)
  • author (optional) - the author of the quote (no automatic referencing)
  • float (optional) - float value (one of left, right, none; default: right)