Template:Blockquote paragraphs: Difference between revisions

Nothing to hide, but nothing to show you either.
Jump to navigation Jump to search
Content added Content deleted
(update)
(tweaks)
Line 1: Line 1:
Due to the utterly intractable [[MediaWiki]] bug reported at {{bugzilla|6200}}, block quoting cannot handle freeform linebreaking for paragraphs and poems and the like.
Due to the utterly intractable [[MediaWiki]] bug reported at {{bugzilla|6200}}, block quoting cannot handle freeform linebreaking for paragraphs and poems and the like.


The problem in action:
The problem in action:<code>
:{{tnull|<includeonly>{{BASEPAGENAME}}</includeonly><noinclude>bq</noinclude>|Line 1&lt;br/>
:<nowiki>{{</nowiki><includeonly>{{BASEPAGENAME}}</includeonly><noinclude>bq</noinclude>|Line 1&lt;br/>
Line 2&lt;br/>
:Line 2&lt;br/>
Line 3&lt;br/>
:Line 3&lt;br/>
Line 4.}}
:Line 4.}}</code>
Which results in:
Which results in the expected:
:{{<includeonly>{{BASEPAGENAME}}</includeonly><noinclude>bq</noinclude>|Line 1<br/>
{{<includeonly>{{BASEPAGENAME}}</includeonly><noinclude>bq</noinclude>|Line 1<br/>
Line 2<br/>
Line 2<br/>
Line 3<br/>
Line 3<br/>
Line 41: Line 41:
</code></blockquote>
</code></blockquote>


Either which results in the expected:
Result of either:


{{<includeonly>{{BASEPAGENAME}}</includeonly><noinclude>bq</noinclude>|1=<!--
{{<includeonly>{{BASEPAGENAME}}</includeonly><noinclude>bq</noinclude>|1=<!--

Revision as of 01:58, 3 February 2012

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 problem in action:

{{bq|Line 1<br/>
Line 2<br/>
Line 3<br/>
Line 4.}}

Which results in the expected: Template:Bq

The only solution for this is to use unbroken markup with <p>...</p> or <br /> elements:

{{bq|Line 1<br/>Line 2<br/>Line 3<br/>Line 4.}}

Which results in:

Template:Bq

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

{{bq|1=<!--

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

Or even:

{{bq|1=<!--


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

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

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

-->Line 4.}}

Either which results in the expected:

Template:Bq