Template:Blockquote paragraphs: Difference between revisions
(tweaks) |
(missing some code) |
||
Line 1: | Line 1: | ||
Due to the utterly intractable [[MediaWiki]] bug reported at {{bugzilla|6200}}, and still unfixed {{as of|February 2012|lc=y}}, 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. |
Due to the utterly intractable [[MediaWiki]] bug reported at {{bugzilla|6200}}, and still unfixed {{as of|February 2012|lc=y}}, 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. |
||
{{collapse top|title=The problem in action: test cases that seem like they should work but fail}}<div class="collapse-workaround"> |
{{collapse top|title=<span style="text-align: left;">The problem in action: test cases that seem like they should work but fail</span>}}<div class="collapse-workaround"> |
||
The intuitive choice: |
The intuitive choice: |
||
Line 61: | Line 61: | ||
Line 4}} |
Line 4}} |
||
Meanwhile this version |
Meanwhile this version seems ok at first: |
||
<blockquote><code><nowiki>{{</nowiki><includeonly>{{BASEPAGENAME}}</includeonly><noinclude>bq</noinclude>|<p>Line 1</p><br /> |
|||
<p>Line 2</p><br /> |
|||
<p>Line 3</p><br /> |
|||
<p>Line 4</p>}} |
|||
{{<includeonly>{{BASEPAGENAME}}</includeonly><noinclude>bq</noinclude>|<p>Line 1</p> |
{{<includeonly>{{BASEPAGENAME}}</includeonly><noinclude>bq</noinclude>|<p>Line 1</p> |
Revision as of 06:49, 3 February 2012
Due to the utterly intractable MediaWiki bug reported at Template:Bugzilla, and still unfixed as of February 2012[update], 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.
The problem in action: test cases that seem like they should work but fail
|
---|
The intuitive choice:
results in the mangled: Blank lines seem to work at first:
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
results in odd spacing, with the middle blocks too close together: Meanwhile this version seems ok at first:
|
As of February 2012[update], the only solution for the problem is to use unbroken markup with <p>...</p>
or <br />
elements (or others, like nested blockquotes and lists):
{{bq|Line 1<br/>Line 2<br/>Line 3<br/>Line 4.}}
which, while hard to read, especially for long content, results in the expected:
And can be indented:
Happily, there is an HTML-comment workaround for readability that lets you do whatever you want:
{{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.}}
which results in the expected:
They are indentable: