Template:Blockquote/doc: Difference between revisions

Nothing to hide, but nothing to show you either.
Jump to navigation Jump to search
Content added Content deleted
(→‎Technical issues with block templates: This was actually fixed in MW a couple of years ago.)
Line 130: Line 130:
=== Nested quotations ===
=== Nested quotations ===
The {{code|lang=html|code=<blockquote>...</blockquote>}} element has styles that change the font size: on desktop, text is smaller; on mobile, it is 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. To fix this issue, add the parameter {{para|style|{{code|lang=css|font-size:inherit;}}}} on any inner {{tl|Quote}} templates.
The {{code|lang=html|code=<blockquote>...</blockquote>}} element has styles that change the font size: on desktop, text is smaller; on mobile, it is 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. To fix this issue, add the parameter {{para|style|{{code|lang=css|font-size:inherit;}}}} on any inner {{tl|Quote}} templates.

=== Mis-detection of wikimarkup ===
The template uses {{tlx|trim quotes}} to remove quotation marks from around quotations when put into block format (per [[MOS:BQ]]). However, if the quoted material happens to both begin and end with italics in {{kbd|<nowiki>''</nowiki>}} format or boldface in {{kbd|<nowiki>'''</nowiki>}} format, these will be partially mis-detected as regular quotation marks, which will result in unintended output. There are several workarounds for this problem:
* Insert <code>&lt;nowiki /&gt;</code> at the beginning of the quoted material, before any {{kbd|<nowiki>''</nowiki>}} or {{kbd|<nowiki>'''</nowiki>}} markup
* Change the {{kbd|<nowiki>''</nowiki>}} markup to explicit HTML {{tag|i}}, and {{kbd|<nowiki>'''</nowiki>}} to {{tag|b}}
* add the parameter {{para|notrim|y}} (or any other value, e.g. {{para|notrim|yes}}, {{para|notrim|1}}).
Use of any of these will have the effect of suppressing quotation-marks trimming entirely. A more robust solution at [[Template talk:Trim Quotes]] is being sought so that these work-arounds are not necessary.


== Errors ==
== Errors ==

Revision as of 22:07, 30 January 2020

Lua error in Module:TNT at line 159: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Uses TemplateStyles.tab.


The Manual of Style guidelines for block quotations recommend formatting block quotations using the {{Blockquote}} template or the HTML <blockquote> element, for which that template provides a wrapper.

  • Quotes work best when used with short sentences, and at the start or end of a section, as a hint of or to help emphasize the section's content.
  • For typical quotes, especially those longer than the rest of the paragraph in which they are quoted, {{Cquote}} (for use outside of article space only) provides a borderless quote with decorative quotation marks, and {{Quote frame}} provides a bordered quote. Both span the page width.
  • For very short quotes, {{Rquote}} (with decorative quotation marks, for use outside of article space only) or {{Quote box}} (framed) can be used to set the quote off to either the right or left as in a magazine sidebar. This can be effective on essay pages and WikiProject homepages.

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 (though these are not usually used in articles;