Topic on Project:Support desk

Internal image links not working

8
98.189.165.213 (talkcontribs)

On an older version of MediaWiki I was able to do an internal link with an image like this <img>imagelink</img>.

When I upgraded, this stopped working...so I've tried multiple combinations to no avail.

External links work well in this format - [External_link Image_link] - but I don't want to do that for internal links because I have my external links set up to open a new window, which I don't want for internal links.

I have all my images in a folder called "images", and I couldn't get this format to work so I just went with the external images

Anything I'm missing?

MarkAHershberger (talkcontribs)

I think you were using an extension for the <img> tags. I helped a client upgrade from 1.11 to 1.19 and saw this was something they were using.

What happens if you use [[Image:Image_name.jpg]] to link show your internal images? Also, see Help:Images.

98.189.165.213 (talkcontribs)

That format was a bit confusing for me...as it talks about storing images on a mediawiki server, where I have all my images on my web host's server. I'm under the impression that if I want to upload a bunch of pictures, say if I have some edits to do, I would have to do them one at a time with the upload utility.

But, I did try the upload utility and that [[Image:Image_name.jpg]] format...but when I used that syntax and saved the page, it gave me a red link, so I clicked that and it took me to the utility to upload the picture...which I did, but the image never showed up.

MarkAHershberger (talkcontribs)

Interesting. So you did everything right, it sounds like. Maybe uploads aren't working.

Could you look at your error log and tell me what you see when you try to upload a picture? See Manual:How to debug if you need some help with that or ask more questions here.

98.189.165.213 (talkcontribs)

Well, I'm not really interested in doing the upload method for pictures, because there are times when I need to upload a bunch at one time...so I'd rather just pick and choose which one's I need uploaded and then do them all at once through my FTP client.

Does this mean there is no way to have an external image link for an internal link unless I do it that way?...or perhaps find out why my img tags don't work anymore?

MarkAHershberger (talkcontribs)
98.189.165.213 (talkcontribs)

Thanks Mark...I'm not making myself clear.

So, that's good to know about the upload to wikiserver that I can do multiple images. Will have to play with that later...but in the mean time, I'd like to be able to have my external images link to internal pages. If I put the full url for the internal page, then it treats it like an external page and opens a new window, since I have a rule set up to do that for external links. I don't really want that when the user is navigating within the wiki.

It doesn't work with any syntax I've tried, so I might have to enable the rawhtml (which is seems is not advisable) to use the img tags..? I have done the allowimgtag thing, but that doesn't seem to work for it either.

I'll play more around with it tomorrow and post anything if I get successful.

Thanks much!

MarkAHershberger (talkcontribs)
Reply to "Internal image links not working"