Jump to content

Template:Quote: Difference between revisions

deleted unneeded/non-working parameters; documented width parameter and linked to other quote templates
m (tighten up whitespace (no functional changes))
(deleted unneeded/non-working parameters; documented width parameter and linked to other quote templates)
 
Line 1: Line 1:
<includeonly><table class="tpl-quote" cellspacing=0 cellpadding=0 style="background-color:transparent; width:{{{width|{{{w|auto}}}}}}; margin:5px 1em 5px 4em; font-size:90%">
<includeonly><table class="tpl-quote" cellspacing=0 cellpadding=0 style="background-color:transparent; width:{{{w|auto}}}; margin:5px 1em 5px 4em; font-size:90%">
<tr><td style="border-left:outset #e0e0e0; padding:0em 1em; text-align:{{{text-align|{{{ta|left}}}}}};">
<tr><td style="border-left:outset #e0e0e0; padding:0em 1em; text-align:left;"><p class="quote">{{{1|}}}</p></td></tr>{{#if:{{{2|}}}|<tr><td style="text-align:right; font-size:90%;">'''{{{2|}}}'''</td></tr>}}</table></includeonly>
<p class="{{#if:{{{pre|{{{p|}}}}}}|pre}}quote">{{{text|{{{t|{{{1|}}}}}}}}}</p>
</td></tr>{{#if:{{{source|{{{s|{{{2|}}}}}}}}}|<tr><td style="text-align:right; font-size:90%;">'''{{{source|{{{s|{{{2|}}}}}}}}}'''</td></tr>}}</table></includeonly>
<noinclude>A simple quote template. Transcluding <tt><nowiki>{{Quote|Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.|Citation source (2nd parameter, optional)}}</nowiki></tt> produces:
<noinclude>A simple quote template. Transcluding <tt><nowiki>{{Quote|Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.|Citation source (2nd parameter, optional)}}</nowiki></tt> produces:


{{Quote|Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.|Citation source (2nd parameter, optional)}}
{{Quote|Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.|Citation source (2nd parameter, optional)}}
You can also supply the parameter "w=x%" to set the quote to that width, otherwise it will use "width:auto".
Also see the more complex [[Template:Quotebox]] which supplies a shaded background for the quote, and [[Template:Pullquote]].


[[Category:Message box templates]]</noinclude>
[[Category:Message box templates]]</noinclude>