PiRSquared17 / jwpl

Automatically exported from code.google.com/p/jwpl
0 stars 1 forks source link

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

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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.

Original issue reported on code.google.com by bizdir...@gmail.com on 12 Jul 2013 at 3:51