top
 

News

Navigation Hosting Plans Domain Registration Software e-Commerce Hosting Plans Contact D & M Computer Service

MediaWiki Tutorials

MediaWiki Tutorial
MediaWiki Installation
MediaWiki Documentation
Change Page Name
Add Links
Sections, Categories
Edit Posts
MediaWiki Skins
MediaWiki Extensions
Images in MediaWiki
Math in MediaWiki
Other Tutorials

MediaWiki Images

How to add images to MediaWiki?

To upload images, you should ensure that:

  • The 'images' directory is writeable
  • Upload in MediaWiki is enabled. To do this, you should set $wgEnableUploads in LocalSettings.php to true
  • The file type you wish to upload must be allowed in ../../includes/DefaultSettings.php:

    $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'doc', 'xls', 'pdf' );

You can also set

$wgStrictFileExtensions = false;

to allow most file types to be uploaded.

  • The user is logged in

Uploading Directly from a URL

You can allow users to directly upload files from a URL. To allow this, in includes/DefaultSettings.php you should set:

$wgAllowCopyUploads = true

To add an image to a post, you need to indicate it in your post as an image using :

[[image:test.png]]

(where test.png is the name of the image).

You can also add thumbnailed images using:

[[image:test.png|thumb|caption]]

The image can be aligned so that you can add text next to it. Here is an example how to create a left aligned image:

[[image:test.png|left|thumb|50px|]]

Upload Permissions

By default, all registered users can upload files. To change this, you have to modify $wgGroupPermissions in includes/DefaultSettings.php:

  • To prevent normal users from uploading files, you should set:

    $wgGroupPermissions['user']['upload'] = false;

  • To create a special group called "uploadaccess", and allow members of this group to upload files, you should set:

    $wgGroupPermissions['uploadaccess']['upload'] = true;

  • To allow "autoconfirmed" (non-newbie) users to upload files, you should set:

    $wgGroupPermissions['autoconfirmed']['upload'] = true;

Other helpful Links



Web Design only Business Marketing Internet Marketing
Web Hosting only Search Engine Optimization Design Site yourself
Web Design & Hosting e-Business Solutions Web Application Development
e-commerce Solution Website Builder FAQ's Tutorials



RJL International Inc.

Here are a few qualifications
our design team has to offer.
Certified International Webmasters

Dreamweaver certified
Joomla Designer
Certified Search Engine Optimization
Certified in Anti Spam protection
Cold Fusion Designers


Discover Card
Visa Card
Master Card

Copyright © 1997 - 2008 D & M Computer Service. All rights reserved RJL International, Inc.

Navigation sitemap Privacy Terms Software Domains D&M Computer Service Hosting