Help:File
|
Files are contained in the 6th namespace, the File namespace. Only images previously uploaded to this wiki can be placed in the files. 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. This page is a tutorial on how to make files appear:
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 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.]] |
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.]] |
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> |