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: | ||
{{#switch: {{{float|center}}} | |||
| left = | |||
<div style="float: left; text-align: center;"> | |||
| | | right = | ||
<div style="float: right; text-align: center;"> | |||
| center | |||
| #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}}};"><!-- | |||
-->“<!-- | |||
--></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}}};"><!-- | |||
-->”<!-- | |||
--></span> | |||
</div><!-- | |||
-->{{#if: {{{cite|}}} | | |||
<cite style="display: block; text-align: right; font-size: smaller; font-style: normal;"><!-- | |||
-->—{{{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
{{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.