Template:Blockquote paragraphs: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(←Replaced content with 'testing page') |
(Reverted edits by Dunendra43 (talk) (HG) (3.1.21)) |
||
Line 1: | Line 1: | ||
<div style="float: right; padding: 0 1em;">{{navbar|Blockquote paragraphs|plain=y}}</div> |
|||
testing page |
|||
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> |