19,580
edits
m (fixed the conditional and reduced the font size so that quotes take up less space and don't blend in with regular text so much) |
(added font size parameter, renamed "w" parameter to "width") |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><table class="tpl-quote" cellspacing=0 cellpadding=0 style="background-color: transparent; width: {{{width | <includeonly><table class="tpl-quote" cellspacing=0 cellpadding=0 style="background-color:transparent; width:{{{width|auto}}}; margin:5px 1em 5px 4em; font-size:{{{size|90%}}};"> | ||
<tr><td style="border-left:outset #e0e0e0; padding: 0em 1em; text-align: | <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:{{{size|90%}}};">'''{{{2|}}}'''</td></tr>}}</table></includeonly> | ||
<p class=" | |||
</td></tr> | |||
{{#if: | |||
</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)}} | ||
==Optional parameters== | |||
*'''width=x%''' will set the quote box's width on the page; otherwise it will use "width:auto". | |||
*'''size=x%''' will set the font size; default is 90%. | |||
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> |