Navigation Menu



From AirgunArena

Jump to: navigation, search

This page explains the image syntax when editing the wiki. Before using images in your page, your wiki must have file uploads enabled.



The full syntax for displaying an image is:


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
  • Special cases:
    • page=1: Displays the specified page when showing a djvu file
  • link={destination}: Allows to link to an arbitrary title, URL or just nowhere (1.14+)
  • alt={alternative text}: For changing the alternative text (alt="") of an image (1.14+)

The options can be given in any order. If the given options conflict each other, the latter is applied, except for the format options, where the options take the priority in the order of frame, thumb, and frameless and/or border. If a given option does not match any of the other possibilities, it is assumed to be the caption text. Caption text can contain wiki links or other formatting.

Gallery of images

It's easy to make a gallery of thumbnails only, not other images, with the <gallery> tag. The syntax is:


Note that the image code is not enclosed in brackets when enclosed in gallery tags.

Captions are optional, and may contain wiki links or other formatting.

for example:

Image:Example.jpg|Item 1
Image:Example.jpg|a link to [[Help:Contents]]
Image:Example.jpg| ''italic caption''
Image:Example.jpg|on page "{{PAGENAME}}"

is formatted as:


The gallery tag itself takes several additional parameters:

<gallery {parameters}>
  • caption={caption}: sets a caption on the gallery.
  • widths={width}px: sets the widths of the images.
  • heights={heights}px: sets the (max) heights of the images.
  • perrow={integer}: sets the number of images per row.

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


results in

Image:Example.jpg Sunflowers

Link directly to a file

You can use an image the same as text to link directly to a file, bypassing the image description page.

example of the syntax:

link= (this can be within or without the Wiki)