Template:Quote box: Difference between revisions

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>