Difference between revisions of "Template:Quote"

From WikiCorporates
Jump to navigation Jump to search
m
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
−
<blockquote style="margin:0em 6.0em; padding:0.6em 0.8em; background:#f5f5f5; border:solid #bbbbbb; border-width:1px 0;"><div>{{{1}}}</div>
+
<blockquote style="margin:{{#if:{{{margin|}}}|{{{margin}}}em;|2.0em;}} width:{{#if:{{{width|}}}|{{{width}}}%;|100%;}} padding:0.6em 1.0em; background:#f5f5f5; border:solid #bbbbbb; border-width:1px 0;"><div>{{{1}}}</div>
−
{{#if: {{{2|}}} | &mdash; {{{2}}}}}</blockquote><noinclude>[[Category:WikiPolitiks templates]]</noinclude>
+
{{#if:{{{2|}}}| &mdash; {{{2}}}}}</blockquote><noinclude>{{doc2}}</noinclude>

Latest revision as of 16:40, 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