Help talk:Images

Align a external image
How can I do to align a external image ? If I put the URL the pics display where the text is. I can't align the image to the right for example :( Somebody can help me ?


 * you must include the external image into a table. You can allign the table. But I can't resize the external image. Can anybody help me with this?


 * External images don't seem to be scalable at all. What we're doing is:
 * * integrate the external image using a normal html-imagetag
 * * scale it in the browser :

No link to the upload page?
If the image referenced does not exist, the gallery displays the filename as text rather than a link to the upload page (as it did in previous versions). I have tried the File, Image and Media prefixes. Is this a bug?

Syntax section lacking. "Link" option not operational.
I was just trying to determine how to wrap an image in a link to another article. After reading the (limited) syntax section, I attempted to use the "link=" option to gain this functionality. After many test efforts, on this page, and using the Preview function (so as not to flood the history), I am still yet to achieve this goal. Is this article still current? Are the instructions clear and accurate? Or it is a problem at my end causing this issue? --203.13.128.101 06:48, 21 October 2008 (UTC)


 * See Help:Linked images. Note that the  parameter is very new. Check Special:Version, if the revision is not at least r41727 then this syntax is not yet available. Splarka 11:29, 21 October 2008 (UTC)


 * I am also having the same issue that was mentioned, regarding the link functionality not working. I have a fully updated install, version 1.13.3. I'm using the provided syntax, as far as I can tell, but the image will only link to the standard image details page. Caseyparsons 17:45, 9 February 2009 (UTC).


 * r41727 means 1.14. —Emufarmers(T 01:05, 10 February 2009 (UTC)

Text wrap?
How do one make tex wrap arround an image? --Asset 11:27, 30 November 2008 (UTC)

new File: NS
Should be noted that if you're using SVN, or editing on the wikimedia projects, that the namespace for "images" is File: now, not Image:. TBH, this makes more sense to me for what's now available on the projects ;).

Kjikaqawej 06:41, 13 December 2008 (UTC)


 * It also looks like the File NS is case sensitive for the "F". On my MW 1.15.1 lower case f doesn't link correctly, but the depreciated Image NS used to work with "image". DdDave 20:15, 10 November 2009 (UTC)

Large Images
I can upload small images but when I upload images, files over 2mb; it just goes blank. When I resize it won't resize. Can someone help me. 86.136.108.50 17:39, 19 February 2009 (UTC)
 * Is it possible that your PHP configuration is limiting uploads of this size? I have this vague memory of getting "blank" pages when PHP didn't allow large enough uploads. That's all I can think of without more specific information about your problem. --Vjg 00:15, 27 February 2009 (UTC)
 * That's why I can't upload large files because the PHP configuration is limiting it. What do I have to do? 86.136.108.50 09:54, 8 March 2009 (UTC)
 * That would depend upon how your PHP is configured and the requirements might change depending upon who is hosting your PHP-enabled site. See http://us3.php.net/manual/en/ini.core.php#ini.upload-max-filesize --Vjg 13:46, 8 March 2009 (UTC)
 * Thank you for the info. I have another query, basically on my main page i have a picture as a title. I don't want it to link anywhere, can I stop that? is it possible. 86.136.108.50 16:03, 8 March 2009 (UTC)
 * Use Media instead of Image or File; otherwise see the new 'link=' syntax for "File". Also, these types of questions should be asked on the helpdesk as indicated at the top of this page. --Vjg 03:29, 9 March 2009 (UTC)

Help:Images/frame and Help:Images/size
When importing this help page on my wiki, the {{/frame|frame [...] were interpreted as Template:/frame. I had to add change them to {{Help:Images/frame|frame [...] to make it work. Any idea why ?--Alagache 15:06, 24 February 2009 (UTC)


 * Subpaging is enabled on the Help: namespace here. This can change the behavior of relative transclusions. See Manual:$wgNamespacesWithSubpages. Splarka 16:18, 25 February 2009 (UTC)

Page breaking
I'm just setting up a wiki, I turned on subpages for the help namespace as said above, is there anything else I need to turn on to stop it looking like this? http://www.suitableforvegetarians.info/wiki/index.php?title=Help:Images
 * Just glancing at your site, it appears you are missing the Extension:ParserFunctions extension and the Template:! template on your installation. --Vjg 21:27, 10 March 2009 (UTC)

Problem with: Gallery of images
I am trying to use the gallery function.

I've upload the pretty flower pic to my mediawiki and I've kept it named Example.jpg, but I can't get image to appear when I copy the code from: http://www.mediawiki.org/wiki/Help:Images#Gallery_of_images

This code:

Gives me text in all of the right places, but no images.

When I change the text from “File:Example.jpg” to “Image:Example.jpg” images appear.

am I not supposed to use “File” or is there a parameter that I need to set? --TheMightyHercules 02:10, 4 April 2009 (UTC)
 * Image: was only recently changed to File:, if it doesn't work for you, you just have to use Image:. Splarka 07:30, 4 April 2009 (UTC)

Faking a "thumb" with alt "link"
Fake "thumb" syntax.

This often gets asked for a lot. A way to use the link= parameter with thumb. permalink



Fake "thumb" syntax.

Splarka 03:24, 29 April 2009 (UTC)

Wording question
Can we add the word "scale" somewhere in addition to "resize?" That would help more searches find the resize examples. Thanks.

129.93.159.31 21:23, 1 May 2009 (UTC)

External Image Size
Is it possible to resize an external image? E.g. [|20px] --Robinson Weijman 07:58, 8 July 2009 (UTC)

links and images ?
can i ask here if ther is a way of showing a small image as the alternate way of rolling over text links

http://en.wikipedia.org/wiki/User_talk:Teapotgeorge#hello

Image Strangeness
The stable page shows red links to "File:MediaWiki:Image sample" (deleted) instead of the inlined "File:Example.jpg" for me, and I don't really know why. Draft works for me again. --130.83.160.141 14:41, 17 August 2009 (UTC)

Frame transparancy
How do I make the frame transparent to a background image. For instance, on this page the preformatted text and the TOC (yes, I know they are not images, but the problem is the same) are not transparent to the background, yet the MediaWiki logo image is. The Template on Help:Images likewise is not transparent to the background image. Any advice on how I can make the background image bleed through? RedJ 17 18:07, 22 August 2009 (UTC)


 * TOCs, tables, and image frames are intentionally given background colors to prevent header lines bleeding through. You can remove them with site/skin CSS, or just give images your own frame with whitelisted html (&lt;div&gt;s), or just don't use a frame (per example). Splarka 07:34, 23 August 2009 (UTC)
 * The problem with not using a frame is that it also won't show the caption. My wiki has a gradient background in the text space, so it's not like putting the same color as as the image frame backgound (at least I don't think so).  The text space background gradient has to show.  RedJ 17 17:17, 23 August 2009 (UTC)
 * In your MediaWiki:Common.css:

div.thumbinner {background-color:transparent;} div.thumb {border-color: transparent;}
 * But it will look bad in some browsers, probably. Splarka 07:23, 24 August 2009 (UTC)
 * Thanks, I'll try it. I also found a work around using templates which essentially rewrites the Image functionality.  But CSS would be more elegant.

Link + magic word
Hi, without magic is ok and you can use un magic word in the caption but not in the link.
 * Example : truc.png -> the link is truc.png :(


 * Works for me:
 * Wiki.png
 * But you have a U+200E LEFT-TO-RIGHT MARK in your pasted example between the URL and the magic word. Also, are you sure you're using a new enough version of mediawiki? Splarka 07:33, 15 September 2009 (UTC)
 * Ok without space link is working.

Link + parameter
With link doesnt work(parameter is not empty and there are no spaces)...How I can debug that ? thanks


 * Wiki.png -> Wiki.png
 * Template parameters take 3 braces, and the syntax you use there means null fallback, and all a null link= does is prevent the image linking anywhere at all. And you are still inserting a U+200E LEFT-TO-RIGHT MARK in just before the first brace. Splarka 06:57, 19 September 2009 (UTC)
 * yes my paste is bad it was Wiki.png . But I cannot see the U+200E LEFT-TO-RIGHT MARK and the version of my mediawiki is 1.15.1. Can I remove myself this invisible mark and how ? Thanks.
 * Ok I saw with notepad++ but again it doesnt work the link=http is now tn the caption of the picture.


 * Ok I found; it's my fault ;) Thanks!

Problems with image+link+caption
Hi there, i have a big problem with the imagelink and captions for image link on version 1.15.1. in your help it means for an Imagelink with caption, i look in to the html source and see no title parameter in the a href of the image link. The expample on this page has in the html source an title paramter but i dont know how it makes. Its a little bit tricky here to come to the orginal source of the example. mean it is framed and framed. Why ? Anyone can help thats i become a title tag in an imagelink? Look here it works on this version of mediawiki but on my version it gives no title paarameter on a href.

I've the same problem; I guess it's a bug in MW 1.15.1. Hajo


 * I also have the problem in 1.15.3 that no "title" is in HTML code when use "link=http://..." . I'm trying to work it out but with no confidence. I also want the link to be "target=_blank" when the url does not belong to my domain name. --Zayoo 12:05, 15 May 2010 (UTC)

I've made it!

in file include/MediaTransformOutput.php line 160 of function toHtml 159		if ( !empty( $options['custom-url-link'] ) ) { 160			$linkAttribs = array( 'href' => $options['custom-url-link'] ); change line 160 to			$linkAttribs = array( 'href' => $options['custom-url-link'], 'title' => $title ); then title appear. To make "target=_blank" for url that not belongs to site's domain name, change to this if (!strpos($options['custom-url-link'], $_SERVER['SERVER_NAME'])) { $linkAttribs = array( 'href' => $options['custom-url-link'], 'title' => $title, 'target' => '_blank' ); } else { $linkAttribs = array( 'href' => $options['custom-url-link'], 'title' => $title ); } Warning: I don't know whether title should be encoded or not for security. USE AT YOUR OWN RISK. --Zayoo 14:15, 15 May 2010 (UTC)

This bug seems to be fixed in 1.16.0. To make external link open in new window in 1.16.0, the code above is also valid by removing 'title' => $title. -Zayoo 08:46, 2 September 2010 (UTC)

Black Images after Update
Hey - I have recently updated to 1.15.x. Now I have black images on all pages, see here: http://freecoffee.de/Eduroam_mit_Windows_Mobile I found out, that I have to user ?action=purge to clear the cache. I also truncated the objectcache table. The first solution works for a single page. But I have a lot of images uploaded to the wiki. So, is there a faster way to clear the image cache? Thanks in advance, kind regards --Nickaat 17:43, 11 January 2010 (UTC)

Adding alt text to gallery images
Can it be done? I've got my gallery set up like the example: but in addition to the text underneath each image, I would like to have a second set of text when each image is moused over. (null).exe 14:21, 21 January 2010 (UTC)

Thumbnail link bypass the description page
[[Media:image.jpg]]

creates a text link directly to the image bypassing the file description page but I would like to create a thumbnail link that bypasses the description page and goes directly to the image. I've tried every conceivable combination of options but nothing seems to work.
 * Use:  [[Image:Wiki.png|link=]] 
 * [[Image:Wiki.png|link=]]
 * Hamilton Abreu 23:19, 12 February 2010 (UTC)

Captions not displaying
The Help page says that adding text in an image link that's not in any of the other formats will be interpreted as a caption. It implies but does not explicitly say that the caption will show on the page. And, in fact, the caption does display in the "thumb" and "frame" options. However, in "frameless", "border" or omitted, the caption is apparently not presented. It doesn't even show up in the HTML pagesource.

I've submitted a Support desk request in case it's a technical issue but given that I am seeing this problem even on the example images here, I suspect that it's something more. If I am misunderstanding the intent of the comments about captions, could someone please correct them?

Or if it's a known bug based on something like browser versions, could someone please add a compatibility comment? Anything to clear up the confusion would be appreciated. Rossami 23:52, 24 May 2010 (UTC)


 * This might be simply a terminology issue. With "thumb" and "frame", you do get an actual image caption on the page, just below the image. With omitted, "frameless" and "border" there is no actual image caption on the page, below the image, but it shows up when you place the pointer over the image:
 *  [[Image:Wiki.png|caption text here]]  &rarr; [[Image:Wiki.png|caption text here]]
 *  [[Image:Wiki.png|frameless|caption text here]]  &rarr; [[Image:Wiki.png|frameless|caption text here]]
 *  [[Image:Wiki.png|border|caption text here]]  &rarr; [[Image:Wiki.png|border|caption text here]]
 * You might know this form of caption as "alt" or "title" or something else. Would this be the case? Hamilton Abreu 00:28, 25 May 2010 (UTC)


 * Hmmm. If that's how it's actually supposed to behave then I would agree that it's a terminology problem that the text on the Help page doesn't help.  I've seen the HTML title attribute used in several ways but never automatically tied to the mouseover.  "Alt" is, I believe, different in that alt text is supposed to display when the image is not available (such as when the image is suppressed or still loading).  Either way, calling those "captions" is counter-intuitive.  The only ones that are behaving here the way that we think of captions in other media are the ones with thumb and frame.
 * My confusion was made worse by the section of the Help page which 1) describes alt and caption differently, 2) never uses the word "title" but if it had, my natural assumption would have been that title referred to "page title", that is, "filename" and 3) explicitly says that caption can accommodate wiki-markup (which it can with thumb and frame but not in the mouseover of border, frameless or omitted).
 * Then just to increase my confusion, the mouseover does not display on my work computer (IE 7.0), though it does at home (Firefox 3.6 and IE 8.0). And even in Firefox, the mouseover never displays in the last example ( example.jpg.
 * Assuming the last is a glitch rather than another Microsoft "feature", I recommend expanding the paragraph on captions to explicitly describe their behavior in the different contexts - visible beneath for thumb and frames and thus able to accommodate links and formatting but functioning as a mouseover (and thus text-only) on the others. And maybe even a footnote about IE compatibility if that can be verified as a global issue rather than just me?  Thanks.  Rossami 06:09, 25 May 2010 (UTC)


 * Regarding terminology, distinguishing the two as "visible caption" and "mouseover caption" would be much clearer, yes. I am using IE7 (7.0.5730.13) and the mouseover caption works fine, so it must be a glitch on your machine. Regarding wiki-markup on mouseover captions, some is possible: for example, you can transclude other pages:
 *  [[Image:Wiki.png|border|]]  &rarr; [[Image:Wiki.png|border|]]
 * but it's necessarily limited by the format, so no linking, text formatting, etc. Finally, it would be great if you could update the page as you see fit, to perform these and any other corrections and improvements you see fit: coming from your stand-point, I'm sure the end result will be much clearer. Hamilton Abreu 14:04, 25 May 2010 (UTC)

Problem trying to use images in a template
Hi. I'm using MW 1.15.3. I have the following in a template:



If I call the template using this results in a redlink of the filename wrapped in the  text. For example:



The image definitely exists and show up in the list of uploaded files. Can template parameters not handle this?

Thanks User:mitchelln 14:34, 30 June 2010 (UTC)
 * Template parameters can handle that. It's odd that only the filename is red linked. To be redlinked, it must end up in the form of a link, i.e. . It also seems that somehow the text   is not being interpreted as a link at all, which might result from a syntax error before that text, in the template. Hamilton Abreu 23:00, 30 June 2010 (UTC)

Change in the gallery coding?
Umm yeah, I'm an admin at the One Piece Wiki and I was wondering if there was a change in the code used throughout the various wikis. The change anyway is more messier and is a bit of a bother to some of us here in our wikia. You can see the problem here and in other galleries of the wikia. I was wondering if somebody could possibly revert the gallery coding back to the way it was as before the change as presented here in this Help Page.

Problem with link= in a template
Hi. I'm using MW 1.15.3. I have in my template: The template parameter contains a valid page link. When I hover over the image the correct link is displayed, but when I click on the image it takes me to the Open.png page instead. Any ideas? Thanks User:mitchelln 17:04, 21 July 2010 (UTC)


 * What is the exact value being sent in the parameter, and the exact correct link displayed when hovering the image? For example, when you say that the parameter is a "valid page link", if that means you're enclosing it in square brackets that could be a problem:
 *  Wiki.png  &rarr; Wiki.png (Ok)
 *  Wiki.png]]  &rarr; Wiki.png]] (Not Ok)
 * Hamilton Abreu 21:03, 21 July 2010 (UTC)


 * By the way, this problem looks similar to the one you placed above a couple of weeks ago, where probably a link was being passed instead of a pagename:
 *  [[Image1.png]]  &rarr; [[Image1.png]]
 * Hamilton Abreu 21:17, 21 July 2010 (UTC)

link+Header Tabs [solved]
Using Extension:Header Tabs I have the tab "Vídeo" in a page. I want to target an image link to this tab but don't works. I wrote: But when the user click the image the URL in the browser is: http://mysite/index.php/page-name#tab.3DV.C3.ADdeo and goes to the page, not the tab.

Solutions? Any idea to solve? Thanks

See the case in (nuvola video icon): http://enlloc.net/hkp/w/index.php?title=Hacks --Dvdgmz 18:35, 12 August 2010 (UTC)
 * I don't know the extension, but there seem to be a couple of issues: 1) the  sign after  ; 2) tab names that contain accented characters (the extension might not be handling those properly). Try this: instead of letting   build the URL, give the correct URL to  . In other words, go to the target page and click the tab you want. This places the correct URL for that tab in the browser navigation field. Give this URL to , replacing the pagename by  . For example, to link to the Vídeo tab, you'd use:

<pre style="margin-left:25px">
 * Hamilton Abreu 02:48, 3 September 2010 (UTC)


 * Hi Hamilton Abreu, thanks for the answer. But with 'urlencode' don't works the "link=" parameter. It does not work either here:
 * wiki.png
 * I think that the problem it's with the '=' sign, as you said. I don't need to encode it, it is encoded automatically and this is the problem. The sign should not be encoded. But I do not know how to avoid it.
 * I've done lots of testing without success. :-(
 * --Dvdgmz 16:54, 3 September 2010 (UTC)


 * Sure it works:

<pre style="margin-left:75px; word-wrap:break-word;">
 * gives wiki.png. Hamilton Abreu 02:19, 4 September 2010 (UTC)


 * OH! Great! Thanks a lot!! Now it works fine!
 * Then... works with like in wiki.png, but not with  like in wiki.png. That's the solution, finally.
 * --Dvdgmz 09:46, 4 September 2010 (UTC)

Style options for galleries
Hey, is there a way to add style options (through style or class attribute) to a gallery? Bud0011 16:09, 24 September 2010 (UTC).

PDF rendering doesn't work
This page says MediaWiki supports rendering PDF pages, but I have a fresh install of MediaWiki 1.16.0 and it doesn't work. Any ideas?
 * I don't know about native support, but there are a few extensions that help provide that support. Bud0011 22:00, 20 October 2010 (UTC).
 * Thanks but I tried them and couldn't get any of them to work. It would be useful to know if MediaWiki is meant to support this by default or not, if anybody knows.
 * no, mediawiki doesn't support that out of the box (Well you can upload them, but they won't be rendered). Wikimedia (wikipedia, et al) uses extension:PdfHandler to deal with pdfs. Bawolff 22:39, 21 October 2010 (UTC)