Jump to content

User:Sardanaphalus/Template:Quote box

From Wikipedia, the free encyclopedia

<includeonly><!--
 --><div class="quotebox {{{class|}}}"
         style="font-size:{{#if:{{{fontsize|}}} |{{{fontsize}}} |88%}};
                {{#switch:{{lc:{{{align|}}}}} 
                 | left = clear:left; float:left; margin:0.5em 1.4em 0.8em 0;
                 | center = margin:auto;
                 | none = 
                 | clear:right; float:right; margin:0.5em 0 0.8em 1.4em; 
                }}
                {{#if:{{{width|}}} |width:{{{width}}};}} 
                border:{{#if:{{{border|}}} |{{{border}}} |1px}} solid #aaa;
                padding:6px;
                background:{{#if:{{{bgcolor|{{{background|}}}}}} |{{{bgcolor|{{{background|}}}}}} |#f9f9f9}}; 
                {{{style|}}}"><!--

 title
     -->{{#if:{{{title|}}}
         | <div class="{{{tclass|{{{titleclass|}}}}}}"
                style="font-size:larger;
                       background:{{#if:{{{title_bg|{{{titlebackground|}}}}}} |{{{title_bg|{{{titlebackground|}}}}}}
                                   | {{#if:{{{bgcolor|{{{background|}}}}}} |{{{bgcolor|{{{background|}}}}}} |#f9f9f9}}
                                  }};
                       text-align:center;
                       color:{{#if:{{{title_fnt|{{{titlecolour|{{{titlecolor|}}}}}}}}} |{{{title_fnt|{{{titlecolour|{{{titlecolor|}}}}}}}}} |black}}; 
                       font-weight:bold; 
                       {{{tstyle|{{{titlestyle|}}}}}}"> {{{title}}} </div><!--
     -->}}<!--

 quote
     --><div class="{{{qclass|{{{quoteclass|}}}}}}"
             style="position:relative; 
                    text-align:{{#if:{{{qalign|{{{quotealign|}}}}}} |{{{qalign|{{{quotealign|}}}}}}
                                | {{#if:{{{halign|}}} |{{{halign|}}} |left}}
                               }}; 
                    {{{qstyle|{{{quotestyle|}}}}}}"><!--
         --><div {{#if:{{{quoted|}}} |style="margin:0 2.0em;"}}>
{{{quote|{{{1|}}}}}}
</div>   {{#if:{{{quoted|}}}
          | <div style="position:absolute; left:0;top:0;
                        font-size:large; font-family:'Times New Roman',serif; font-weight:bold;
                        text-align:left; color:gray;">“</div>
            <div style="position:absolute; right:0;bottom:0;
                        font-size:large; font-family:'Times New Roman',serif; font-weight:bold;
                        text-align:left; color:gray;">”</div>
         }}<!--
     --></div><!--(end qclass/quoteclass div)

 source
     --><div style="text-align:{{first nonempty |{{{salign|{{{sourcealign|}}}}}} |{{{qalign|{{{quotealign|}}}}}} |{{{halign|}}} |left}}; 
                    {{{sstyle|}}}"> {{{source|{{{2|}}}}}} </div><!--

  --></div><!--(end intial quotebox div)
--></includeonly><noinclude>
{{Documentation}}
</noinclude>