InMotion Hosting Support Center

Inserting images in MediaWiki takes a few steps to accomplish. First the file needs to be uploaded. Then you will need to insert the code in the page that places the image in the content. This article will explain the steps to upload and insert images into your MediaWiki pages.

Important! If you have not enabled user uploads in your MediaWiki you will not be able to complete this tutorial. Please check the Enabling user image uploads in MediaWiki tutorial for more information on allowing image uploads.

Inserting an image into your MediaWiki pages

  1. Log into MediaWiki.
  2. Upload file link MediaWikiOn the left hand side in the navigation sidebar, click the Upload File link.
  3. Select the image source MediaWikiOn the Upload file page, browse for the image you want to upload to your MediaWiki page.

    Click Upload File.

  4. Get the file name MediaWikiThe file will show in the File history and the file name will display in the page.

    On the image page to the top left, you can see the file name. in this case File:Dog4.gif.

    Note! The file name is used in the MediaWiki code to display the image. Notate the image name for the next step.

    Notate the file name.

  5. Insert the image code MediaWikiFind a page to insert an image in.

    Click the Embedded file icon in the WYSIWYG editor. A code will be generated like the following:


    Change Example.jpg to your file name. In this case the file name is Dog4.gif. The code should look like the following example.


    Save the page.

    Finished view of image MediaWikiNow you will see your image show on the wiki page.

Images can also be formatted to display left, right or with captions. The next article will explain how to format the images in MediaWiki.

Was this article helpful?
Continued Education in Course 102: Adding content to MediaWiki
You are viewing Section 8: How to insert images into MediaWiki
Section 7: How to Enable File Uploads in MediaWiki
Section 9: Formatting images in MediaWiki

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Forum Login

You are NOT logged in. You can still browse our Support Center.

To participate within our Community Support Forum:

n/a Points
2016-10-07 1:19 am

We need set image on mediawiki. and we need code for right side alighn image. 

31,595 Points
2016-10-07 1:10 pm
Here is a link to our guide on Formatting images in MediaWiki. It includes a section on how to "Float Right."

Thank you,
n/a Points
2015-06-21 4:53 pm

WikiUp is a small utility for adding images and files to your MediaWiki wiki site. (Windows only). With WikiUp you simply paste the image from the clipboard, click upload and then paste the Wiki-tag directly into the page you're editing.

You can drag and drop files and images to upload instantly. Automatic naming of pasted images.

WikiUp is completely free.

Available at

Post a Comment

Email Address:
Phone Number:

Please note: Your name and comment will be displayed, but we will not show your email address.

3 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?


Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!