Anonymous
Not logged in
Talk
Contributions
Log in
Request account
Rest of What I Know
Search
Editing
Template:Blockquote/doc
(section)
From Rest of What I Know
Namespaces
Template
Discussion
More
More
Page actions
Read
Edit
History
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Limitations == {{anchor|Restrictions|reason=Old section name}} If you do not provide text, the template generates a parser error message, which will appear in red text in the rendered page. If any parameter's actual value contains an [[equals sign]] (<code>=</code>), you {{strong|must}} use a named parameter (e.g. <code>|text="E=MC<sup>2</sup>" is a formula everyone knows but few understand</code>, not a blank-name positional parameter. The text before the equals sign gets misinterpreted as a named parameter otherwise. Be wary of URLs, which frequently contain this character. Named parameters are always safer, in this and other templates. If any parameter's actual value contains characters used for wiki markup syntax (such as [[vertical bar|pipe]], [[brackets]], single quotation marks, etc.), you may need to escape it. See {{tlx|!}} and friends. === Next to right-floated boxes === {{As of|2015|09|post=,}} the text of a block quotation may rarely overflow (in Firefox or other Gecko browsers) a right-floated item (e.g. a {{tlx|Listen}} box, when that item is below another right-floated item of a fixed size that is narrower. In Safari and other Webkit browsers (and even more rarely in Chrome/Chromium) the same condition can cause the block quotation to be pushed downward. Both of these problems can be fixed by either: # removing the sizing on the upper item and letting it use its default size (e.g. removing <code>{{var|###}}x{{var|###}}px</code> sizing or {{para|upright}} from a right-floated image above a wider right-floated object that is being overflowed by quotation text; or # using {{para|style|{{code|lang=css|code=overflow:inherit;}}}} in the quotation template. There may be other solutions, and future browser upgrades may eliminate the issue. It arises at all because of the <syntaxhighlight lang="css" inline>blockquote {overflow: hidden;}</syntaxhighlight> CSS declaration in [[Mediawiki:Common.css]], which itself works around other, more common display problems. A solution that fixes {{em|all}} of the issues is unknown at this time. === Vanishing quotes === In rare layout cases, e.g. when quotes are sandwiched between userboxes, a quotation may appear blanked out, in some browsers. The workaround for this problem is to add {{para|style|{{code|lang=css|code=overflow:inherit;}}}} to such an instance of the template. === Line breaks === This template sets a text style which might ignore one blank line, and so the template must be ended with a break (newline) or the next blank line might be ignored. Otherwise, beware inline, as:<br />{{in5}}text here {{tlf|blockquote|this is quoted}} More text here<br />spans a blank line, unless a {{tlf|blockquote|...}} is ended with a line break, then the next blank line might be ignored and two paragraphs joined. The {{code|lang=html|code=<blockquote>}} element and any templates that use it do not honor newlines: {{markup |<syntaxhighlight lang="html"> <blockquote> Line 1 Line 2 Line 3 Line 4 </blockquote> </syntaxhighlight> |<blockquote> Line 1 Line 2 Line 3 Line 4 </blockquote> }} An easy solution is to use the {{tl|poem quote}} template instead of {{tag|blockquote}}. This is effectively the same as using the {{xtag|poem}} tag inside {{code|lang=html|code=<blockquote>}}, which converts line breaks to {{code|lang=html|code=<br />}} tags: {{markup |<syntaxhighlight lang="html"> <blockquote><poem> Line 1 Line 2 Line 3 Line 4 </poem></blockquote> </syntaxhighlight> |<blockquote><poem> Line 1 Line 2 Line 3 Line 4 </poem></blockquote> }} To markup actual paragraphs within block quotations, entire blank lines can be used between them, which will convert to {{code|lang=html|code=<p>...</p>}} tags: {{markup |<syntaxhighlight lang="html"> <blockquote> Paragraph 1 Paragraph 2 Paragraph 3 </blockquote> </syntaxhighlight> |<blockquote> Paragraph 1 Paragraph 2 Paragraph 3 </blockquote> }} Note that it may be necessary to put a line break in the wikitext before <nowiki><blockquote> and after </blockquote></nowiki> in order for the paragraphs to render with the intended separation. (This also makes the wikitext easier to read.) This paragraph style also works with {{tl|blockquote}}, which is a replacement for {{xtag|blockquote}} that also has parameters to make formatting of the attribution more convenient and consistent. Blockquote and templates that call it, and are indented with colon (:), bulleted with asterisk (*), or numbered with number (#), will generate errors and incorrectly display anything after a newline character. <!--Please do not "fix" these deliberate errors. --> {{markup |<syntaxhighlight lang="html"> :<blockquote>Paragraph 1 Paragraph 2</blockquote> </syntaxhighlight> | :<blockquote>Paragraph 1 Paragraph 2</blockquote> }} {{markup |<syntaxhighlight lang="html"> *<blockquote>Paragraph 1 Paragraph 2</blockquote> </syntaxhighlight> | *<blockquote>Paragraph 1 Paragraph 2</blockquote> }} {{markup |<syntaxhighlight lang="html"> #<blockquote>Paragraph 1 Paragraph 2</blockquote> </syntaxhighlight> | #<blockquote>Paragraph 1 Paragraph 2</blockquote> }} ---- === 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 {{tlf|blockquote}} templates. === Technical issues with block templates === {{Block bug documentation}}
Summary:
Please note that all contributions to Rest of What I Know are considered to be released under the Creative Commons Attribution-ShareAlike (see
Rest of What I Know:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Wiki tools
Wiki tools
Special pages
Page tools
Page tools
User page tools
More
What links here
Related changes
Page information
Page logs