Difference between revisions of "Template:Quote box"

From Wikispooks
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|<noinclude>1</noinclude>}}} | width: {{{width|<noinclude>30em</noinclude>}}};}}  
+
     {{#if:{{{width|}}} |width:{{{width}}};}}  
 
     padding: 6px;  
 
     padding: 6px;  
     border: {{{border|1px}}} solid #aaa;  
+
     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|<noinclude>1</noinclude>}}}
+
{{#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|<noinclude>Test Title</noinclude>}}}</div>  
+
         {{{tstyle|}}}">{{{title}}}</div>  
 
}}
 
}}
<div style="
+
<div class="{{{qclass|}}}" style="
 
     position: relative;  
 
     position: relative;  
     text-align: {{{qalign|{{{halign|left}}}}}};  
+
     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|<noinclude>{{lorem ipsum}}</noinclude>}}} }}}
+
{{{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|}}}|
<div style="
+
<cite style="
     text-align: {{{salign|{{{qalign|{{{halign|left}}}}}}}}};  
+
    display: block;
     {{{sstyle|}}}">{{{source|{{{2|<noinclude>--the source</noinclude>}}} }}}</div>
+
     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:--><!--—&thinsp;-->{{{author|{{{2|}}}}}}{{#if:{{{author|}}}{{{2|}}}|{{#if:{{{source|}}}{{{3|}}}|<!--Display comma-space only if both cite parameters are present.-->,&#32;}}}}{{{source|{{{3|}}}}}}</cite>}}
{{documentation}}
+
</div></includeonly><noinclude>
 +
{{Documentation}}
 +
[[category:Box Templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 09:59, 20 April 2016

Template documentation[create]