Sjabloon:Blockquote paragraphs

Uit informatiestandaarden
Versie door Ahenket (overleg | bijdragen) op 19 jul 2013 om 16:14 (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...')
(wijz) ← Oudere versie | Huidige versie (wijz) | Nieuwere versie → (wijz)
Ga naar: navigatie, zoeken

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