Page MenuHomePhabricator

Stray } showing up in DPL results.
Open, Needs TriagePublic

Description

Apparently, when the last character in an included template is a } in a DPL query, that doesn't properly get parsed out. The workaround is to add a space before the closing }} so that you have } }} instead of }}} at the end for the template. Example of workaround fix: http://ddowiki.com/index.php?title=Arcanotechnician_enhancements&curid=35919&diff=313006&oldid=299788

Example:
Query on Category:Bugs

{{#DPL:
  | category = Bugs
  | include  = {Bug}:1
  | table    = Page Name, Description
}}

Included Bug on Foo

{{Bug|1=This is a bug.{{Ref|URL link to external source}} }}

Included Bug on Bar

{{Bug|1=This is a bug.}}

Included Bug on Baz

{{Bug|1=This is a bug.{{Ref|URL link to external source}}}}

Resulting table

Page Name Description
[[Foo]]This is a bug.URL link to external source
[[Bar]]This is a bug.
[[Baz]]This is a bug.URL link to external source}