Help: Images: Difference between revisions
m missed one. |
|||
| Line 68: | Line 68: | ||
* <code>{width}x{height}px</code>: Resizes the image to fit within the given width and height in pixels; it is possible to specify only the height by writing <code>x{height}px</code> | * <code>{width}x{height}px</code>: Resizes the image to fit within the given width and height in pixels; it is possible to specify only the height by writing <code>x{height}px</code> | ||
** ''Note that the image will always retain its aspect ratio.'' | ** ''Note that the image will always retain its aspect ratio.'' | ||
* ''link={destination}'': Allows to link to an article or URL; '''e.g.''' <code><nowiki>[[Image: | * ''link={destination}'': Allows to link to an article or URL; '''e.g.''' <code><nowiki>[[Image:Mbox notice.png|20px|link=Help:Images]]</nowiki></code> [[Image:Mbox notice.png|20px|link=Help:Images]]. | ||
** <code>link=</code>: Will display an image without link. | ** <code>link=</code>: Will display an image without link. | ||
** ''Note that <code>link</code> cannot be used in conjunction with <code>thumb</code> as thumb is always meant to link to the larger version of the image. In addition, <code>link</code> cannot be used with <code>frame</code>.'' | ** ''Note that <code>link</code> cannot be used in conjunction with <code>thumb</code> as thumb is always meant to link to the larger version of the image. In addition, <code>link</code> cannot be used with <code>frame</code>.'' | ||
Latest revision as of 00:55, 2 September 2018
Adding images to The Wiki is a great way to enhance the content of an article. Here are some basics on how to upload, use and format images. See also our Image use policy.
Uploading images
[edit]If you've already uploaded an Image, you can use it in an article, with some special wiki syntax to create the link (see below).
- Prepare the file for upload. Make sure the image is cropped to eliminate unecessary space and focused on the image subject.
- In the sidebar, under “tools”, click “upload file”.
- Click “Browse” next to the “Source filename:” to locate the file on your computer (the name of the “browse” button depends on your web browser).
- Change the “Destination filename:” to something descriptive, if necessary. Try to make it as clear and descriptive as possible, without making it excessively long.
- Fill in the “Summary,” the copyright status and description if necessary.
- Click the “Upload file” button.
Note:
- If a file of the same name exists, the file you'll upload will uploaded as new version of it.
- After uploading, you may not see the new version immediately. Try clearing your page cache (CTRL+F5 on most browsers, see here). Don't revert to an older version or attempt to upload again.
File Description Pages / Licensing and copyrights
[edit]After you've uploaded a file, you can use it in an article, with some special wiki syntax to create the link (see below).
Your file gets its very own “File Description Page” within the File namespace of the wiki. You should edit this page to provide more information about the file. You should use the description page to explain where you got the file from, and what its copyright status is. Any other useful descriptive notes could also be added there.
- Tag all images with the applicable license template.
- Images that violate the terms of use of this website or infringe copyright will be subject to deletion.
Syntax
[edit]The full syntax for displaying an image is:
[[Image:{file_name}|{options}]]
The following table shows the effect of the available options, see advanced options bellow:
Advanced options
[edit]The full syntax for displaying an image is:
[[File:{name}|{options}]]
Where options can be zero or more of the following, separated by pipes:
border,frame,thumb, orframeless: Controls how the image is formattedleft,right,center,none: Controls the alignment of the image within a textbaseline,sub,super,top,text-top,middle,bottom,text-bottom: Controls the vertical alignment of the image within a text{width}px: Resizes the image to the given width in pixels{width}x{height}px: Resizes the image to fit within the given width and height in pixels; it is possible to specify only the height by writingx{height}px- Note that the image will always retain its aspect ratio.
- link={destination}: Allows to link to an article or URL; e.g.
[[Image:Mbox notice.png|20px|link=Help:Images]]
.
link=: Will display an image without link.- Note that
linkcannot be used in conjunction withthumbas thumb is always meant to link to the larger version of the image. In addition,linkcannot be used withframe.
alt={alternative text}: For changing the alternative text (alt="") of an image.
Gallery of images
[edit]It's easy to make a gallery of thumbnails with the <gallery> tag. The syntax is:
<gallery>
File:{filename}|{caption}
File:{filename}|{caption}
{...}
</gallery>
Captions are optional, and may contain wiki links or other formatting.
for example:
<gallery> File:Example.jpg|Item 1 File:Example.jpg|a link to [[Help:Contents]] File:Example.jpg|70px File:Example.jpg File:Example.jpg|''italic caption'' </gallery>
is formatted as:
-
Item 1
-
a link to Help:Contents
-
70px
-
italic caption
Link to Image description page
[edit]If you put a colon (:) before Image:, the image will not be embedded and the link will lead to the description page of the file.
[[:Image:Example.png]] [[:Image:Example.png|Sunflowers]]
results in
List of Files in The Portal Wiki
[edit]There are a number of special pages to help you view and manage files which have been uploaded. Go to “Special pages” (in the tools on the left) and then see...
- Gallery of new files - If you just uploaded one, you will see it here.
- File list - shows all of the files
- Unused files helps you track down files which might not be needed.
See also
[edit]- Image use policy - Image guidelines for The Portal Wiki
- Category:Images - Main image category, sub categories should be filed under this.
- Artists Portal - Organize the Images and give tribute and thank their respective artist
- [Additional help] at mediawiki, on formatting and placing Images.
