Jump to content

Template:Insert quote panel: Difference between revisions

From Insurer Brain
Content deleted Content added
No edit summary
No edit summary
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}}}}}" style="{{{style|}}}">
<div class="insert-quote-panel {{#if:{{{class|}}}|{{{class}}}}}">
{{#if:{{{image|}}}|
{{#if:{{{image|}}}|
<div class="insert-quote-image">[[File:{{{image}}}|50px|link=|alt=]]</div>
<div class="insert-quote-image">[[File:{{{image}}}|50px|link=|alt=]]</div>
}}
}}
<div class="insert-quote-content">
<div class="insert-quote-content" style="{{{style|}}}">
{{{1|}}}
{{{1|}}}
</div>
</div>
</div></includeonly><noinclude>
</div></includeonly><noinclude>
== What this does ==
== What this does ==
Reusable wrapper panel for quotes (or any short callout). Styling is kept in TemplateStyles.
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 ==
* <code>1</code> – Required. The content to display.
* <code>1</code> – Required. The content to display.
* <code>image</code> – Optional. Filename of the profile picture (e.g., <code>Author.jpg</code>). Default width is 50px.
* <code>image</code> – Optional. Filename of the profile picture.
* <code>style</code> – Optional. Extra inline CSS to override defaults (e.g., borders, radius).
* <code>style</code> – Optional. Extra inline CSS for the gray text box.
* <code>class</code> – Optional. Extra classes for site-specific tweaks.
* <code>class</code> – Optional. Extra classes.
</noinclude>


== Examples ==
== Examples ==

Revision as of 21:10, 16 December 2025

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

  • 1 – Required. The content to display.
  • image – Optional. Filename of the profile picture.
  • style – Optional. Extra inline CSS for the gray text box.
  • class – Optional. Extra classes.


Examples

Basic (No image - looks exactly like before):

{{Insert quote panel
 | {{Quote of the day}}
}}

With Profile Picture:

{{Insert quote panel
 | image = Thomas-buberl.jpg
 | {{Quote of the day}}
}}

Arbitrary content with Image:

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