On Tue, 3 Aug 2004 22:40:47 +0200
Emmanuel Engelhart <emmanuel(a)engelhart.org> wrote:
On Tue, 03 Aug 2004 10:47:28 +0200
Andreas Hoerstemeier <ahoerstemeier(a)spamcop.net> wrote:
Emmanuel Engelhart wrote:
[ 962674 ] Broken images in templates
This one too... by my last patch about | in tamplate parameters.
Definitely not.
Your last patch allows to use template with images a bit
better by providing the full image syntax, yet it fails when the image
tag is compiled at the template.
Thus
{{MyTemplate|image=[[Image:Me.jpg|Me]]}}
works now, but
{{MyTemplate|image=Me}}
with the template having something like
[[Image:{{{image}}}.jpg|{{{image}}}]]
fails - it creates a link to the correct image description, but not to
the image itself. However it may be related with a similar bug for links
to articles (e.g. [[As_of_{{{as_of}}}|{{{as_of}}}]]), dunno if that one
has a sourceforge bug ID.
BTW: I think 963437 is closed as well, that was a duplicate with the one
you fixed. If you could solve the above template bug as well you'll be
my hero - that one together with the pipe problem are the ones I need to
be able to use templates for several infoboxes.
Hi Andreas
Thx for the precisions.
I have no patch for this bug, but I identified the problem.
So Parser.php's guru, that's for you !
On the line 1775 we strip the text, and this text will never be
unstriped -> the picture url will stay false.
My solution was to don't strip anymore, and I obtain a good result ;
but i guess a black border effect....
Cordialy
Emmanuel
I propose replacing the Parser.php line 811 by "return $newline.$text;"
I don't understand why we need to call insertStripItem().
Emmanuel
--
-------------------------------------------------------------------------
Les téméraires... croient qu'ils savent, les sages... savent qu'ils
croient. -- Jean Rostand "Ce que je crois"
-------------------------------------------------------------------------
Emmanuel Engelhart ICQ UIN : 53388731 TEL (+49)(0)6.22.15.88.03.31
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/wikitech-l
--
-------------------------------------------------------------------------
Bienheureux, les félés, car ils laissent passer la lumière.
Michel Audiard
-------------------------------------------------------------------------
Emmanuel Engelhart ICQ UIN : 53388731 TEL (+49)(0)6.22.15.88.03.31