Template:Blockquote paragraphs

From D&D 5e
Revision as of 17:55, 2 February 2012 by SMcCandlish (talk) (update)
Jump to: navigation, search

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:

Template:Tnull

Which results in:

Template:Bq

The Template:Em solution for this is to use unbroken markup with {{#if:|

|

}}{{#switch:pair

|c|close  = 
|s|single
|o|open
|p|pair   = <p{{#if:| {{{params}}}}}

}}{{#switch:pair

|c|close  = 
|s|single =  />
|o|open   = >
|p|pair   = >...

}}{{#switch:pair

|s|single
|o|open   = 
|c|close
|p|pair   = </p>

}}{{#if:|

|

}} or {{#if:|

|

}}{{#switch:single

|c|close  = 
|s|single
|o|open
|p|pair   = <br{{#if:| {{{params}}}}}

}}{{#switch:single

|c|close  = 
|s|single =  />
|o|open   = >
|p|pair   = >...

}}{{#switch:single

|s|single
|o|open   = 
|c|close
|p|pair   = </br>

}}{{#if:|

|

}} elements:

Template:Tnull

Which results in:

Template:Bq

However there is an HTML-comment workaround for readability that lets you do whatever you want, and is even indentable with *, : 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.}}

Result of either:

Template:Bq

50px Template documentation[create]