Difference between revisions of "Template:Blockquote paragraphs"

From Remorra
Jump to: navigation, search
en>Gadget850
m (interwikis now go on Wikidata)
en>Gadget850
(: is wikimarkup for indent and has nothing to do with citations)
Line 37: Line 37:
 
Line 4}}
 
Line 4}}
  
Yet this markup fails with wiki ":" citation:
+
Yet this markup fails when the indent wikimarkup ":" is used:
  
 
:{{<includeonly>{{BASEPAGENAME}}</includeonly><noinclude>bq</noinclude>|Line 1
 
:{{<includeonly>{{BASEPAGENAME}}</includeonly><noinclude>bq</noinclude>|Line 1
Line 73: Line 73:
 
<p>Line 4</p>}}
 
<p>Line 4</p>}}
  
but again can't be indented in citation:
+
but again can't be indented in by use of the indent wikimarkup ":"
  
 
:{{<includeonly>{{BASEPAGENAME}}</includeonly><noinclude>bq</noinclude>|<p>Line 1</p>
 
:{{<includeonly>{{BASEPAGENAME}}</includeonly><noinclude>bq</noinclude>|<p>Line 1</p>
Line 90: Line 90:
 
{{<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 ":" citation, unlike the failed test cases hereinbefore:
+
And it {{em|does}} work with the indent wikimarkup ":", unlike the failed test cases hereinbefore:
  
 
:{{<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 11:35, 10 April 2013

{{#invoke:Template translation|renderTranslatedTemplate|template=Template:Navbar|noshift=1}}

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

Template:Collapse top

The intuitive choice:

{{bq|Line 1

Line 2
Line 3

Line 4}}

results in the mangled:

Template:Bq

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):

Template:Bq

Yet this markup fails when the indent wikimarkup ":" is used:

Template:Bq

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:

Template:Bq

Meanwhile this version seems OK at first:

{{bq|<p>Line 1</p>

<p>Line 2</p>
<p>Line 3</p>

<p>Line 4</p>}}

Template:Bq

but again can't be indented in by use of the indent wikimarkup ":"

Template:Bq

Template:Collapse bottom

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):

Template:Tnull

which, while hard to read, especially for long content, results in the expected:

Template:Bq

And it Template:Em work with the indent wikimarkup ":", unlike the failed test cases hereinbefore:

Template:Bq

Happily, there is a 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:

Template:Bq

They Template:Em citable:

Template:Bq

{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}