Difference between revisions of "Template:Quote"

From Smiting Shepherds
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<!-- The nested div fixes a spacing problem in Firefox. -->
+
<div class="quotebox {{{class|}}}" style="
<!-- All the other changes are intended to address aesthetic considerations in various browsers -->
+
    {{#switch: {{lc:{{{align|}}}}}
<onlyinclude><center>
+
        | center = margin: auto;
<div style="clear:none; max-width:50em;"><div style="margin: 0 10%;">
+
        | left = float: left; clear: left; margin: 0.5em 1.4em 0.8em 0;
{| style="border-collapse:collapse; background-color:transparent;"
+
        | none =
| valign="top" style="overflow:hidden; margin: 0 0 1em 0; color:{{{color|silver}}}; font-size:{{{size|3.6em}}}; font-family:serif; font-weight:bold; text-align:left;" | <span style="line-height:0.4em;">&nbsp;</span><br />“
+
        | float: right; clear: right; margin: 0.5em 0 0.8em 1.4em;
| valign="middle" style="overflow:hidden; padding:0 1em; text-align:left; font-style:italic;" | &nbsp;<br /><big><big>{{{1}}}</big></big><br />&nbsp;
+
    }}
| valign="bottom" style="overflow:hidden; color:{{{color|silver}}}; font-size:{{{size|3.6em}}}; font-family:serif; font-weight:bold; text-align:right;" | „<br /><span style="line-height:0.55em;">&nbsp;</span>
+
    {{#if:{{{width|}}} |width:{{{width}}};}}
|-
+
    padding: 6px;  
| colspan="3" | <p style="font-size:85%; line-height:1em; text-align:right"><cite style="font-style:normal;">{{ #if:{{{2|}}} |—{{{2| }}}}}{{ #if:{{{3|}}} |, ''{{{3}}}''}}</cite></p>
+
    border: {{#if: {{{border|}}}|{{{border}}}|1px}} solid #aaa;
|}</div></div><!-- {{subst:FULLPAGENAME}} -->
+
    font-size: {{#if: {{{fontsize|}}}|{{{fontsize}}}|88%}};  
</center></onlyinclude><noinclude>
+
    {{#if: {{{bgcolor|}}}|background-color: {{{bgcolor}}}|background-color: #F9F9F9}};  
 +
    {{{style|}}}">
 +
{{#if:{{{title|}}}
 +
    |<div class="{{{tclass|}}}" style="
 +
        {{#if: {{{title_bg|}}}|background-color: {{{title_bg}}}|{{#if: {{{bgcolor|}}}|background-color: {{{bgcolor}}}|background-color: #F9F9F9}}}};  
 +
        {{#if: {{{title_fnt|}}}|color: {{{title_fnt}}}|color: black}};  
 +
        text-align: center;
 +
        font-size: larger;  
 +
        font-weight: bold;  
 +
        {{{tstyle|}}}">{{{title}}}</div>  
 +
}}
 +
<div class="{{{qclass|}}}" style="
 +
    position: relative;  
 +
    text-align: {{#if: {{{qalign|}}}|{{{qalign}}}|{{#if: {{{halign|}}}|{{{halign|}}}|left}}}};  
 +
    {{{qstyle|}}}">
 +
<div {{#if:{{{quoted|}}}|style="margin:0px 2em;"}}>
 +
{{{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:{{{quoted|}}}
 +
    |<div style="
 +
        position: absolute;
 +
        left: 0px; top: 0px;
 +
        text-align: left;  
 +
        font-family:'Times New Roman',serif;  
 +
        font-weight:bold;  
 +
        font-size: large;
 +
        color: gray;">“</div>
 +
<div style="
 +
        position: absolute;
 +
        right: 0px; bottom: 0px;
 +
        text-align: left;
 +
        font-family:'Times New Roman',serif;
 +
        font-weight:bold;
 +
        font-size: large;
 +
        color: gray;"></div>
 +
}}</div>{{#if:{{{author|{{{source|}}}}}}{{{2|}}}{{{3|}}}|
 +
<cite style="
 +
    display: block;
 +
    text-align: {{ifempty|{{{salign|}}}|{{{qalign|}}}|{{{halign|}}}|left}};
 +
    {{{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><noinclude>
 +
{{Documentation}}
 +
</noinclude>

Latest revision as of 16:18, 26 March 2017

{{#if:

|
{{{title}}}

}}

{{#if:

|
}}
{{#if:|

{{#if:|{{#if:|, }}}}}}

50px Template documentation[create]