Difference between revisions of "Template:Blockquote paragraphs"
(loop fix) |
(tweak) |
||
Line 38: | Line 38: | ||
-->Line 3<br/><!-- | -->Line 3<br/><!-- | ||
− | -->Line 4.}} | + | -->Line 4.}}<noinclude> |
− | <noinclude> | + | |
{{Documentation}} | {{Documentation}} | ||
<!--Categories and interwikis go on the /doc subpage.--> | <!--Categories and interwikis go on the /doc subpage.--> | ||
</noinclude> | </noinclude> |
Revision as of 01:52, 3 February 2012
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 Template:em solution for this is to use unbroken markup with Template:tag or Template:tag elements:
Which results in:
The Template:tag element and any templates that use it do not honor newlines: Template:markup
To resolve this, use the Template:xtag tag inside Template:tag: Template:markup
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 {{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}