Template:Quote box: Difference between revisions

From FusionGirl Wiki
Jump to navigationJump to search
(Phase B: create wanted template)
 
(Phase H3: class-only styling via Common.css (no inline backgrounds/borders/colors); theme-aware)
 
Line 1: Line 1:
<noinclude>{{Documentation subpage}}</noinclude><div style="float:{{{align|right}}}; max-width:{{{width|30em}}}; margin:0 0 1em 1em; padding:10px 14px; background:#f8f8f4; border-left:4px solid #888; font-style:italic;">
<noinclude>{{Documentation subpage}}</noinclude><includeonly><div class="fg-callout is-quote">
{{{quote|{{{1|}}}}}}{{#if:{{{source|}}}|
{{{quote|{{{1|}}}}}}{{#if:{{{source|}}}|<span class="fg-quote-source">— {{{source}}}</span>}}
<div style="text-align:right; font-style:normal; font-size:90%; margin-top:6px;">— {{{source}}}</div>}}
</div></includeonly><noinclude>
</div><noinclude>
== Usage ==
== Usage ==
<code><nowiki>{{Quote box | quote = ... | source = ... | align = right | width = 30em }}</nowiki></code>
<code><nowiki>{{Quote box | quote = ... | source = ... }}</nowiki></code>
 
Themed via <code>MediaWiki:Common.css</code> using <code>fg-callout is-quote</code>.
 
(The earlier <code>align</code> and <code>width</code> parameters are no longer needed; the box auto-floats right with a sensible max-width and collapses to full-width on mobile.)
 
[[Category:Templates]]
[[Category:Templates]]
[[Category:Formatting templates]]
</noinclude>
</noinclude>

Latest revision as of 06:45, 12 May 2026

This is the documentation page for the template above. It is shown only when the template is viewed directly.

Usage

{{Quote box | quote = ... | source = ... }}

Themed via MediaWiki:Common.css using fg-callout is-quote.

(The earlier align and width parameters are no longer needed; the box auto-floats right with a sensible max-width and collapses to full-width on mobile.)