Difference between revisions of "Template:Quote"

From WikiCorporates
Jump to navigation Jump to search
Line 1: Line 1:
−
<blockquote style="margin:{{#if:{{{margin|}}}|{{{margin}}}em;|6.0em;}} padding:0.6em 1.0em; background:#f5f5f5; border:solid #bbbbbb; border-width:1px 0;"><div>{{{1}}}</div>
+
<blockquote style="margin:{{#if:{{{margin|}}}|{{{margin}}}em;|2.0em;}} padding:0.6em 1.0em; background:#f5f5f5; border:solid #bbbbbb; border-width:1px 0;"><div>{{{1}}}</div>
 
{{#if:{{{2|}}}| &mdash; {{{2}}}}}</blockquote><noinclude>{{doc2}}</noinclude>
 
{{#if:{{{2|}}}| &mdash; {{{2}}}}}</blockquote><noinclude>{{doc2}}</noinclude>

Revision as of 16:35, 21 December 2019

{{{1}}}

[edit] Documentation

Usage

This is a template for a centred blockquote.

The parameters are:

|margin  - optional. Default = 2.0em
|width   - optional. Default = 100%
|{{{1}}} - the quote text
|{{{2}}} - optional, eg. author

All Parameters Example

{{Quote
|margin=20em
|You can't have your cake and eat it too. Deal with it.
|Proverb
}}

Which will give:

You can't have your cake and eat it too. Deal with it.

— Proverb