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!
=== 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> }} ----
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