Difference between revisions of "Template:Quote"

From W3AXL Wiki
Jump to: navigation, search
Line 1: Line 1:
<blockquote class="templatequote"><div class="Bug6200">{{{text|{{{quote|{{{1|<noinclude>{{lorem ipsum}}</noinclude><includeonly>{{error|Error: No text given for quotation (or equals sign used in the actual argument to an unnamed parameter)}}</includeonly>}}}}}}}}}</div>{{#if:{{{sign|{{{cite|{{{2|<noinclude>TRUE</noinclude>}}}}}}}}}
+
<div class="quotebox pullquote {{#switch: {{lc:{{{align|}}}}}
|<div class="templatequotecite">&#8212;{{{sign|{{{cite|{{{2|<noinclude>[[Someone's full name|Someone]]</noinclude>}}}}}}}}}{{#if:{{{source|{{{3|<noinclude>TRUE</noinclude>}}}}}}
+
        | center = centered
  |,&nbsp;<cite>{{{source|{{{3|<noinclude>Source</noinclude>}}}}}}</cite>
+
        | left = floatleft
}}</div>
+
        | none =
}}</blockquote>
+
        | floatright
 +
    }} {{{class|}}}" style="
 +
    {{#if:{{{width|}}} |width:{{{width}}};}}
 +
    {{#ifeq:{{{border}}}|none|border:none;|{{#if:{{{border|}}}|border-width: {{{border}}}}};}}
 +
    {{#if:{{{fontsize|}}}|font-size: {{{fontsize}}};}}
 +
    {{#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 18:52, 18 January 2021

<templatestyles src="Template:Quote_box/styles.css" />
Script error: No such module "Check for unknown parameters".
50px Template documentation[create]