Skip to content

Template.getParameters() outputs wrong results when parameters include links #111

@daxenberger

Description

@daxenberger

Originally reported on Google Code with ID 118

What steps will reproduce the problem?
1. Given the following wikitext:
{{Regionlist\
| region1name=[[Houston/Downtown|Downtown]]\
| region1color=#d56d76\
}}\

2. Do template.getParameters()

3. Output parameters are wrong:
region1name=[[Houston/Downtown
region1color=#d56d76

What is the expected output? What do you see instead?
region1name=[[Houston/Downtown|Downtown]]
region1color=#d56d76

What version of the product are you using? On what operating system?
Latest version as of date

Please provide any additional information below.
The '|' char in the link caused the problem. The getParameters() method uses '|' to
separate the parameters, but the same char could also used for wikitext to mark links.

Reported by bizdirect on 2013-07-12 15:51:49

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions