Template:Blockquote/doc: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(→Nested quotations: update) |
(ce) |
||
Line 132: | Line 132: | ||
=== Mis-detection of wikimarkup === |
=== 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: |
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 (any one will suffice): |
||
* Insert <code><nowiki /></code> at the beginning of the quoted material, before any {{kbd|<nowiki>''</nowiki>}} or {{kbd|<nowiki>'''</nowiki>}} markup |
* Insert <code><nowiki /></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}} |
* 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 |
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
This is a documentation subpage for Template:Terminate sentence It contains usage information, categories and other content that is not part of the original template page. |
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;