Template:Insert quote panel: Difference between revisions
Appearance
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}} |
<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 |
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 |
* <code>image</code> – Optional. Filename of the profile picture. |
||
* <code>style</code> – Optional. Extra inline CSS |
* <code>style</code> – Optional. Extra inline CSS for the gray text box. |
||
* <code>class</code> – Optional. Extra classes |
* <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>
}}