Difference between revisions of "Template:Quote box"
Jump to navigation
Jump to search
m (1 revision) |
m (category) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <div class="quotebox" style=" | + | <includeonly><div class="quotebox {{{class|}}}" style=" |
{{#switch: {{lc:{{{align|}}}}} | {{#switch: {{lc:{{{align|}}}}} | ||
| center = margin: auto; | | center = margin: auto; | ||
Line 6: | Line 6: | ||
| float: right; clear: right; margin: 0.5em 0 0.8em 1.4em; | | float: right; clear: right; margin: 0.5em 0 0.8em 1.4em; | ||
}} | }} | ||
− | {{#if:{{{width| | + | {{#if:{{{width|}}} |width:{{{width}}};}} |
padding: 6px; | padding: 6px; | ||
− | border: {{{border|1px | + | border: {{#if: {{{border|}}}|{{{border}}}|1px}} solid #aaa; |
− | font-size: {{{fontsize|88% | + | font-size: {{#if: {{{fontsize|}}}|{{{fontsize}}}|88%}}; |
− | background-color: {{{bgcolor|#F9F9F9 | + | {{#if: {{{bgcolor|}}}|background-color: {{{bgcolor}}}|background-color: #F9F9F9}}; |
{{{style|}}}"> | {{{style|}}}"> | ||
− | {{#if:{{{title| | + | {{#if:{{{title|}}} |
− | |<div style=" | + | |<div class="{{{tclass|}}}" style=" |
− | background: {{{title_bg|{{{bgcolor|#F9F9F9 | + | {{#if: {{{title_bg|}}}|background-color: {{{title_bg}}}|{{#if: {{{bgcolor|}}}|background-color: {{{bgcolor}}}|background-color: #F9F9F9}}}}; |
− | color:{{{title_fnt|black | + | {{#if: {{{title_fnt|}}}|color: {{{title_fnt}}}|color: black}}; |
text-align: center; | text-align: center; | ||
font-size: larger; | font-size: larger; | ||
font-weight: bold; | font-weight: bold; | ||
− | {{{tstyle|}}}">{{{title | + | {{{tstyle|}}}">{{{title}}}</div> |
}} | }} | ||
− | <div style=" | + | <div class="{{{qclass|}}}" style=" |
position: relative; | position: relative; | ||
− | text-align: {{{qalign|{{{halign| | + | text-align: {{#if: {{{qalign|}}}|{{{qalign}}}|{{#if: {{{halign|}}}|{{{halign|}}}|left}}}}; |
{{{qstyle|}}}"> | {{{qstyle|}}}"> | ||
<div {{#if:{{{quoted|}}}|style="margin:0px 2em;"}}> | <div {{#if:{{{quoted|}}}|style="margin:0px 2em;"}}> | ||
− | {{{quote|{{{1| | + | {{{quote|{{{1|{{error|Error: No text given for quotation (or equals sign used in the actual argument to an unnamed parameter)}}}}}}}} |
</div> | </div> | ||
{{#if:{{{quoted|}}} | {{#if:{{{quoted|}}} | ||
Line 45: | Line 45: | ||
font-size: large; | font-size: large; | ||
color: gray;">”</div> | color: gray;">”</div> | ||
− | }}</div> | + | }}</div>{{#if:{{{author|{{{source|}}}}}}{{{2|}}}{{{3|}}}| |
− | < | + | <cite style=" |
− | text-align: {{{salign|{{{qalign|{{{halign| | + | display: block; |
− | {{{sstyle|}}}">{{{source|{{{ | + | text-align: {{ifempty|{{{salign|}}}|{{{qalign|}}}|{{{halign|}}}|left}}; |
− | </div><noinclude> | + | {{{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></includeonly><noinclude> |
+ | {{Documentation}} | ||
+ | [[category:Box Templates]] | ||
</noinclude> | </noinclude> |