Help:File

From Fanon Wiki
Logo mono black.png
This is one of Fanon Wiki's help pages and is meant to aid users by improving their ability to positively contribute to the wiki. Expanding pages such as this with additional information is always welcome.
Logo mono black.png

Files are contained in the 6th namespace, the File namespace. A file must be uploaded to this wiki before it can be placed on a page. Files can be uploaded using Special:Upload. Choose a file to upload. Then choose a name for the file. The file name should contain the subject's name. Files can be added to an article by creating a link to the file in the article. Additional parameters to the file include size, the change of the image's dimensions, "thumb" if the image is to be a thumb image and alt text.

File Types

The permitted file types are as follows:

  • svg (image that is infinitely scalable without a loss in quality)
  • png (common lossless image format)
  • jpg (common lossy image format)
  • oga (audio)
  • mp3 (audio)
  • apng (animated image, can also use just .png)
  • gif (animated image)

Tutorial

To make an image appear on an article, link to the page containing the image, which will start with File: and end with the image's file format.

Code Result
[[File:Logo.png]]
File:Logo.png

This also works for audio files. This produces an image with no frame and at its original resolution, which is generally not a good thing. To fix these things, put |thumb after the file name, which will turn it into a thumbnail.

Code Result
[[File:Logo.png|thumb]]

It is possible to add a caption to images by putting text after another vertical bar.

Code Result
[[[[File:Logo.png|thumb|Fanon Wiki's logo.]]
File:Logo.png
Fanon Wiki's logo.

Finally, it is possible to change the size of images and their position on the page with additional pieces of text before the caption. 250px will make the image 250 pixels wide (this number can be changed, and the default size is 200 pixels wide), and left will place the image on the left of the screen (center and right also work, and right is the defaul t position).

Code Result
[[File:Logo.png|thumb|left|250px|Fanon Wiki's logo.]]
File:Logo.png
Fanon Wiki's logo.

An alternative way to show images is in a gallery. Galleries display images at small sizes in a grid. To make one, surround a section with <gallery> at the start and </gallery> at the end, and place each file name (without the File: prefix) on a new line. Image captions can be placed after a vertical bar.

Code Result
<gallery>
File:Logo-horizontal.png|Fanon Wiki's logo (horizontal)
File:Logo mono black.png|Fanon Wiki's logo in a black color scheme.
</gallery>

If you would like to link to a file page without embedding the file, put a colon before the word File: in the link. It will then be treated as a normal text link. For audio files, do not use modifiers.