Help:Files
[[File:, including data files for
[[File:CI 2011 swim 04 jeh.theora.ogv" will appear in the search results for
Help:Files
In the context of a MediaWiki environment, files are an essential component that allows users to upload, manage, and display various types of media content within the wiki pages. This article provides a comprehensive guide on how to handle files in MediaWiki, including uploading, linking, and managing them effectively.
Uploading Files
To upload a file in MediaWiki, users typically need to have the appropriate permissions. The process involves the following steps:
1. Access the Upload Page: Navigate to the "Upload file" link, usually found in the sidebar under "Tools". This link directs you to the Special:Upload page.
2. Choose a File: On the upload page, click the "Choose file" button to select a file from your local device. MediaWiki supports a variety of file types, including images, audio, and video files.
3. File Description: Provide a meaningful description for the file. This description should include relevant information such as the source, author, and any applicable licensing information.
4. Destination Filename: Specify a destination filename. By default, this is the same as the original filename, but it can be changed to better suit the wiki's naming conventions.
5. Upload: Click the "Upload file" button to complete the process. If the upload is successful, the file will be stored in the wiki's file repository.
Linking to Files
Once a file is uploaded, it can be linked or embedded in wiki pages. There are several ways to do this:
- Linking to a File: To create a link to a file, use the following syntax:
``` Media:Filename.ext ``` This creates a direct link to the file, allowing users to download it.
- Embedding an Image: To embed an image file within a page, use the following syntax:
```
``` This displays the image with a thumbnail and an optional caption.
- Embedding Other Media: For audio or video files, use similar syntax to embed the media player directly in the page.
Managing Files
MediaWiki provides several tools for managing files:
- File Description Page: Each uploaded file has a description page that includes metadata, usage statistics, and a history of changes. This page can be accessed by clicking on the file link.
- File Versions: MediaWiki supports versioning of files. Users can upload new versions of a file, and previous versions are retained for reference.
- Deleting Files: Only users with the appropriate permissions can delete files. This is done through the file description page.
File Usage and Licensing
Proper licensing and attribution are crucial when uploading files to a MediaWiki site. Users should ensure that they have the right to use and distribute the file and that they provide appropriate credit to the original creator.
Also see
Edit WikiMD
Contributors: Prab R. Tumpati, MD