Template:Quote: Difference between revisions
Appearance
No edit summary |
|||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<blockquote style="background-color: #f5f5f5; border-left: 5px solid #ccc; padding: 10px 20px; margin: 1em 0;"> | <blockquote style="background-color: #f5f5f5; border-left: 5px solid #ccc; padding: 10px 20px; margin: 1em 0;"> | ||
{{{1}}} | {{{1}}} | ||
{{#if:{{{2|}}}|<br>— {{{2}}}{{#if:{{{3|}}}|, {{{3}}}}}} | {{#if:{{{2|}}}|<br />— {{{2}}}{{#if:{{{3|}}}|, {{{3}}}}} }} | ||
</blockquote> | </blockquote> | ||
<noinclude> | |||
== Usage == | |||
This template will add a blockquote with a gray background and, optionally, an author and source. | |||
{{Quote|This is a test quote.|John Smith}} | |||
{{Quote|Another quote here.|Jane Doe|Her Famous Book}} | |||
{{Quote|Simple quote with no source.|Alice}} | |||
{{Quote|Quote with no attribution.}} | |||
[[Category:Templates]] | |||
Latest revision as of 22:03, 24 October 2025
{{{1}}}
Usage
This template will add a blockquote with a gray background and, optionally, an author and source.
This is a test quote.
— John Smith
Another quote here.
— Jane Doe, Her Famous Book
Simple quote with no source.
— Alice
Quote with no attribution.