Template:Blockquote paragraphs

From Wayne's Dusty Box of Words

(This section is transcluded from Template:Blockquote paragraphs)

The <syntaxhighlight lang="html" class="" id="" style="" inline="1">

</syntaxhighlight> element and any templates that use it do not honor newlines:

{{#if: ||+ {{{title}}}}} {{#if: |
Markup Renders as

}}Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".

An easy solution is to use the {{poem quote}} template instead of {{#switch:pair |c|close = |e|empty|s|single|v|void |o|open |p|pair = <{{#if:|blockquote|blockquote}}{{#if:| {{{attribs}}}}} }}{{#switch:pair |c|close = |e|empty|s|single|v|void = /> |o|open = > |p|pair = {{#ifeq:blockquote|!--||>}}... }}{{#switch:pair |e|empty|s|single|v|void |o|open = |c|close |p|pair = {{#ifeq:blockquote|!--|-->|</blockquote>}} }}. This is effectively the same as using the {{#switch:pair |c|close = |s|single |o|open |p|pair = <{{#switch:poem |categorytree=categorytree |charinsert=charinsert |ce=ce |chem=chem |gallery=gallery |graph=graph |hiero=hiero |includeonly=includeonly |indicator=indicator |imagemap=imagemap |inputbox=inputbox |mapframe=mapframe |maplink=maplink |math=math |math chem=math chem |noinclude=noinclude |nowiki=nowiki |onlyinclude=onlyinclude |poem=poem |pre=pre |ref=ref |references=references |score=score |section=section |source=source |syntaxhighlight=syntaxhighlight |templatedata=templatedata |templatestyles=templatestyles |timeline=timeline |#default=poem }}{{#if:| {{{params}}}}} }}{{#switch:open |c|close = |s|single = /> |o|open = > |p|pair = >... }}{{#switch:open |s|single |o|open = |c|close |p|pair = </poem>

}} tag inside <syntaxhighlight lang="html" class="" id="" style="" inline="1">

</syntaxhighlight>, which converts line breaks to <syntaxhighlight lang="html" class="" id="" style="" inline="1">
</syntaxhighlight> tags:

{{#if: ||+ {{{title}}}}} {{#if: |
Markup Renders as

}}Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".

To markup actual paragraphs within block quotations, entire blank lines can be used between them, which will convert to <syntaxhighlight lang="html" class="" id="" style="" inline="1">

...

</syntaxhighlight> tags:

{{#if: ||+ {{{title}}}}} {{#if: |
Markup Renders as

}}Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".

Note that it may be necessary to put a line break in the wikitext before <blockquote> and after </blockquote> in order for the paragraphs to render with the intended separation. (This also makes the wikitext easier to read.)

This paragraph style also works with {{blockquote}}, which is a replacement for {{#switch:pair |c|close = |s|single |o|open |p|pair = <{{#switch:blockquote |categorytree=categorytree |charinsert=charinsert |ce=ce |chem=chem |gallery=gallery |graph=graph |hiero=hiero |includeonly=includeonly |indicator=indicator |imagemap=imagemap |inputbox=inputbox |mapframe=mapframe |maplink=maplink |math=math |math chem=math chem |noinclude=noinclude |nowiki=nowiki |onlyinclude=onlyinclude |poem=poem |pre=pre |ref=ref |references=references |score=score |section=section |source=source |syntaxhighlight=syntaxhighlight |templatedata=templatedata |templatestyles=templatestyles |timeline=timeline |#default=blockquote }}{{#if:| {{{params}}}}} }}{{#switch:open |c|close = |s|single = /> |o|open = > |p|pair = >... }}{{#switch:open |s|single |o|open = |c|close |p|pair = </blockquote> }} that also has parameters to make formatting of the attribution more convenient and consistent.

Blockquote and templates that call it, and are indented with colon (:), bulleted with asterisk (*), or numbered with number (#), will generate errors and incorrectly display anything after a newline character.

{{#if: ||+ {{{title}}}}} {{#if: |
Markup Renders as

}}Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".

{{#if: ||+ {{{title}}}}} {{#if: |
Markup Renders as

}}Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".

{{#if: ||+ {{{title}}}}} {{#if: |
Markup Renders as

}}Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".Script error: No such module "Item".


{{#if:|

[[Category:Template documentation pages{{#translation:}}]] }}