Template:Quoter: Difference between revisions

From The World of Gotha
Jump to navigation Jump to search
(Created page with "<templatestyles src="Template:Quote_box/styles.css" /><div class="quotebox pullquote {{#switch: {{lc:{{{align|}}}}} | center = centered | left = floatleft | none = | floatright }} {{{class|}}}" style=" {{#if:{{{width|}}} |width:{{{width}}};}} {{#ifeq:{{{border}}}|none|border:none;|{{#if:{{{border|}}}|border-width: {{{border}}}}};}} {{#if:{{{fontsize|}}}|font-size: {{{fontsize}}};}} {{#if:{{{bgcolor|}}}|background-c...")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<templatestyles src="Template:Quote_box/styles.css" /><div class="quotebox pullquote {{#switch: {{lc:{{{align|}}}}}  
<div class="quotebox" style="
         | center = centered
    {{#switch: {{lc:{{{align|}}}}}  
         | left = floatleft
         | center = margin: auto;
         | left = float: left; clear: left; margin: 0.5em 1.4em 0.8em 0;
         | none =  
         | none =  
         | floatright
         | float: right; clear: right; margin: 0.5em 0 0.8em 1.4em;
     }} {{{class|}}}" style="
     }}  
     {{#if:{{{width|}}} |width:{{{width}}};}}  
     {{#if:{{{width|<noinclude>1</noinclude>}}} | width: {{{width|<noinclude>30em</noinclude>}}};}}  
     {{#ifeq:{{{border}}}|none|border:none;|{{#if:{{{border|}}}|border-width: {{{border}}}}};}}
     padding: 6px;
     {{#if:{{{fontsize|}}}|font-size: {{{fontsize}}};}}
    border: {{{border|1px}}} solid #aaa;  
     {{#if:{{{bgcolor|}}}|background-color: {{#ifeq:{{{bgcolor|}}}|none|transparent|{{{bgcolor}}}}};}}
     font-size: {{{fontsize|88%}}};  
     background-color: {{{bgcolor|#F9F9F9}}};  
     {{{style|}}}">
     {{{style|}}}">
{{#if:{{{title|}}}
{{#if:{{{title|<noinclude>1</noinclude>}}}
     |<div class="quotebox-title {{{tclass|}}}" style="
     |<div style="
         {{#if:{{{title_bg|{{{bgcolor|}}}}}}|background-color: {{#ifeq:{{{title_bg|{{{bgcolor}}}}}}|none|transparent|{{{title_bg|{{{bgcolor}}}}}}}};}}
         background: {{{title_bg|{{{bgcolor|#F9F9F9}}}}}};
         {{#if:{{{title_fnt|}}}|color: {{{title_fnt}}};}}
        color:{{{title_fnt|black}}};  
         {{{tstyle|}}}">{{{title}}}</div>  
         text-align: center;
        font-size: larger;
        font-weight: bold;  
         {{{tstyle|}}}">{{{title|<noinclude>Test Title</noinclude>}}}</div>  
}}
}}
<blockquote class="quotebox-quote {{main other||{{#if:{{{quoted|}}}|quoted}}}} {{#switch: {{lc:{{{qalign|{{{halign|left}}}}}}}}
<div style="
        |right = right-aligned
    position: relative;
        |center = center-aligned
    text-align: {{{qalign|{{{halign|left}}}}}};
        |left-aligned
    }} {{{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>}}}}}}}}}}}}}}}
<div {{#if:{{{quoted|}}}|style="margin:0px 2em;"}}>
</blockquote>
{{{quote|{{{1|<noinclude>{{lorem ipsum}}</noinclude>}}} }}}
{{#if:{{{author|{{{source|}}}}}}{{{2|}}}{{{3|}}}|<cite class="{{#switch: {{lc:{{{salign|{{{qalign|{{{halign|left}}} }}} }}} }}
</div>
         |right = right-aligned
{{#if:{{{quoted|}}}
         |center = center-aligned
    |<div style="
         |left-aligned
        position: absolute;
    }}" style="{{{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>}}
        left: 0px;  top: 0px;
</div>{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using quote box with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Quote box]] with unknown parameter "_VALUE_"|ignoreblank=y| 1 | 2 | 3 | align | author | bgcolor | border | class | content | fontsize | halign | qalign | qclass | qstyle | quote | quoted | quotetext | salign | source | sstyle | style | tclass | text | title | title_bg | title_fnt | tstyle | width }}<noinclude>
        text-align: left;
{{Documentation}}
         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>
<div style="
    text-align: {{{salign|{{{qalign|{{{halign|left}}}}}}}}};
    {{{sstyle|}}}">{{{source|{{{2|<noinclude>--the source</noinclude>}}} }}}</div>
</div><noinclude>
{{documentation}}
</noinclude>
</noinclude>

Latest revision as of 02:57, 18 August 2023

Test Title
--the source
Template documentation
Template:Quoter/doc