Template:Quote: Difference between revisions
Jump to navigation
Jump to search
(trying to fix super-WTF code) |
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) |
||
Line 1: | Line 1: | ||
<includeonly><table class="tpl-quote" style="background-color: transparent; width: {{{width|{{{w|auto}}}}}}; margin: 5px 1em 5px 4em;"> | <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| | {{#if:{{{source|{{{s|{{{2|}}}}}}}}} |<tr><td style="text-align: right; font-size: 90%;">'''{{{source|{{{s|{{{2|}}}}}}}}}'''</td></tr>}} | ||
</table></includeonly> | </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 12:51, 5 January 2022
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) |