The following wiki markup:
[[Image:Michelino DanteAndHisPoem.jpg|thumb|right|250px|''La commedia illumina Firenze'' in the dome of [[Santa Maria del Fiore]]]]
is rendering using the API function (api.php?action=render&text=[[Image:Michelino DanteAndHisPoem.jpg|thumb|right|250px|''La commedia illumina Firenze'' in the dome of [[Santa Maria del Fiore]]]]) as follows:
<div class="thumb tright"><div class="thumbinner" style="width:252px;"><a href="<a href="http://en.wikipedia.org/wiki/Image:Michelino_DanteAndHisPoem.jpg%22%22%3Ehtt p://en.wikipedia.org/wiki/Image:Michelino_DanteAndHisPoem.jpg"</a> class="image" title="La commedia illumina Firenze in the dome of Santa Maria del Fiore"><img alt="La commedia illumina Firenze in the dome of Santa Maria del Fiore" src="<a href="http://upload.wikimedia.org/wikipedia/en/thumb/e/e2/Michelino_DanteAnd HisPoem.jpg/250px-Michelino_DanteAndHisPoem.jpg"">http://upload.wikimedia.or g/wikipedia/en/thumb/e/e2/Michelino_DanteAndHisPoem.jpg/250px-Michelino_Dant eAndHisPoem.jpg"</a> width="250" height="203" border="0" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify" style="float:right"><a href="<a href="http://en.wikipedia.org/wiki/Image:Michelino_DanteAndHisPoem.jpg%22%22%3Ehtt p://en.wikipedia.org/wiki/Image:Michelino_DanteAndHisPoem.jpg"</a> class="internal" title="Enlarge"><img src="/skins-1.5/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div><i>La commedia illumina Firenze</i> in the dome of <a href="<a href="http://en.wikipedia.org/wiki/Santa_Maria_del_Fiore%22%22%3Ehttp://en.wikiped ia.org/wiki/Santa_Maria_del_Fiore"</a> title="Santa Maria del Fiore">Santa Maria del Fiore</a></div></div></div> <FONT face=Arial size=3>Notice that the first <a> tag has an <a> tag in it's href attribute. This cannot be right. Is this a bug?</FONT> <FONT face=Arial size=3></FONT> <FONT face=Arial size=3>Scott</FONT>
<FONT face=Arial></FONT> <FONT face=Arial></FONT> <FONT face=Arial></FONT> <FONT face=Arial></FONT>
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Scott Wilfong wrote:
The following wiki markup:
[[Image:Michelino DanteAndHisPoem.jpg|thumb|right|250px|''La commedia illumina Firenze'' in the dome of [[Santa Maria del Fiore]]]]
is rendering using the API function (api.php?action=render&text=[[Image:Michelino DanteAndHisPoem.jpg|thumb|right|250px|''La commedia illumina Firenze'' in the dome of [[Santa Maria del Fiore]]]]) as follows:
<snip>
Notice that the first <a> tag has an <a> tag in it's href attribute. This cannot be right. Is this a bug?
It works correctly for me. What's the exact URL?
See: http://en.wikipedia.org/w/api.php?action=render&text=%5B%5BImage:Micheli...
- -- Daniel Cannon (AmiDaniel)
cannon.danielc@gmail.com
Got it! Thanks Daniel!
I didn't have the "format=url" parameter in the url. As soon as I added that it worked fine.
Thanks again.
-----Original Message----- From: mediawiki-api-bounces@lists.wikimedia.org [mailto:mediawiki-api-bounces@lists.wikimedia.org] On Behalf Of Daniel Cannon Sent: Thursday, December 06, 2007 5:50 PM To: MediaWiki API announcements & discussion Subject: Re: [Mediawiki-api] Rendering Issue
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Scott Wilfong wrote:
The following wiki markup:
[[Image:Michelino DanteAndHisPoem.jpg|thumb|right|250px|''La commedia illumina Firenze'' in the dome of [[Santa Maria del Fiore]]]]
is rendering using the API function (api.php?action=render&text=[[Image:Michelino DanteAndHisPoem.jpg|thumb|right|250px|''La commedia illumina Firenze'' in the dome of [[Santa Maria del Fiore]]]]) as follows:
<snip>
Notice that the first <a> tag has an <a> tag in it's href attribute. This cannot be right. Is this a bug?
It works correctly for me. What's the exact URL?
See: http://en.wikipedia.org/w/api.php?action=render&text=%5B%5BImage:Micheli... teAndHisPoem.jpg|thumb|right|250px|''La%20commedia%20illumina%20Firenze''%20 in%20the%20dome%20of%20[[Santa%20Maria%20del%20Fiore]]]]&format=xml
- -- Daniel Cannon (AmiDaniel)
cannon.danielc@gmail.com
_______________________________________________ Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-api
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Scott Wilfong wrote:
Got it! Thanks Daniel!
I didn't have the "format=url" parameter in the url. As soon as I added that it worked fine.
Should work without an explicit format specified, and indeed it seems to. The only problem of course is that the output from the pretty-printer will need to be double-encoded to produce the correct output. But in any case, the "<a href=<a href" situation isn't occurring in any format, at least so far as I can see.
- -- Daniel Cannon (AmiDaniel)
cannon.danielc@gmail.com
mediawiki-api@lists.wikimedia.org