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 1 revision imported
m Add documentaion
Line 1: Line 1:
<div class="quote-box" style="margin: {{{margin|1em}}} {{{align|auto}}}; width: {{{width|80%}}}; padding: 10px; border: 1px solid #aaa; background-color: #f9f9f9;">
<includeonly>
<blockquote style="margin: 0;">{{{quote|}}}</blockquote>
<div class="quote-box" style="margin: {{{margin|1em}}} {{{align|auto}}}; width: {{{width|80%}}}; padding: 10px; border: 1px solid #aaa; background-color: #f9f9f9;">
</div>
    <blockquote style="margin: 0; text-align:center">{{{quote|}}}</blockquote>
</div>
</includeonly>
<noinclude>
== Usage ==
 
Add this to the source editor
<pre>
<nowiki>
{{Quote box
|quote=Example of an important quote}}
</nowiki>
</pre>
to create a box with a quote like this: {{Quote box|quote=Example of an important quote}}
 
You can adjust the other parameters like this:
<pre>
<nowiki>
{{Quote box
|margin=2.5em
|width=100px
|align=left
|quote=Example of an important quote}}
</nowiki>
</pre>
{{Quote box
|margin=2.5em
|width=100px
|align=left
|quote=Example of an important quote}}
 
== Template Data ==
 
<templatedata>
{
"params": {
"margin": {
"description": "Margin to leave around the box. ",
"suggestedvalues": [
"1em, 10px etc"
]
},
"align": {
"description": "Alignment of the box",
"default": "auto",
"suggestedvalues": [
"left,right,center etc."
]
},
"width": {
"description": "Width of the box",
"example": "100px, 40%, etc",
"default": "80%"
},
"quote": {
"description": "The quote to include in the box",
"required": true
}
},
"description": "This creates a box containing a blockquote accoring to the parameters or defaults"
}
</templatedata>
</noinclude>

Revision as of 19:11, 16 January 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

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
marginmargin

Margin to leave around the box.

Suggested values
1em, 10px etc
Unknownoptional
alignalign

Alignment of the box

Suggested values
left,right,center etc.
Default
auto
Unknownoptional
widthwidth

Width of the box

Default
80%
Example
100px, 40%, etc
Unknownoptional
quotequote

The quote to include in the box

Unknownrequired