Hi, in the multilang-extension ( http://www.mediawiki.org/wiki/Extension:Multilang) is a bug.
in a template with following: <multilang> @en|[[{{{1}}}]] @de|[[{{{2}}}]] </multilang>
the result is this:
[[{{{2}}}]]
This means that i cannot put a parameter in a wiki-link. Is there anybody who understands php? I asked the author, but he does not know what causes the problem.
Armin
On 19/03/07, Armin Kniesel armin.kniesel@googlemail.com wrote:
This means that i cannot put a parameter in a wiki-link. Is there anybody who understands php? I asked the author, but he does not know what causes the problem.
The extension doesn't take brace substitution into account. This is a common problem for such extensions and there isn't always a clean and easy way of fixing it without getting into horrible recursive messes and whatnot.
At this time, all of the "multiple language" extensions should probably be considered experimental and/or proof-of-concept only.
Rob Church
If you need to pass parameters to a parser extension, the appopriate thing to do is use a parser function rather than an extension tag.
There is an extension called ExpandAfter[1] which is designed to bridge this gap by allowing tag extensions to be called like parser functions.
Good luck!
-- Jim
[1] http://www.mediawiki.org/wiki/Extension:ExpandAfter
On 3/19/07, Rob Church robchur@gmail.com wrote:
On 19/03/07, Armin Kniesel armin.kniesel@googlemail.com wrote:
This means that i cannot put a parameter in a wiki-link. Is there anybody who understands php? I asked the author, but he does
not
know what causes the problem.
The extension doesn't take brace substitution into account. This is a common problem for such extensions and there isn't always a clean and easy way of fixing it without getting into horrible recursive messes and whatnot.
At this time, all of the "multiple language" extensions should probably be considered experimental and/or proof-of-concept only.
Rob Church
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org