Template:Quote/doc: Difference between revisions

Nothing to hide, but nothing to show you either.
Jump to navigation Jump to search
Content added Content deleted
(→‎Limitations: suppressing size change and mobile's oversized quotation marks)
(→‎Nested quotations: clarification of where to put the style)
Line 106: Line 106:


=== Nested quotations ===
=== Nested quotations ===
The {{tag|blockquote}} element has styles that change the font size: on desktop, text is smaller; on mobile, it's larger. This change is relative to the enclosing context, meaning that, if you quote from a source that itself uses a block quotation, you'll find that the inner quotation is either really tiny and hard to read, or really large and barely fits on the screen. Additionally, on mobile, you'll get an extra pair of oversize quotation marks. To fix both these issues, add the parameter <code>|style=font-size:inherit;quotes:none</code>.
The {{tag|blockquote}} element has styles that change the font size: on desktop, text is smaller; on mobile, it's larger. This change is relative to the enclosing context, meaning that, if you quote from a source that itself uses a block quotation, you'll find that the inner quotation is either really tiny and hard to read, or really large and barely fits on the screen. Additionally, on mobile, you'll get an extra pair of oversize quotation marks. To fix both these issues, add the parameter <code>|style=font-size:inherit;quotes:none</code> on each of the inner {{tl|quote}} templates.


== TemplateData ==
== TemplateData ==

Revision as of 15:41, 17 September 2016

Usage

{{Quote}} adds a block quotation to an article page.

This is easier to type and is more wiki-like than the equivalent HTML <blockquote>...</blockquote> tags, and has additional pre-formatted attribution parameters for author and source.

Note: Block quotes do not normally contain quotation marks