Template:Cquote: Difference between revisions

From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
(Undid edit by INoMed: glitchy when "center" is specified)
(refactor for accessibility: blockquote instead of table / deprecated attribs)
Line 1: Line 1:
{|class="cquote" {{#ifeq:{{{float|center}}}|center|align="center"|}} style="background:none;text-align:center; {{#ifeq: {{{float|}}}|left|float:left;|}}{{#ifeq: {{{float|}}}|right|float:right;|}}"
{{#switch: {{{float|center}}}
|style="color:{{{col|#bfbfff}}};font-size:35px;font-family:Times New Roman,serif;padding:10px 10px"|'''“'''
| left    =
|valign="top" style="text-align:left;padding:4px 10px"|{{{1|Insert the text of the quote here, without quotation marks.}}}
<div style="float: left; text-align: center;">
|style="color:{{{col|#bfbfff}}};font-size:35px;font-family:Times New Roman,serif;padding:10px 10px"|'''”'''
| right   =
{{#if:{{{cite|}}}|
<div style="float: right; text-align: center;">
{{!}}-
| center
{{!}}colspan="3" style="font-size:smaller;text-align:right"{{!}}—{{{cite}}}{{#if:{{{source|}}}|, {{{source}}}}}
| #default =
<div style="overflow: hidden; text-align: center;">
}}
}}
|}<noinclude>
    <blockquote class="cquote" style="display: inline-block; margin: 0;">
        <div style="position: relative; padding: 0.5em 4em;"><!--
        --><span style="position: absolute; top: 50%; left: 0.25em; margin-top: -0.4em; font: bold 35px TimesNewRoman, 'Times New Roman', Times, serif; color: {{{col|#bfbfff}}};"><!--
            -->&ldquo;<!--
        --></span><!--
        -->{{{1|Insert the text of the quote here, without quotation marks.}}}<!--
        --><span style="position: absolute; top: 50%; right: 0.25em; margin-top: -0.4em; font: bold 35px TimesNewRoman, 'Times New Roman', Times, serif; color: {{{col|#bfbfff}}};"><!--
            -->&rdquo;<!--
        --></span>
        </div><!--
    -->{{#if: {{{cite|}}} |
            <cite style="display: block; text-align: right; font-size: smaller; font-style: normal;"><!--
            -->&mdash;{{{cite}}}<!--
            -->{{#if: {{{source|}}} |
                    , {{{source}}}
                }}<!--
        --></cite>
        }}
    </blockquote>
</div><noinclude>
{{t|Cquote}} is a template meant for pull-quotes, which stand apart from the text of a page.   
{{t|Cquote}} is a template meant for pull-quotes, which stand apart from the text of a page.   



Revision as of 08:46, June 5, 2016

Insert the text of the quote here, without quotation marks.

{{Cquote}} is a template meant for pull-quotes, which stand apart from the text of a page.

Usage

{{cquote|quote text|cite=Origin of quote|source=Cited source|col=Colour of quote marks|float=Position of the quote}}
Only the first parameter is required.