Template:Blockquote paragraphs: Difference between revisions

Replaced content with 'testing page'
(Adding in the semantically correct way to do this for real paragraphs.)
(Replaced content with 'testing page')
Line 1:
testing page
<div style="float: right; padding: 0 1em;">{{navbar|Blockquote paragraphs|plain=y}}</div>
The {{tag|blockquote|o}} element and any templates that use it do not honor newlines:
{{markup
|<nowiki><blockquote>
Line 1
Line 2
Line 3
Line 4
</blockquote></nowiki>
|<blockquote>
Line 1
Line 2
Line 3
Line 4
</blockquote>
}}
 
The simplest workaround for this is to use the {{xtag|poem}} tag inside {{tag|blockquote|o}}, which will convert line breaks to {{tag|br|s}} tags:
{{markup
|<nowiki><blockquote><poem>
Line 1
Line 2
Line 3
Line 4
</poem></blockquote></nowiki>
|<blockquote><poem>
Line 1
Line 2
Line 3
Line 4
</poem></blockquote>
}}<noinclude>
 
To markup actual paragraphs within block quotations, entire blank lines can be used between them, which will convert to {{tag|p}} tags:
 
{{markup
|<nowiki><blockquote>
Paragraph 1
 
Paragraph 2
 
Paragraph 3
</blockquote></nowiki>
|<blockquote>
Paragraph 1
 
Paragraph 2
 
Paragraph 3
</blockquote>
}}<noinclude>
 
{{Documentation}}
 
<!-- Categories go on the /doc subpage. -->
 
</noinclude>
Anonymous user