Sjabloon:Blockquote paragraphs: verschil tussen versies

Uit informatiestandaarden
Naar navigatie springen Naar zoeken springen
(Nieuwe pagina aangemaakt met '<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 hono...')
 
(geen verschil)

Huidige versie van 19 jul 2013 om 16:14

The <blockquote> element and any templates that use it do not honor newlines:

Markup Renders as
<blockquote>
Line 1
Line 2
Line 3
Line 4
</blockquote>

Line 1 Line 2 Line 3 Line 4

To resolve this, use the <poem> tag inside <blockquote>:

Markup Renders as
<blockquote><poem>
Line 1
Line 2
Line 3
Line 4
</poem></blockquote>

<poem>

Line 1 Line 2 Line 3 Line 4

</poem>

[bewerken] [purge] Template documentation

Usage

This is a documentation subtemplate transcluded into the /doc pages of block quotation templates on how to work around a MediaWiki bug that affects all of them.

Use it like so:

== Paragraphs ==
{{blockquote paragraphs}}