Difference between revisions of "Template:Quote"

From Geohashing
imported>Tjtrumpet2323
m
imported>TheJosh
(Fixed some bugs in the ParserFunctions for this template. Hopefully I haven't broken anything...)
Line 1: Line 1:
{| cellspacing="4" cellpadding="4" style="width:{{{width}}}; float:{{{1|align|right}}}; border: 1px solid #aaa; font-size:90%; padding:4px; margin: {{ #switch: {{{align}}} | left = 1em 1em 1em 0em | center = auto | 1em 0em 1em 1em }}; background-color: #f9f9f9;clear:{{{1|align}}};"
+
{| cellspacing="4" cellpadding="4" style="width:{{{width|auto}}}; float:{{{1|left}}}; border: 1px solid #aaa; font-size:90%; padding:4px; margin: {{ #switch: {{{1|left}}} | left = 1em 1em 1em 0em | center = auto | 1em 0em 1em 1em }}; background-color: #f9f9f9; clear:{{{1|left}}};"
 
|width=20 valign="top" style="font-size:35px; font-family:'Times New Roman',serif; font-weight:bold; text-align:left; padding:4px;"|“
 
|width=20 valign="top" style="font-size:35px; font-family:'Times New Roman',serif; font-weight:bold; text-align:left; padding:4px;"|“
 
|style="border-style:none;padding:4px;"|<div">{{{2|...but don't quote me on that}}}</div>
 
|style="border-style:none;padding:4px;"|<div">{{{2|...but don't quote me on that}}}</div>
Line 6: Line 6:
 
|colspan=3 style="text-align:right; padding-right: 2em;"|<div class="templatequotecite">&#8212;<cite>{{{3|Anon}}}</cite></div>
 
|colspan=3 style="text-align:right; padding-right: 2em;"|<div class="templatequotecite">&#8212;<cite>{{{3|Anon}}}</cite></div>
 
|}<noinclude>
 
|}<noinclude>
 +
<div style="clear: both;"></div>
 
== Usage ==
 
== Usage ==
 
  <nowiki>{{quote|alignment|This is a quote|attribution|width=400}}</nowiki>
 
  <nowiki>{{quote|alignment|This is a quote|attribution|width=400}}</nowiki>

Revision as of 12:16, 20 March 2009

<div">...but don't quote me on that
Anon

Usage

{{quote|alignment|This is a quote|attribution|width=400}}

For use in quoting people within text.

  • Alignment may be left/center/right.
  • Width parameter is optional, but recommended, lest your quote stretch out horizontally to all of infinity.
  • Normal rules of wikitext apply within the quote. Make sure to preview, however.