Help: Images

From A Wiki of Ice and Fire
Jump to: navigation, search

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

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).

  1. Prepare the file for upload. Make sure the image is cropped to eliminate unecessary space and focused on the image subject.
  2. In the sidebar, under “tools”, click “upload file”.
  3. 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).
  4. Change the “Destination filename:” to something descriptive, if necessary. Try to make it as clear and descriptive as possible, without making it excessively long.
  5. Fill in the “Summary,” the copyright status and description if necessary.
  6. 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

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

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:

Description You type You get
Add an Image, using your YourImageName, without any additional options. [[File:YourFileName.jpg]] Example.jpg
Add an Image, with alt text
(text that's shown when you hover your mouse above it)
[[File:YourImageName.jpg|Sunflowers]] Sunflowers
To Add an Image to a page, with specific size for example 200px [[File:YourImageName.jpg|200px]] Sunflowers
To Add an Image to a page, and align it left, right or center. [[File:YourImageName.jpg|center]]
Sunflowers
To add a Thumbnail frame and combine the previous elements
(thumb frame, 200 pixels and with caption)
note that by default thumb frame is aligned right.
[[File:YourImageName.jpg|thumb|200px|Sunflowers]]
Sunflowers

Advanced options

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, or frameless: Controls how the image is formatted
  • left, right, center, none: Controls the alignment of the image within a text
  • baseline, 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 writing x{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]] Mbox notice.png.
    • link=: Will display an image without link.
    • Note that link cannot be used in conjunction with thumb as thumb is always meant to link to the larger version of the image. In addition, link cannot be used with frame.
  • alt={alternative text}: For changing the alternative text (alt="") of an image.

Gallery of images

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:

Link to Image description page

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

File:Example.jpg
Sunflowers

List of Files in The Portal Wiki

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...

See also