Page MenuHomePhabricator

link with two variables in a piped link
Closed, ResolvedPublic

Description

Author: Suiwiki

Description:
Please see URL's source, and how display it is.
I just want use like this way.
http://meta.wikimedia.org/wiki/User:Suisui/sandbox
Yes it works.
But on the list of templates, it shows stronge one.

When I write as
[[wikisource:{{PAGENAME}}|{{{1}}}]]
then it looks good. but
[[wikisource:{{{1}}}|{{{2}}}]]
does not works good.


Version: 1.3.x
Severity: normal
URL: http://meta.wikimedia.org/wiki/Template:Wikisource

Details

Reference
bz553

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 7:07 PM
bzimport set Reference to bz553.
bzimport added a subscriber: Unknown Object (MLST).

wmahan_04 wrote:

If I understand correctly, you're referring to the fact that the template
page [[Template:Wikisource]] looks strange, even though it works correctly
when you include the template in another page.

There is indeed a problem here. A simpler test case is:

{|

[[{{{1}}}|{{{2}}}]]
}

When displaying the page, the link is not parsed because it contains the
characters '{' and '}'. However, the table parsing code thinks that the '|'
in the link indicates table cell parameters. I'll try to find a fix
for this in the near future.

wmahan_04 wrote:

Should be fixed in HEAD (Parser.php revision 1.314).

hm, why is this bug now marked "fixed-in-cvs"? The parser-bug was fixed, but
this didn't give us defaults for parameters / optional parameters, right? Or
this this already implemented too? That would be cool!

Not sure I understand which issue this bug is about.

Resolving as fixed as it's described above as fixed in what is now REL1_4.