Difference between revisions of "Help:Images"

From AmtWiki
(begun adding syntax help, saved progress)
(added more rendering options, gallery syntax)
Line 2: Line 2:
  
 
Images can be uploaded to AmtWiki to be used on pages. All images must be either of the .jpg, .kpeg, .gif, or .png file format.
 
Images can be uploaded to AmtWiki to be used on pages. All images must be either of the .jpg, .kpeg, .gif, or .png file format.
 +
 +
''For more detailed options and examples, see the [http://www.mediawiki.org/wiki/Help:Images MediaWiki Image Tutorial].''
  
 
==Uploading Images==
 
==Uploading Images==
Line 20: Line 22:
 
*'''Filename''' is the title you give the image when uploading.
 
*'''Filename''' is the title you give the image when uploading.
 
*'''Extension''' is the file format (jpg, jpeg, png, gif).
 
*'''Extension''' is the file format (jpg, jpeg, png, gif).
*'''Caption''' is the hovertext, shown when placing your mouse over the image. This is optional.
+
*'''Caption''' is the tooltip text, shown when placing your mouse over the image. This is optional.
  
 
There are many '''options''', listed below in the next section.
 
There are many '''options''', listed below in the next section.
Line 31: Line 33:
 
**'''x'''{height}'''px''' — Resizes the image to fit within the given maximum height in pixels, without restricting its width;
 
**'''x'''{height}'''px''' — Resizes the image to fit within the given maximum height in pixels, without restricting its width;
 
**{width}'''x'''{height}'''px''' — Resizes the image to fit within the given width and height in pixels;
 
**{width}'''x'''{height}'''px''' — Resizes the image to fit within the given width and height in pixels;
*
+
*'''Align''' the image horizontally, which you can do either '''left''', '''right''', or '''center'''.
*
+
*Place a '''link''' in the image.
 +
**For internal links, add '''link="Page Title"'''.
 +
**For external links, add '''link="URL"'''.
 +
*'''Formatting''' the image, by either making it have a small grey '''border''', a '''frame''', or making it into a thumbnail using '''thumb'''.
 +
 
 +
===Making a Gallery===
 +
You can make a pre-formatted gallery of images using the <tt><nowiki><gallery></nowiki></tt> tag. The syntax is:
  
 +
<tt><nowiki><gallery>
 +
File:file_name.ext|caption|alt=alt language
 +
File:file_name.ext|caption|alt=alt language
 +
{...}
 +
</gallery></nowiki></tt>
  
==Sizing Images==
+
[[Category: Help]]
*To re-size the image, add |"XXX"px after the .jpg
 
**"XXX" equals the desired pixel width of your image
 
*To align your picture with a certain part of your page add |"Location" after the .jpg
 
**"Location" is the place you want it aligned to: Left, Right, or Center
 

Revision as of 03:25, 19 April 2015

AmtWiki Help
Categories · Contents · Editing · Formatting · Group rights · Images · Linking · Page creation · Quick guide · Searching · Talk pages · Templates

Images can be uploaded to AmtWiki to be used on pages. All images must be either of the .jpg, .kpeg, .gif, or .png file format.

For more detailed options and examples, see the MediaWiki Image Tutorial.

Uploading Images

Before you upload an image to AmtWiki, consider the following:

  • Where will I use this image? Images uploaded should be done so with the intent to add them to a page. Unused images may be considered for deletion.
  • Is this image necessary? Have you already uploaded a similar image, or one that serves a similar purpose?
  • Is the content of this image appropriate for AmtWiki? If the image doesn't fit under the purpose of AmtWiki, do not host it here.

To upload an image from your computer, load the desired picture into the database by using this form. All images uploaded must be 100 MB or less.

  • Then place the syntax [[Image:"your image name".jpg]] onto your page where you want the picture to go.
    • "your image name" is whatever you named the image when you uploaded it.

Formatting Images

The basic code for adding an image to a page is:

[[File:filename.extension|options|caption]]

  • Filename is the title you give the image when uploading.
  • Extension is the file format (jpg, jpeg, png, gif).
  • Caption is the tooltip text, shown when placing your mouse over the image. This is optional.

There are many options, listed below in the next section.

Rendering Options

In the "option" section of the image syntax, you can add zero, one, or more of the following options:

  • Resizing the image, which can be done in multiple ways:
    • {width}px — Resizes the image to fit within the given maximum width in pixels, without restricting its height;
    • x{height}px — Resizes the image to fit within the given maximum height in pixels, without restricting its width;
    • {width}x{height}px — Resizes the image to fit within the given width and height in pixels;
  • Align the image horizontally, which you can do either left, right, or center.
  • Place a link in the image.
    • For internal links, add link="Page Title".
    • For external links, add link="URL".
  • Formatting the image, by either making it have a small grey border, a frame, or making it into a thumbnail using thumb.

Making a Gallery

You can make a pre-formatted gallery of images using the <gallery> tag. The syntax is:

<gallery> File:file_name.ext|caption|alt=alt language File:file_name.ext|caption|alt=alt language {...} </gallery>