Difference between revisions of "Template:Blockquote paragraphs"
(untweak) |
(tweak) |
||
Line 79: | Line 79: | ||
<p>Line 3</p> | <p>Line 3</p> | ||
<p>Line 4</p>}} | <p>Line 4</p>}} | ||
− | {{collapse bottom}} | + | {{collapse bottom}} |
{{As of|February 2012}}, the {{em|only}} solution for the problem is to use {{em|unbroken markup}} with {{tag|p}} or {{tag|br|single}} elements (or others, like nested blockquotes and lists): | {{As of|February 2012}}, the {{em|only}} solution for the problem is to use {{em|unbroken markup}} with {{tag|p}} or {{tag|br|single}} elements (or others, like nested blockquotes and lists): |
Revision as of 08:45, 3 February 2012
Due to the utterly intractable MediaWiki bug reported at Template:bugzilla, and still unfixed Template:as of, block quoting on Wikipedia, with or without a template, cannot handle freeform linebreaking for paragraphs and poems and the like, unless formatted one very specific (and annoying) way.
Template:collapse topThe intuitive choice:
{{bq|Line 1
Line 2
Line 3
Line 4}}
results in the mangled:
Blank lines seem to work at first:
{{bq|Line 1
Line 2
Line 3
Line 4}}
though with quite tall spacing between the content blocks (lines, in our test cases):
Yet this markup fails with wiki ":" indentation:
Just trying to use Template:tag or Template:tag markup won't solve all the problems:
{{bq|Line 1<br/>
Line 2<br/>
Line 3<br/>
Line 4}}
results in odd spacing, with the middle blocks too close together:
Meanwhile this version seems ok at first:
{{bq|<p>Line 1</p>
<p>Line 2</p>
<p>Line 3</p>
<p>Line 4</p>}}
but again can't be indented:
Template:As of, the Template:em solution for the problem is to use Template:em with Template:tag or Template:tag elements (or others, like nested blockquotes and lists):
which, while hard to read, especially for long content, results in the expected:
And it Template:em work with wikimarkup ":" indentation, unlike the failed test cases above:
Happily, there is an HTML-comment workaround for readability that lets you do whatever you want:
<code>
{{bq|1=<!--
-->Line 1<br/><!--
-->Line 2<br/><!--
-->Line 3<br/><!--
-->Line 4.}}
</code>
or even:
<code>
{{bq|1=<!--
-->Line 1<br/><!--
-->Line 2<br/><!--
-->Line 3<br/><!--
-->Line 4.}}
</code>
which results in the expected:
They Template:em indentable:
{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}