[Moin-user] migration to 1.6 -- ImageLink macro conversion without alt text

greg whittier greg at thewhittiers.com
Sat Jan 19 12:58:49 EST 2008


I'm migrating 1.5 to 1.6 and have run into the following problem.

We use the ImageLink macro pretty extensively on our wiki to resize
images and in the process of migrating, the script has turned all the

[[ImageLink(picture.jpg, width=600)]]

into

[[attachment:picture.jpg|{{attachment:picture.jpg||width=600}}]]

which gets served as

<img alt="|width=600" class="attachment"
src="/mywiki/MyPage?action=AttachFile&do=get&target=picture.jpg"
title="|width=600" /></a>

It looks like it can't handle an empty "alt text" argument between the
"||".  If I do

[[attachment:picture.jpg|{{attachment:picture.jpg|some alt text|width=600}}]]

then it works.  I didn't see this is MoinMoinBugs and I'm not sure
whether it's considered one.  I'm hoping it is and a patch will keep
me from a lot of wiki editing :-)

Thanks,
Greg




More information about the Moin-user mailing list