Jump to content

Template:Quote: Difference between revisions

111 bytes removed ,  Tuesday at 06:14
converted manual HTML table syntax to MW table syntax, employing TemplateStyles to actually create the referenced classes that were previously nonexistent
(added font size parameter, renamed "w" parameter to "width")
(converted manual HTML table syntax to MW table syntax, employing TemplateStyles to actually create the referenced classes that were previously nonexistent)
 
Line 1: Line 1:
<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%}}};">
<templatestyles src="Template:Quote/styles.css"/><includeonly>
<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>
{| class="tpl-quote" style="width:{{{width|auto}}}; font-size:{{{size|90%}}};" cellspacing=0 cellpadding=0
|-
|<div class="tpl-quote-quote">{{{1|}}}</div>
|-
|<div class="tpl-quote-citation">{{#if:{{{2|}}}|'''{{{2|}}}'''}}</div>
|}</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: