Jump to content

Template:Insert quote panel: Difference between revisions

From Insurer Brain
Content deleted Content added
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><templatestyles src="Insert quote panel/styles.css" />
<includeonly><templatestyles src="Insert quote panel/styles.css" />
<div class="insert-quote-panel {{#if:{{{class|}}}|{{{class}}}}}">
<div class="insert-quote-panel {{#if:{{{image|}}}|has-image|no-image}} {{#if:{{{class|}}}|{{{class}}}}}" style="{{{style|}}}">
{{#if:{{{image|}}}|
{{#if:{{{image|}}}|
<div class="insert-quote-image">[[File:{{{image}}}|50px|link=|alt=]]</div>
<div class="insert-quote-image">[[File:{{{image}}}|44px|link=|alt=]]</div>
}}
}}
<div class="insert-quote-content" style="{{{style|}}}">
<div class="insert-quote-content">
{{{1|}}}
{{{1|}}}
</div>
</div>
</div></includeonly><noinclude>
</div></includeonly><noinclude>
== What this does ==
Reusable wrapper panel for quotes.
* If NO image: Gray box fills width.
* If IMAGE: Image sits on the left, gray box on the right. Both aligned to the top.

== Parameters ==
== Parameters ==
* 1: Content
* <code>1</code> – Required. The content to display.
* image: Image filename
* <code>image</code> – Optional. Filename of the profile picture.
* style: Custom styles
* <code>style</code> – Optional. Extra inline CSS for the gray text box.
* <code>class</code> – Optional. Extra classes.
* class: Custom classes


== Examples ==
== Examples ==
Basic (No image - looks exactly like before):
<pre>
<pre>
{{Insert quote panel
{{Insert quote panel
| {{Quote of the day}}
| This is the classic gray box style.
}}
}}
</pre>


With Profile Picture:
<pre>
{{Insert quote panel
{{Insert quote panel
| image = Thomas-buberl.jpg
| image = Thomas-buberl.jpg
| This text appears on white, right next to the photo.
| {{Quote of the day}}
}}
</pre>

Arbitrary content with Image:
<pre>
{{Insert quote panel
| image = Example.jpg
| <blockquote>“Simplicity is the ultimate sophistication.” — Leonardo da Vinci</blockquote>
}}
}}
</pre>
</pre>

Latest revision as of 16:02, 19 December 2025

Parameters

  • 1: Content
  • image: Image filename
  • style: Custom styles
  • class: Custom classes

Examples

{{Insert quote panel
 | This is the classic gray box style.
}}

{{Insert quote panel
 | image = Thomas-buberl.jpg
 | This text appears on white, right next to the photo.
}}