Template:Quote box: Difference between revisions
Appearance
No edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<div class="quote-box" style="margin: {{{margin|1em}}} {{{align|auto}}}; width: {{{width|80%}}}; padding: 10px; border: 1px solid #aaa; background-color: #f9f9f9; color: black"> | <div class="quote-box" style="margin: {{{margin|1em}}} {{{align|auto}}}; width: {{{width|80%}}}; padding: 10px; border: 1px solid #aaa; background-color: #f9f9f9; color: black"> | ||
<blockquote style="margin: 0;">{{{quote|}}}</blockquote>{{#if:{{{source|}}}}} <small>{{{source|}}}</small> | <blockquote style="margin: 0;">{{{quote|}}}</blockquote>{{#if:{{{source|}}}}} <small>'''{{{source|}}}'''</small> | ||
</div> | </div> | ||
</includeonly> | </includeonly> | ||
Line 60: | Line 60: | ||
}, | }, | ||
"source": { | "source": { | ||
"description": "The source to include in the box", | "description": "The name of the source & [[Template:Cite web|reference]] to include in the box", | ||
"required": false | "required": false | ||
} | } |
Revision as of 23:16, 9 October 2025
Usage
Add this to the source editor
{{Quote box |quote=Example of an important quote}}
to create a box with a quote like this:
'Example of an important quote
You can adjust the other parameters like this:
{{Quote box |margin=2.5em |width=100px |align=left |quote=Example of an important quote}}
'Example of an important quote
Template Data
This creates a box containing a blockquote accoring to the parameters or defaults
Parameter | Description | Type | Status | |
---|---|---|---|---|
margin | margin | Margin to leave around the box.
| Unknown | optional |
align | align | Alignment of the box
| Unknown | optional |
width | width | Width of the box
| Unknown | optional |
quote | quote | The quote to include in the box | Unknown | required |
source | source | The name of the source & [[Template:Cite web|reference]] to include in the box | Unknown | optional |