Template:Quote: Difference between revisions
m (tighten up whitespace (no functional changes)) |
(converted manual HTML table syntax to MW table syntax, employing TemplateStyles to actually create the referenced classes that were previously nonexistent) |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly> | <templatestyles src="Template:Quote/styles.css"/><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: | ||
{{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> | ||
Latest revision as of 06:14, 3 February 2026
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)
|
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.