Template:Quote box: Difference between revisions
m Update. |
Tag: Undo |
||
| Line 1: | Line 1: | ||
<div class="quotebox pullquote {{#switch: {{lc:{{{align|}}}}} | |||
| center = centered | | center = centered | ||
| left = floatleft | | left = floatleft | ||
| Line 8: | Line 8: | ||
{{#ifeq:{{{border}}}|none|border:none;|{{#if:{{{border|}}}|border-width: {{{border}}}}};}} | {{#ifeq:{{{border}}}|none|border:none;|{{#if:{{{border|}}}|border-width: {{{border}}}}};}} | ||
{{#if:{{{fontsize|}}}|font-size: {{{fontsize}}};}} | {{#if:{{{fontsize|}}}|font-size: {{{fontsize}}};}} | ||
{{#if:{{{bgcolor|}}}| | {{#if:{{{bgcolor|}}}|background-color: {{#ifeq:{{{bgcolor|}}}|none|transparent|{{{bgcolor}}}}};}} | ||
{{{style|}}}"> | {{{style|}}}"><templatestyles src="Template:Quote_box/styles.css" /> | ||
{{#if:{{{title|}}} | {{#if:{{{title|}}} | ||
|<div class="quotebox-title {{{tclass|}}}" style=" | |<div class="quotebox-title {{{tclass|}}}" style=" | ||
{{#if:{{{title_bg|{{{bgcolor|}}}}}}| | {{#if:{{{title_bg|{{{bgcolor|}}}}}}|background-color: {{#ifeq:{{{title_bg|{{{bgcolor}}}}}}|none|transparent|{{{title_bg|{{{bgcolor}}}}}}}};}} | ||
{{#if:{{{title_fnt|}}}|color: {{{title_fnt}}};}} | {{#if:{{{title_fnt|}}}|color: {{{title_fnt}}};}} | ||
{{{tstyle|}}}">{{{title}}}</div> | {{{tstyle|}}}">{{{title}}}</div> | ||
}} | }} | ||
< | <div class="quotebox-quote {{#if:{{{quoted|}}}|quoted}} {{#switch: {{lc:{{{qalign|{{{halign|left}}}}}}}} | ||
|right = right-aligned | |right = right-aligned | ||
|center = center-aligned | |center = center-aligned | ||
|left-aligned | |left-aligned | ||
}} {{{qclass|}}}" style=" | }} {{{qclass|}}}" style=" | ||
{{{qstyle|}}}"> | {{{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>}}}}}}}}}}}}}}} | -->{{{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|}}}| | {{#if:{{{author|{{{source|}}}}}}{{{2|}}}{{{3|}}}|<cite class="{{#switch: {{lc:{{{salign|{{{qalign|{{{halign|left}}} }}} }}} }} | ||
|right = right-aligned | |right = right-aligned | ||
|center = center-aligned | |center = center-aligned | ||
|left-aligned | |left-aligned | ||
}}" style="{{{sstyle|}}}"><!--Manually inserted dashes will need to be removed from uses of the template first, I guess, then enable this:--><!--— -->{{{author|{{{2|}}}}}}{{#if:{{{author|}}}{{{2|}}}|{{#if:{{{source|}}}{{{3|}}}|<!--Display comma-space only if both cite parameters are present.-->, }}}}{{{source|{{{3|}}}}}}</cite | }}" style="{{{sstyle|}}}"><!--Manually inserted dashes will need to be removed from uses of the template first, I guess, then enable this:--><!--— -->{{{author|{{{2|}}}}}}{{#if:{{{author|}}}{{{2|}}}|{{#if:{{{source|}}}{{{3|}}}|<!--Display comma-space only if both cite parameters are present.-->, }}}}{{{source|{{{3|}}}}}}</cite>}} | ||
</div> | </div><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> | ||