Difference between revisions of "Template:Blockquote paragraphs"
en>DocWatson42 m (Deleted carriage returns.) |
en>Gadget850 m (fix breaks) |
||
| Line 56: | Line 56: | ||
results in odd spacing, with the middle blocks too close together: | results in odd spacing, with the middle blocks too close together: | ||
| − | {{<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 4}} | Line 4}} | ||
| Line 88: | Line 88: | ||
which, while hard to read, especially for long content, results in the expected: | which, while hard to read, especially for long content, 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.}} |
And it {{em|does}} work with wikimarkup ":" indentation, unlike the failed test cases above: | And it {{em|does}} work with wikimarkup ":" indentation, unlike the failed test cases above: | ||
| − | :{{<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.}} |
Happily, there is an HTML-comment workaround for readability that lets you do whatever you want: | Happily, there is an HTML-comment workaround for readability that lets you do whatever you want: | ||
| Line 122: | Line 122: | ||
{{<includeonly>{{BASEPAGENAME}}</includeonly><noinclude>bq</noinclude>|1=<!-- | {{<includeonly>{{BASEPAGENAME}}</includeonly><noinclude>bq</noinclude>|1=<!-- | ||
| − | -->Line 1<br/><!-- | + | -->Line 1<br /><!-- |
| − | -->Line 2<br/><!-- | + | -->Line 2<br /><!-- |
| − | -->Line 3<br/><!-- | + | -->Line 3<br /><!-- |
-->Line 4.}} | -->Line 4.}} | ||
| Line 133: | Line 133: | ||
:{{<includeonly>{{BASEPAGENAME}}</includeonly><noinclude>bq</noinclude>|1=<!-- | :{{<includeonly>{{BASEPAGENAME}}</includeonly><noinclude>bq</noinclude>|1=<!-- | ||
| − | -->Line 1<br/><!-- | + | -->Line 1<br /><!-- |
| − | -->Line 2<br/><!-- | + | -->Line 2<br /><!-- |
| − | -->Line 3<br/><!-- | + | -->Line 3<br /><!-- |
-->Line 4.}}<noinclude> | -->Line 4.}}<noinclude> | ||
Revision as of 15:27, 26 January 2013
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. It's not a problem of blockquote templates, but all uses of <blockquote>.
The 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 <p>...</p> or <br /> 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 okay 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 <p>...</p> or <br /> 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:
{{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 Template:Em indentable:
{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}