Help:Files
This is an information page. It is not an encyclopedic article, nor one of Wikipedia's policies or guidelines; rather, its purpose is to explain certain aspects of Wikipedia's norms, customs, technicalities, or practices. It may reflect differing levels of consensus and vetting. |
This page in a nutshell: To use an image or other media file on Wikipedia, you need to upload it, and then edit a Wikipedia page to use the file. |
Namespaces | |||
---|---|---|---|
Subject namespaces | Talk namespaces | ||
0 | (Main/Article) | Talk | 1 |
2 | User | User talk | 3 |
4 | Wikipedia | Wikipedia talk | 5 |
6 | File | File talk | 7 |
8 | MediaWiki | MediaWiki talk | 9 |
10 | Template | Template talk | 11 |
12 | Help | Help talk | 13 |
14 | Category | Category talk | 15 |
100 | Portal | Portal talk | 101 |
118 | Draft | Draft talk | 119 |
126 | MOS | MOS talk | 127 |
710 | TimedText | TimedText talk | 711 |
828 | Module | Module talk | 829 |
Former namespaces | |||
108 | Book | Book talk | 109 |
442 | Course | Course talk | 443 |
444 | Institution | Institution talk | 445 |
446 | Education Program | Education Program talk | 447 |
2300 | Gadget | Gadget talk | 2301 |
2302 | Gadget definition | Gadget definition talk | 2303 |
2600 | Topic | 2601 | |
Virtual namespaces | |||
-1 | Special | ||
-2 | Media | ||
Current list |
The File namespace is a namespace consisting of administration pages in which all of Wikipedia's media content resides. On Wikipedia, all media filenames begin with the prefix File:
, including data files for images, video clips, or audio clips, including document length clips; or MIDI files (a small file of computer music instructions).
There are three semantic differences from the normal
- [[File:pagename]] will transclude the file, inserting the image, video, audio, or MIDI file into the rendered page in a file link. A file link is a transclusion from the File namespace, complete with transclusion parameters.
- [[:File:pagename]], with the initial colon, will link the image, video, or audio file page;
- [[Media:pagename]] will render a link which can activate the image or audio or video of a data file directly, on its own page (separate from the rendered page or the file page).
For backward compatibility with older pages the alias Image: (now deprecated) is still available instead of File: in wikilinks or in the search box, but "image" will now refer to more types of data files than just images.
Uploading files
The first step in using an image or other media file is to
The preferred formats
- for images: SVG, PNG, JPEG, and XCF. The GIF and TIFF formats are recognized, and other image formats may be too.
- for audio: MIDI, and also Ogg with FLAC, Speex, or Vorbis codecs.
- for video: WebM, and also Ogg with the Theora video codec.
You may have to rename your file for Wikipedia: see Naming files below. Also, please bear in mind that the Exif format of many digital cameras, smartphones, and scanners may embed personal metadata, and that if your media files are handled by unknown persons, steganography can embed hidden information in them.
High resolution images and animated .gif files may pose a problem for performance, but see the problem description in terms of bandwidth and reader's computing power at
Once the file is uploaded, please verify its
Files subject to any restrictions on how they may be used (except attribution or
Using files
[[File:Wikipedesketch.png|thumb|alt=A cartoon centipede ... detailed description.|The Wikipede edits ''[[Myriapoda]]''.]]
The above link contains "fields":
- the page name, "File:Wikipedesketch.png"
- "thumb", short for thumbnail and referring here to the reader's default size for images (See Help:User preferencesto specify your own thumbnail sizes.)
- the alt text, such as might read "A cartoon centipede with seven hands reads a book, lifts another, types on a laptop, and holds a bottle". Alt text is intended for visually impaired readers or those with browsers or computers that do not display images. It should describe the gist of the picture's appearance in detail
- the caption, as "The Wikipede edits Myriapoda." The caption is intended for viewers of the image and explains the meaning while using terms that refer directly to items as they appear in the image.
Text and captions need have little text in common. A reader of the article can click on the thumbnail, or on the small double-rectangle icon below it, to go to the corresponding file page.
By default, the page layout will place the image to the right of the wikitext, one line below where you placed the link. The
For examples of all these techniques, see
Naming files
File names should be clear and descriptive, without being excessively long. While the image name doesn't matter much to the reader (they can reach the
To avoid accidental overwriting of images or other media, generic filenames should not be used when uploading. For example, a picture of an album cover should not be given the name File:Cover.jpg. Sooner or later someone else will try to do the same thing, and that could overwrite the old image. Then the new image will appear wherever the old one was seen before—an album article would then show the wrong album cover. A better name would be File:Sabaton The Last Stand cover.jpg
Renaming files
Renaming a file page is different than
The request to rename a page is made by adding the following template to the wikitext file page, anywhere on the page:
{{Rename media|new filename|reason for name change}}
This will add the file page to Category:Wikipedia files requiring renaming, where a file mover will notice it.
The most common and accepted reasons a file mover will change a name are:
- Uploader request
- Changing from a meaningless to a descriptive title
- Changing from a misleading name to an accurate name
- Correcting important errors denoting, for example the spelling of a proper noun, or a false historical date
- Harmonizing file names with a set of related names
- Disambiguating files with very similar names
- Remove pejorative, offensive or crude language
The bolded words are description enough for the reason for a name change.
Finding files
You can use the Special:Search box below to locate Files. See Help:Searching for more information.
See also
- Help:Creation and usage of media files
- Help:Viewing media
- Wikipedia:File names
- Wikipedia:Images – an overview
- mw:Help:Images at MediaWiki
- commons:Allowable file types (STL is only allowed at Commons)