Template:Blockquote paragraphs: Difference between revisions

m
52 revisions imported from wikipedia:Template:Blockquote_paragraphs
(add attribution (via JWB))
m (52 revisions imported from wikipedia:Template:Blockquote_paragraphs)
 
(15 intermediate revisions by 10 users not shown)
Line 1:
----
{{En-WP''(This attributionsection notice|is transcluded from [[Template:Blockquote paragraphs}}]])''
<div style="float: right; padding: 0 1em;">{{navbar|Blockquote paragraphs|plain=y}}</div>
The {{tagcode|blockquotelang=html|ocode=<blockquote>}} element and any templates that use it do not honor newlines:
{{markup
|<syntaxhighlight lang="html">
|<nowiki><blockquote>
Line 1
Line 2
Line 3
Line 4
</blockquote></nowiki>
</syntaxhighlight>
|<blockquote>
Line 1
Line 16 ⟶ 20:
}}
 
TheAn simplesteasy workaround for thissolution is to use the {{tl|poemquote}} template instead of {{xtag|blockquote}}. This is effectively the same as using the {{xtag|poem}} tag inside {{tagcode|lang=html|code=<blockquote|o>}}, which will convertconverts line breaks to {{tagcode|brlang=html|scode=<br />}} tags:
{{markup
|<syntaxhighlight lang="html">
|<nowiki><blockquote><poem>
Line 1
Line 2
Line 3
Line 4
</poem></blockquote></nowiki>
</syntaxhighlight>
|<blockquote><poem>
Line 1
Line 30 ⟶ 36:
Line 4
</poem></blockquote>
}}
}}<noinclude>
 
To markup actual paragraphs within block quotations, entire blank lines can be used between them, which will convert to {{tagcode|lang=html|code=<p>...</p>}} tags:
 
{{markup
|<syntaxhighlight lang="html">
|<nowiki><blockquote>
Paragraph 1
 
Line 41 ⟶ 48:
 
Paragraph 3
</blockquote></nowiki>
</syntaxhighlight>
|<blockquote>
Paragraph 1
Line 49 ⟶ 57:
Paragraph 3
</blockquote>
}}
}}<noinclude>
 
This paragraph style also works with {{tl|quote}}, which is a replacement for {{xtag|blockquote}} that also has parameters to make formatting of the attribution more conveniently and consistently.
----
{{Documentation}}
 
<!-- Categories go on the /doc subpage. -->
 
{{En-WP attribution notice|Template:Blockquote paragraphs}}
</noinclude>