Template:Quote: Difference between revisions
Appearance
SuperAdmin1 (talk | contribs) Create Quote template for displaying formatted quotations |
SuperAdmin1 (talk | contribs) Add Quote template with styled quotation box |
||
| Line 1: | Line 1: | ||
<div class="quotebox" style="background-color: #F9F9F9; border-left: 4px solid #0066CC; padding: 15px 20px; margin: 1em 0; font-family: Georgia, serif;"> | |||
<div style="font-size: 1.1em; line-height: 1.6; color: #333;">{{#if:{{{text|}}}|"{{{text}}}"{{!}}{{{1|}}}}}</div> | |||
{{#if:{{{author|}}}|<div style="margin-top: 10px; font-style: italic; color: #555;">— {{{author}}}</div>}} | |||
{{#if:{{{source|}}}|<div style="margin-top: 5px; font-size: 0.9em; color: #666;">{{{source}}}</div>}} | |||
</div><noinclude> | |||
== Usage == | |||
This template is used to display quotations in a styled box format. | |||
=== Parameters === | |||
* '''text''' - The quotation text (required, or use unnamed parameter {{{1}}}) | |||
* '''author''' - The person who said the quote (optional) | |||
* '''source''' - The source of the quote (book, interview, etc.) (optional) | |||
=== Examples === | |||
<pre> | |||
{{quote|text="Don't be a know-it-all; be a learn-it-all."|author=Satya Nadella|source=Internal Microsoft memo, 2014}} | |||
</pre> | |||
<pre> | |||
{{quote|text="Our industry does not respect tradition—it only respects innovation."|source=''Hit Refresh''}} | |||
</pre> | |||
[[Category:Templates]] | |||
</noinclude> | |||
Latest revision as of 18:16, 19 October 2025
Usage
This template is used to display quotations in a styled box format.
Parameters
- text - The quotation text (required, or use unnamed parameter {{{1}}})
- author - The person who said the quote (optional)
- source - The source of the quote (book, interview, etc.) (optional)
Examples
{{quote|text="Don't be a know-it-all; be a learn-it-all."|author=Satya Nadella|source=Internal Microsoft memo, 2014}}
{{quote|text="Our industry does not respect tradition—it only respects innovation."|source=''Hit Refresh''}}