Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 22: | Line 22: | ||
;How to upload | ;How to upload | ||
# Go to the [[Special:Upload|upload page]]. | #Go to the [[Special:Upload|upload page]]. | ||
# Choose the file that you are about to upload. | #Choose the file that you are about to upload. | ||
#* Option 1: select "'''Source: filename'''" (the first circle button, it may already be selected). Use this to upload from your computer. | #*Option 1: select "'''Source: filename'''" (the first circle button, it may already be selected). Use this to upload from your computer. | ||
#** To do this, click 'Choose File'. In the pop-up window find your file, then click 'Open'. The upload page will now show the path/filename and maybe a thumbnail on the right. The default name provided will match the name of the file on your local computer, so it will need to be renamed if it doesn't conform to the [[StrategyWiki:Guide/File uploads|image naming policy]]. | #**To do this, click 'Choose File'. In the pop-up window find your file, then click 'Open'. The upload page will now show the path/filename and maybe a thumbnail on the right. The default name provided will match the name of the file on your local computer, so it will need to be renamed if it doesn't conform to the [[StrategyWiki:Guide/File uploads|image naming policy]]. | ||
#* Option 2: "''''Source URL'''" - copy from another website. If you are uploading from a source on the web, enter the full URL into the provided box. When copying an image from another website, you will have to enter the filename yourself. Remember to also place the URL into the summary section so that others know where it was copied from (this helps others verify that the image complies with [[StrategyWiki:Guide/License|StrategyWiki's licensing]]). Alternatively, you can click on a red image link to be taken to the upload page with the named filled in from the link. One helpful way to deal with this, if you are copying a filename from a gallery or thumbnail preview, is to put the filename in the summary field, then put the URL into place. Replacing the bad filename with a good one is just one step away - copy it from the summary field where you temporarily put it (please remove it from the summary before submitting). | #*Option 2: "''''Source URL'''" - copy from another website. If you are uploading from a source on the web, enter the full URL into the provided box. When copying an image from another website, you will have to enter the filename yourself. Remember to also place the URL into the summary section so that others know where it was copied from (this helps others verify that the image complies with [[StrategyWiki:Guide/License|StrategyWiki's licensing]]). Alternatively, you can click on a red image link to be taken to the upload page with the named filled in from the link. One helpful way to deal with this, if you are copying a filename from a gallery or thumbnail preview, is to put the filename in the summary field, then put the URL into place. Replacing the bad filename with a good one is just one step away - copy it from the summary field where you temporarily put it (please remove it from the summary before submitting). | ||
# '''Naming''': properly name your image with the name of the guide to which it belongs or its abbreviation, followed by a one or two word description of the image, such as a character's name or a level's name. The destination filename should be something clear like 'War3RoC Sylvanas-base Map.png' (this sufficiently references the game [[WarCraft III: Reign of Chaos]], the level it applies to, and the type of image it is). The extension, ".jpg", ".png", ".gif", etc., is case-sensitive and all lowercase is preferred. For details, see the [[StrategyWiki:Guide/File uploads|image naming policy]]. | #'''Naming''': properly name your image with the name of the guide to which it belongs or its abbreviation, followed by a one or two word description of the image, such as a character's name or a level's name. The destination filename should be something clear like 'War3RoC Sylvanas-base Map.png' (this sufficiently references the game [[WarCraft III: Reign of Chaos]], the level it applies to, and the type of image it is). The extension, ".jpg", ".png", ".gif", etc., is case-sensitive and all lowercase is preferred. For details, see the [[StrategyWiki:Guide/File uploads|image naming policy]]. | ||
# '''Summary''': here you put a description of the image with a link to the guide on which it will be used. For example, "Box art from <nowiki>[[Super Mario Bros.]]</nowiki>." If the image is from someone else, '''attribute''' them here, preferably with a URL. | #'''Summary''': here you put a description of the image with a link to the guide on which it will be used. For example, "Box art from <nowiki>[[Super Mario Bros.]]</nowiki>." If the image is from someone else, '''attribute''' them here, preferably with a URL. | ||
#* '''Categories''': below the summary, put any applicable [[:Category: | #*'''Categories''': below the summary, put any applicable [[:Category:Images|image categories]] and the guide-specific category. For example, "<nowiki>[[Category:Box artwork]][[Category:Super Mario Bros. images]]</nowiki>". Note that the word "images" in the guide-specific category is lowercase. To make these readable, and to follow Wikipedia's standards for where to put categories and how to display them, we prefer to put a line break (press enter) between the categories, so that only one category is on each line. This makes it easier to read them. Finally, please alphabetize the categories. | ||
===Image Formats=== | ===Image Formats=== | ||
Line 43: | Line 43: | ||
==Using uploaded files== | ==Using uploaded files== | ||
To use an image or other file which has been uploaded to the wiki, use: | To use an image or other file which has been uploaded to the wiki, use: | ||
* <code><nowiki>[[File:SMB NES Box.jpg]]</nowiki></code> | *<code><nowiki>[[File:SMB NES Box.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 and for the tooltip when you hover the mouse of it: | If you add a pipe (|) and some text after the filename, the text will be used as alternative text for text-only browsers and for the tooltip when you hover the mouse of it: | ||
* <code><nowiki>[[File:SMB NES Box.jpg|alternative text]]</nowiki></code> | *<code><nowiki>[[File:SMB NES Box.jpg|alternative text]]</nowiki></code> | ||
If you don't want to display the image, you can link to the file's description page, by adding a colon: | If you don't want to display the image, you can link to the file's description page, by adding a colon: | ||
* <code><nowiki>[[:File:SMB NES Box.jpg]]</nowiki></code> | *<code><nowiki>[[:File:SMB NES Box.jpg]]</nowiki></code> | ||
To bypass the description page and link directly to a file , use the "Media" pseudo-namespace: | To bypass the description page and link directly to a file , use the "Media" pseudo-namespace: | ||
* <code><nowiki>[[Media:SMB NES Box.jpg]]</nowiki></code> | *<code><nowiki>[[Media:SMB NES Box.jpg]]</nowiki></code> | ||
You can also make piped links if you want some other text to be used: | You can also make piped links if you want some other text to be used: | ||
* <code><nowiki>[[:File:SMB NES Box.jpg|link text]]</nowiki></code> | *<code><nowiki>[[:File:SMB NES Box.jpg|link text]]</nowiki></code> | ||
* <code><nowiki>[[Media:SMB NES Box.jpg|link text]]</nowiki></code> | *<code><nowiki>[[Media:SMB NES Box.jpg|link text]]</nowiki></code> | ||
==Image placement== | ==Image placement== | ||
{| {{prettytable}} | {|{{prettytable}} | ||
|- | |||
!Description | !Description | ||
!You type… | !You type… | ||
Line 112: | Line 113: | ||
<code><nowiki>[[File:{name}|{options}]]</nowiki></code> | <code><nowiki>[[File:{name}|{options}]]</nowiki></code> | ||
Where options can be zero or more of the following, separated by pipes: | 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. Thumbnailed images are typically smaller, and what should normally be used for in-guide images. Framed images are similar to thumbnailed images, but are not scaled down, while if this option is left out entirely, the image is displayed at full size without any border or embellishment. Use frames on images that don't need to be scaled down or have a caption. Use thumbnails to scale large images down to the default size (250px wide). If you use a thumbnail, put a caption! Remember, users can increase thumbnail size in their preferences. | *<code>thumb</code>, <code>thumbnail</code>, or <code>frame</code>: Controls how the image is formatted. Thumbnailed images are typically smaller, and what should normally be used for in-guide images. Framed images are similar to thumbnailed images, but are not scaled down, while if this option is left out entirely, the image is displayed at full size without any border or embellishment. Use frames on images that don't need to be scaled down or have a caption. Use thumbnails to scale large images down to the default size (250px wide). If you use a thumbnail, put a caption! Remember, users can increase thumbnail size in their preferences. | ||
* <code>left</code>, <code>right</code>, <code>none</code>: Controls the alignment of the image or thumbnail on the page. Thumbnail images default to floating to the right. | *<code>left</code>, <code>right</code>, <code>none</code>: Controls the alignment of the image or thumbnail on the page. Thumbnail images default to floating to the right. | ||
* <code>{width}px</code>: Resizes the image to the given width in pixels. Note that use of this option is discouraged for thumbnailed images, as it means people can't specify the thumbnail size they want to view in their [[StrategyWiki:Guide/Preferences#Files|preferences]]. | *<code>{width}px</code>: Resizes the image to the given width in pixels. Note that use of this option is discouraged for thumbnailed images, as it means people can't specify the thumbnail size they want to view in their [[StrategyWiki:Guide/Preferences#Files|preferences]]. | ||
* <code>{caption text}</code>: A short description of the image and what it shows. This will be displayed under the image for <tt>thumb</tt> and <tt>frame</tt> images. | *<code>{caption text}</code>: A short description of the image and what it shows. This will be displayed under the image for <tt>thumb</tt> and <tt>frame</tt> images. | ||
* <code>link=''Destination''</code>: This is a named parameter, meaning you ''must'' put in "<code>link=</code>" before the destination. Using this option navigates the browser to wherever you specify when the user clicks the image (ex. <nowiki>[[File:Super Mario Bros. cover.jpg|link=Super Mario Bros.]]</nowiki>). Note that link brackets (<nowiki>[[</nowiki> and ]]) are not used with this option. Normally, clicking the image takes you to the image's information page, so when using this option, it's helpful to make it obvious to readers that the image serves as a link. Currently, using this option negates any alternate text you may try to use, and the "<code>alt=</code>" named parameter also currently doesn't work. This means you cannot modify the words in the tooltip that pops up when hovering over the image. | *<code>link=''Destination''</code>: This is a named parameter, meaning you ''must'' put in "<code>link=</code>" before the destination. Using this option navigates the browser to wherever you specify when the user clicks the image (ex. <nowiki>[[File:Super Mario Bros. cover.jpg|link=Super Mario Bros.]]</nowiki>). Note that link brackets (<nowiki>[[</nowiki> and ]]) are not used with this option. Normally, clicking the image takes you to the image's information page, so when using this option, it's helpful to make it obvious to readers that the image serves as a link. Currently, using this option negates any alternate text you may try to use, and the "<code>alt=</code>" named parameter also currently doesn't work. This means you cannot modify the words in the tooltip that pops up when hovering over the image. | ||
* <code>class=''custom class'''</code>: Similar to <code>link</code> this is also a named parameter. This allows you to specify custom styles for the images. For example, <code>class=pixelart</code> will allow upscaling pixel art images without blurring. <code>class=imgmaxwidth</code> will size the image to fill the maximum width, and resize on smaller screens. | *<code>class=''custom class'''</code>: Similar to <code>link</code> this is also a named parameter. This allows you to specify custom styles for the images. For example, <code>class=pixelart</code> will allow upscaling pixel art images without blurring. <code>class=imgmaxwidth</code> will size the image to fill the maximum width, and resize on smaller screens. | ||
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. | 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. | ||
Line 179: | Line 180: | ||
Further lines are split into tokens, separated by whitespace. The function of each line is determined by the first token in the line. '''All coordinates are according to the full-size image, not the visible image'''. | Further lines are split into tokens, separated by whitespace. The function of each line is determined by the first token in the line. '''All coordinates are according to the full-size image, not the visible image'''. | ||
* '''desc''': Specifies the location of the image description link. May be either <tt>top-right</tt>, <tt>bottom-right</tt>, <tt>bottom-left</tt>, <tt>top-left</tt>, or <tt>none</tt>. This puts a blue "i" icon in the specified corner, linking to the image description page. The default is bottom-right. To hide the description link, set it to <tt>none</tt>. | *'''desc''': Specifies the location of the image description link. May be either <tt>top-right</tt>, <tt>bottom-right</tt>, <tt>bottom-left</tt>, <tt>top-left</tt>, or <tt>none</tt>. This puts a blue "i" icon in the specified corner, linking to the image description page. The default is bottom-right. To hide the description link, set it to <tt>none</tt>. | ||
* '''poly''': A polygon. The coordinates of the vertices are given, followed by a link in square brackets. '''Polygons must be defined before any other form!''' | *'''poly''': A polygon. The coordinates of the vertices are given, followed by a link in square brackets. '''Polygons must be defined before any other form!''' | ||
* '''rect''': A rectangle. The parameters are the coordinates of the top-left and bottom-right corners, followed by a title to link to in square brackets. | *'''rect''': A rectangle. The parameters are the coordinates of the top-left and bottom-right corners, followed by a title to link to in square brackets. | ||
* '''circle''': A circle. The first two parameters are the coordinates of the center, the third is the radius. The coordinates are followed by a link in square brackets. | *'''circle''': A circle. The first two parameters are the coordinates of the center, the third is the radius. The coordinates are followed by a link in square brackets. | ||
* '''default''': This gives the default link, where no other regions are specified. | *'''default''': This gives the default link, where no other regions are specified. | ||
All coordinates are specified relative to the source image. The image can be scaled using a size in pixels piped after the image source in the first line, in which case the image map coordinates will be automatically scaled as well. | All coordinates are specified relative to the source image. The image can be scaled using a size in pixels piped after the image source in the first line, in which case the image map coordinates will be automatically scaled as well. | ||
Line 242: | Line 243: | ||
==Other files== | ==Other files== | ||
You can link to an external file using the same syntax used for linking to an external web page, however, it is highly recommended that you upload the images to StrategyWiki instead of hotlinking to other sites. | You can link to an external file using the same syntax used for linking to an external web page, however, it is highly recommended that you upload the images to StrategyWiki instead of hotlinking to other sites. | ||
* <code><nowiki>[ | *<code><nowiki>[http://url.for/some/image.png]</nowiki></code> | ||
Or with different text: | Or with different text: | ||
* <code><nowiki>[ | *<code><nowiki>[http://url.for/some/image.png link text here]</nowiki></code> | ||
You can also embed images via their direct URLs. To do that, simply insert the URL: | You can also embed images via their direct URLs. To do that, simply insert the URL: | ||
* <code><nowiki> | *<code><nowiki>http://url.for/some/image.png</nowiki></code> | ||
You can also use an external image as a link: | You can also use an external image as a link: | ||
* <code><nowiki>[ | *<code><nowiki>[http://destination.page/here/ http://image.url/here.png]</nowiki></code> | ||
Note that if you want an image to link to an internal page you will need to use the external form of the link (e.g. | Note that if you want an image to link to an internal page you will need to use the external form of the link (e.g. http://strategywiki.org/wiki/Main_Page) rather than the internal one (e.g. [[Main Page]]). | ||
{{Footer Nav|game=StrategyWiki:Guide|prevpage=Links|nextpage=Tables}} | {{Footer Nav|game=StrategyWiki:Guide|prevpage=Links|nextpage=Tables}} |