Please note that all submissions to the site are subject to the wiki's licence, CC 4.0 BY-SA, as found here
Template:Quote box: Difference between revisions
From Consumer Action Taskforce
Jump to navigationJump to search
m Add documentaion |
remove center alignment of text |
||
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;"> | <div class="quote-box" style="margin: {{{margin|1em}}} {{{align|auto}}}; width: {{{width|80%}}}; padding: 10px; border: 1px solid #aaa; background-color: #f9f9f9;"> | ||
<blockquote style="margin: 0; | <blockquote style="margin: 0;">{{{quote|}}}</blockquote> | ||
</div> | </div> | ||
</includeonly> | </includeonly> |
Latest revision as of 19:51, 16 January 2025
Usage[edit source]
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[edit source]
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 |