Template:Quote box: Difference between revisions

m 1 revision imported
mNo edit summary
 
(10 intermediate revisions by 3 users not shown)
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; color: black">
</div>
    <blockquote style="margin: 0;">{{{quote|}}}</blockquote>{{#if:{{{source|}}}| <small>'''- {{{source|}}}'''}}</small>
</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
|source=Clinton the CAT}}
</nowiki>
</pre>
{{Quote box
|margin=2.5em
|width=100px
|align=left
|quote=Example of an important quote
|source=Clinton the CAT}}
[[Category:Styling templates]]
== 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
},
        "source": {
"description": "The name of the source & reference to include in the box",
"required": false
}
},
"description": "This creates a box containing a blockquote accoring to the parameters or defaults"
}
</templatedata>
</noinclude>