using images as links on the wiki

blah blah billnaai at gmail.com
Tue Feb 27 12:16:56 UTC 2007


Thanks - I managed to solve the problem

It turns out that if it only seems to work if I give a URL for the image

so

[http://packages.ubuntu.com/kstars  attachment:IconPage/edubuntu.png]

doesn't work but

[http://packages.ubuntu.com/kstars
https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=edubuntu.png]

does

cheers
Kevin



On 26/02/07, Jeremy Visser <jeremy.visser at gmail.com> wrote:
> > On 26/02/07, Jeremy Visser <jeremy.visser at gmail.com> wrote:
> >> I might be mistaken, but wouldn't you just link to the item and it
> >> would add the link for you?
>
> My apologies. I meant, wouldn't it add the _image_ for you. Hmm...dunno.
>
> Kevin Goldstein wrote:
> > If I want to include an image in a wiki page i would use the code
> >
> > attachment:IconsPage/IconUbuntu.png
> >
> > If i want to make a link I would use the code
> >
> > [http://www.ubuntu.com Ubuntu]
> >
> > Now if I want the Icon to link to www.ubuntu.com and use the code
> >
> > [http://www.ubuntu.com attachment:IconsPage/IconUbuntu.png]
> >
> > the link will appear as the text
> > "attachment:IconsPage/IconUbuntu.png" on the wiki rather than an
> > Icon.
> >
> > This is the suggested syntax which works on
> > http://moinmoin.wikiwikiweb.de/HelpOnLinking. but not on
> > https://wiki.ubuntu.com/HelpOnLinking with the wiki code
> > [http://moinmoin.wikiwikiweb.de/wiki/common/moinmoin.png
> > moinmoin.png]
> >
> > Let me phrase the question in HTML. How would I code the following
> > for the wiki:
> >
> > <a href="www.foo.com"><img src="foo.jpg" alt="foo" /></a>
>
> Well, I would be going along the same path you are.
>
> Can you use that HTML in the wiki, like, as-is? Give it a try.
> I know MediaWiki lets you do that - you should give it a try in MoinMoin.
>
> I am sorry if I am unhelpful. I am very inexperienced with MoinMoin and
> rarely edit the Ubuntu wiki. I am much more experienced with MediaWiki
> and Wikipedia.
>




More information about the ubuntu-doc mailing list