Template:Quote: Difference between revisions

From OniGalore
Jump to navigation Jump to search
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)
m (tighten up whitespace (no functional changes))
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:{{{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:{{{text-align|{{{ta|left}}}}}};">
<p class="{{#if: {{{pre|{{{p|}}}}}}|pre}}quote">{{{text|{{{t|{{{1|}}}}}}}}}</p>
<p class="{{#if:{{{pre|{{{p|}}}}}}|pre}}quote">{{{text|{{{t|{{{1|}}}}}}}}}</p>
</td></tr>
</td></tr>{{#if:{{{source|{{{s|{{{2|}}}}}}}}}|<tr><td style="text-align:right; font-size:90%;">'''{{{source|{{{s|{{{2|}}}}}}}}}'''</td></tr>}}</table></includeonly>
{{#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:



Revision as of 21:21, 5 February 2023

A simple quote template. Transcluding {{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)}} produces:

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Citation source (2nd parameter, optional)