Template:Blockquote paragraphs

From Remorra
Revision as of 17:46, 2 February 2012 by en>SMcCandlish (creating page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Due to the utterly intractable MediaWiki bug reported at Template:Bugzilla, block quoting cannot handle freeform linebreaking for paragraphs and poems and the like. The Template:Em solution for this is to use unbroken markup with <p>...</p> or <br /> elements:

Template:Tnull

Which results in:

{{#invoke:Template translation|renderTranslatedTemplate|template=Template:Navbar|noshift=1}}

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>

Line 1
Line 2
Line 3
Line 4

However there is an HTML-comment workaround for readability that lets you do whatever you want, and is even indentable with *, : and # markup:

{{Blockquote paragraphs|1=<!--

-->Line 1<br/><!--
-->Line 2<br/><!--
-->Line 3<br/><!--
-->Line 4.}}

Or even:

{{Blockquote paragraphs|1=<!--


-->Line 1<br/><!--

-->Line 2<br/><!--

-->Line 3<br/><!--

-->Line 4.}}

Result of either:

{{#invoke:Template translation|renderTranslatedTemplate|template=Template:Navbar|noshift=1}}

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>

Line 1
Line 2
Line 3
Line 4

{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}