Issue:Undesired vertical bar inserted in userformat mode output.
Description: | Undesired vertical bar inserted in userformat mode output. |
Extension / Version: | DPL / 1.7.4 |
Type / Status: | Bug / open |
Problem
My wiki has pages with templates with templates such as the following:
{{mytemplate |parm1=parm1value |parm2=parm2value |parm3=parm3value }}
I am attempting to generate a list of all uses of 'mytemplate' where parm1 = parmvalue1
. I want the list to display the values of two other parameters of the template with separators that I can specify using other parameters. I'm attempting to use the following query:
{{#dpl: |uses=Template:mytemplate |mode=userformat |includematch=/\s*parm1\s*=\s*parm1value/s |includepage={mytemplate}:parm2:parm3 }}
I want it to give me the following output:
parm2valueparm3value
...and then let me specify what separators to put between them.
However, the query produces the following output:
parm2value |parm3value
The code in includeTemplate()
is inserting a vertical bar and newline into the output, apparently presuming that the output is being used to form a template call. But when I specify mode=userformat
, I don't want DPL to add any formatting; I want to do that myself.