Help:Images: Difference between revisions

From StrategyWiki, the video game walkthrough and strategy guide wiki
2,163 bytes added ,  29 January 2007
From PD at mediawiki
(→‎Part 2: expanding)
(From PD at mediawiki)
Line 1: Line 1:
==The Image Link==
{{All Game Nav|game=StrategyWiki:Guide}}
===Part One===
The first step to uploading an image and utilizing an image is to create an image link. The link is the destination for the image uploaded. Below is an example of an image link:


<nowiki>[[Image:L-5 Riesig.png|thumb|right|The L-5 Riesig.]]</nowiki>
__TOC__
{| {{Prettytable}}
|-
|{{Hl3}}|'''Description'''
|{{Hl3}}|'''You type'''
|{{Hl3}}|'''You get'''
|-
|Embed image<br /> (with alt text)
|
<code><nowiki>[[Image:Super Mario Bros. 3.jpg|Super Mario Bros. 3]]</nowiki></code>
|
[[Image:Super Mario Bros. 3.jpg|Super Mario Bros. 3]]
|-
|Link to description page
|
<code><nowiki>[[:Image:Super Mario Bros. 3.jpg]]</nowiki></code><br />
<code><nowiki>[[:Image:Super Mario Bros. 3.jpg|Super Mario Bros. 3]]</nowiki></code>
|
[[:Image:Super Mario Bros. 3.jpg]]<br />
[[:Image:Super Mario Bros. 3.jpg|Super Mario Bros. 3]]
|-
|Link directly to file
|
<code><nowiki>[[Media:Super Mario Bros. 3.jpg]]</nowiki></code><br />
<code><nowiki>[[Media:Super Mario Bros. 3.jpg|Super Mario Bros. 3]]</nowiki></code>
|
[[Media:Super Mario Bros. 3.jpg]]<br />
[[Media:Super Mario Bros. 3.jpg|Super Mario Bros. 3]]
|-
|Thumbnail<br /> (centered, 100 pixels<br /> wide, with caption)
|
<code><nowiki>[[Image:Super Mario Bros. 3.jpg|center|thumb|100px|Super Mario Bros. 3]]</nowiki></code>
|
[[Image:Super Mario Bros. 3.jpg|center|thumb|100px|Super Mario Bros. 3]]
|}


The first part of the link is the name of the image. The name of the image is important. This is an example of a wrong image name:
==Uploaded files==
To use an image or other file which has been [[Help:Managing files|uploaded to the wiki]], use:
*<code><nowiki>[[Image:Super Mario Bros. 3.jpg]]</nowiki></code>
If you add a pipe (|) and some text after the filename, the text will be used as alternative text for text-only browsers:
*<code><nowiki>[[Image:Super Mario Bros. 3.jpg|alternative text]]</nowiki></code>


<nowiki>[[Image:Metroid Prime Hunters1.png|150px]]</nowiki>
If you don't want to display the image, you can link to the file's description page, by adding a colon:
*<code><nowiki>[[:Image:Super Mario Bros. 3.jpg]]</nowiki></code>
To bypass the description page and link directly to a file , use the "Media" pseudo-namespace:
*<code><nowiki>[[Media:Super Mario Bros. 3.jpg]]</nowiki></code>
You can also make piped links if you want some other text to be used:
*<code><nowiki>[[:Image:Super Mario Bros. 3.jpg|link text]]</nowiki></code>
*<code><nowiki>[[Media:Super Mario Bros. 3.jpg|link text]]</nowiki></code>


The image name should be, if possible, the name of whatever the image is of. The last part to the image name is the tag. It can be '''jpg''', '''png''', '''gif''' or a variety of others.
===Advanced options===
The full syntax for displaying an image is:
<code><nowiki>[[Image:{name}|{options}]]</nowiki></code>
Where options can be zero or more of the following, separated by pipes:
*<code>thumb</code>, <code>thumbnail</code>, or <code>frame</code>: Controls how the image is formatted
*<code>left</code>, <code>right</code>, <code>center</code>, <code>none</code>: Controls the alignment of the image on the page
*<code>{width}px</code>: Resizes the image to the given width in pixels
*<code>{caption text}</code>
The options can be given in any order. 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.


===Part Two===
===Gallery of images===
The second part is optional. It is the size. You can adjust the size of the image by using a pixel number. Here is an example:
It's easy to make a gallery of thumbnails with the <code><nowiki><gallery></nowiki></code> tag. The syntax is:
<pre>
<gallery>
Image:{filename}|{caption}
Image:{filename}|{caption}
{...}
</gallery>
</pre>
Captions are optional, and may contain wiki links or other formatting.


<nowiki>[[Image:Metroid Prime Hunters1.png|150px]]</nowiki>
for example:
<pre>
<gallery>
Image:Super Mario Bros. 3.jpg|Item 1
Image:Super Mario Bros. 3.jpg|a link to [[Help:Contents]]
Image:Super Mario Bros. 3.jpg
Image:Super Mario Bros. 3.jpg
Image:Super Mario Bros. 3.jpg|''italic caption''
</gallery>
</pre>
is formatted as:
<gallery>
Image:Super Mario Bros. 3.jpg|Item 1
Image:Super Mario Bros. 3.jpg|a link to [[Help:Contents]]
Image:Super Mario Bros. 3.jpg
Image:Super Mario Bros. 3.jpg
Image:Super Mario Bros. 3.jpg|''italic caption''
</gallery>


===Part Three===
==Other files==
The third part is the thumbnail option. Having '''thumb''', in the image link puts a border around the image and with the '''thumb''' option in the image link, you can add a description of the image.
You can link to an external file using the same syntax used for [[Help:Links#External links|linking to an external web page]]. This feature has to be enabled by the admin; in the new releases of MediaWiki its disabled due to security reasons.
*<code><nowiki>[http://url.for/some/image.png]</nowiki></code>
Or with different text:
*<code><nowiki>[http://url.for/some/image.png link text here]</nowiki></code>


===Part Four===
If it is enabled on your wiki, you can also embed external images. To do that, simply insert the url:
The fourth part is which side of the page you want the image on. Left or right.
*<code><nowiki>http://url.for/some/image.png</nowiki></code>
==Uploading Images==
===Part 1===
The first part to uploading an image is to choose the file that you are about to upload. To do this click on choose file and select the wanted file.


===Part 2===
{{Footer Nav|game=StrategyWiki:Guide|backpage=Links|nextpage=Tables}}
If uploading a file by clicking on the [[Special:Upload|Upload file]] link you will need to specify a name. The default name provided will match the name of the file on your local computer.  Naming guidelines can be found above.
 
===Part 3===
Next, the file needs a summary. Here you type in a description of the image you are uploading. After the description of the image is typed, input the categories that the image fits under.  There are [[StrategyWiki:Images|categorization guidelines]] to help decide which categories to put on which pages.
 
Categories commonly used:
*[[:Category:Box artwork]]
*[[:Category:Characters]]
*[[:Category:Sprites]]
*[[:Category:Screenshots]]
*[[:Category:Models]]
*[[:Category:Items]]