Template:Quote box

From Iwe

(Difference between revisions)
Line 1: Line 1:
-
<div class="quotebox pullquote {{#switch: {{lc:{{{align|}}}}}
+
{| style="clear: {{{clear|inherit}}}; border-width:2px; border-color:#ccc; background:rgba(204,204,204,0.5); border-radius: 8px; -moz-border-radius:8px; padding:0px 8px; margin: 4px 0px; margin: auto;" class="cquote"
-
        | center = centered
+
|-
-
        | left = floatleft
+
{{#if:{{{width|}}}|width:{{{width}}};|}}
-
        | none =
+
| width="20" valign="top" style="color:#aaa; font-size:35px;font-family:Lobster,serif;font-weight:bold;text-align:left;padding:9px 10px 0 10px;" |
-
        | floatright
+
| valign="top" style="padding:4px 10px 5px 10px;" | {{{1|Insert the text of the quote here, without quotation marks.}}}
-
    }} {{{class|}}}" style="
+
| width="20" valign="top" style="color:#aaa; font-size:35px;font-family:Lobster,serif;font-weight:bold;text-align:left;padding:9px 10px 0 10px;" | ”
-
    {{#if:{{{width|}}} |width:{{{width}}};}}  
+
|-
-
    {{#ifeq:{{{border}}}|none|border:none;|{{#if:{{{border|}}}|border-width: {{{border}}}}};}}
+
{{#if:{{{2|}}}{{{3|}}}|
-
    {{#if:{{{fontsize|}}}|font-size: {{{fontsize}}};}}
+
{{!}} colspan="3" style="padding-top: 0" <!--VERTICAL SPACING of Citation to quote, was originally 10px on Wikimedia-->{{!}} <font family="Lobster" size="13px">{{#if:{{{2|<noinclude>Speaker</noinclude>}}}|<p style="font-size:10.5px;line-height:1em;text-align: right"><cite style="font-style:normal; font-family:'Lobster'; font-size:13px">—{{{2}}}{{#if:{{{3|<noinclude>Citation</noinclude>}}}|, {{{3}}}}}</cite></p>}}</font>
-
    {{#if:{{{bgcolor|}}}|background-color: {{#ifeq:{{{bgcolor|}}}|none|transparent|{{{bgcolor}}}}};}}
+
-
    {{{style|}}}"><templatestyles src="Template:Quote_box/styles.css" />
+
-
{{#if:{{{title|}}}
+
-
    |<div class="quotebox-title {{{tclass|}}}" style="
+
-
        {{#if:{{{title_bg|{{{bgcolor|}}}}}}|background-color: {{#ifeq:{{{title_bg|{{{bgcolor}}}}}}|none|transparent|{{{title_bg|{{{bgcolor}}}}}}}};}}
+
-
        {{#if:{{{title_fnt|}}}|color: {{{title_fnt}}};}}
+
-
        {{{tstyle|}}}">{{{title}}}</div>  
+
}}
}}
-
<div class="quotebox-quote {{main other||{{#if:{{{quoted|}}}|quoted}}}} {{#switch: {{lc:{{{qalign|{{{halign|left}}}}}}}}
+
|}
-
        |right = right-aligned
+
-
        |center = center-aligned
+
-
        |left-aligned
+
-
    }} {{{qclass|}}}" style="
+
-
    {{{qstyle|}}}"><!--
+
-
-->{{{text|{{{content|{{{quotetext|{{{quote|{{{1|<includeonly>{{error|Error: No text given for quotation (or equals sign used in the actual argument to an unnamed parameter)}}</includeonly><noinclude>{{lorem ipsum}}</noinclude>}}}}}}}}}}}}}}}<!--
+
-
--></div>
+
-
{{#if:{{{author|{{{source|}}}}}}{{{2|}}}{{{3|}}}|<cite class="{{#switch: {{lc:{{{salign|{{{qalign|{{{halign|left}}} }}} }}} }}
+
-
        |right = right-aligned
+
-
        |center = center-aligned
+
-
        |left-aligned
+
-
    }}" style="{{{sstyle|}}}"><!--Manually inserted dashes will need to be removed from uses of the template first, I guess, then enable this:--><!--—&thinsp;-->{{{author|{{{2|}}}}}}{{#if:{{{author|}}}{{{2|}}}|{{#if:{{{source|}}}{{{3|}}}|<!--Display comma-space only if both cite parameters are present.-->,&#32;}}}}{{{source|{{{3|}}}}}}</cite>}}
+
-
</div>{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using quote box with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Quote box]] with unknown parameter "_VALUE_"|ignoreblank=y| 1 | 2 | 3 | align | author | bgcolor | border | class | content | fontsize | halign | qalign | qclass | qstyle | quote | quoted | quotetext | salign | source | sstyle | style | tclass | text | title | title_bg | title_fnt | tstyle | width }}<noinclude>
+
-
{{Documentation}}
+
-
</noinclude>
+

Revision as of 01:59, 4 June 2023

{{#if:|width:{{{width}}};|}} {{#if:| colspan="3" style="padding-top: 0" {{#if:Speaker|

—{{{2}}}{{#if:Citation|, {{{3}}}}}

}}

}}

Insert the text of the quote here, without quotation marks.
Personal tools