Difference between revisions of "Template:Blockquote paragraphs"
(tweak) |
(oops) |
||
Line 6: | Line 6: | ||
Line 3<br/><br /> | Line 3<br/><br /> | ||
Line 4.}}</code></blockquote> | Line 4.}}</code></blockquote> | ||
− | Which results in the | + | Which results in the oddly spaced: |
{{<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 14: | Line 14: | ||
The {{em|only}} solution for this is to use unbroken markup with {{tag|p}} or {{tag|br|single}} elements: | The {{em|only}} solution for this is to use unbroken markup with {{tag|p}} or {{tag|br|single}} elements: | ||
:{{tnull|<includeonly>{{BASEPAGENAME}}</includeonly><noinclude>bq</noinclude>|Line 1<br/>Line 2<br/>Line 3<br/>Line 4.}} | :{{tnull|<includeonly>{{BASEPAGENAME}}</includeonly><noinclude>bq</noinclude>|Line 1<br/>Line 2<br/>Line 3<br/>Line 4.}} | ||
− | Which results in: | + | Which results in the expected: |
:{{<includeonly>{{BASEPAGENAME}}</includeonly><noinclude>bq</noinclude>|Line 1<br/>Line 2<br/>Line 3<br/>Line 4.}} | :{{<includeonly>{{BASEPAGENAME}}</includeonly><noinclude>bq</noinclude>|Line 1<br/>Line 2<br/>Line 3<br/>Line 4.}} | ||
Revision as of 02:00, 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 4.}}</code>
Line 3<br/>
Which results in the oddly spaced: Template:bq
The Template:em solution for this is to use unbroken markup with Template:tag or Template:tag elements:
Which results in the expected:
However there is an HTML-comment workaround for readability that lets you do whatever you want, and is even indentable with <code>*, : 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 {{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}