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
(creating page)
 
(loop fix)
Line 7: Line 7:


<blockquote><code><nowiki>
<blockquote><code><nowiki>
{{</nowiki>{{BASEPAGENAME}}|1=&lt;!--<br />
{{</nowiki><includeonly>{{BASEPAGENAME}}</includeonly><noinclude>bq</noinclude>|1=&lt;!--<br />
-->Line 1&lt;br/>&lt;!--<br />
-->Line 1&lt;br/>&lt;!--<br />
-->Line 2&lt;br/>&lt;!--<br />
-->Line 2&lt;br/>&lt;!--<br />
Line 17: Line 17:


<blockquote><code><nowiki>
<blockquote><code><nowiki>
{{</nowiki>{{BASEPAGENAME}}|1=&lt;!--<br />
{{</nowiki><includeonly>{{BASEPAGENAME}}</includeonly><noinclude>bq</noinclude>|1=&lt;!--<br />
<br />
<br />
-->Line 1&lt;br/>&lt;!--<br />
-->Line 1&lt;br/>&lt;!--<br />
Line 30: Line 30:
Result of either:
Result of either:


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


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

Revision as of 01:51, 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 only solution for this is to use unbroken markup with <p>...</p> or <br /> elements:

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

Which results in:

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 only solution for this is to use unbroken markup with <p>...</p> or <br /> elements:
{{Blockquote paragraphs|Line 1<br/>Line 2<br/>Line 3<br/>Line 4.}}

Which results in:

Template loop detected: Template:Blockquote paragraphs

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:

Template loop detected: Template:Blockquote paragraphs


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

Result of either:

Template:Bq