Changes

ADVERTISEMENT
From Diablo Wiki
Jump to: navigation, search

Help:Image

52 bytes added, 11:36, 8 February 2010
m
no edit summary
==Adding Images==
[[Image:Jay_Wilson.jpg|thumb|right|150px|{{wl|[http://www.diablowiki.net/Jay_Wilson [Jay Wilson]}}], the Lead Game Designer of [[Diablo 3]].]]To insert an image on any page, you use a small piece of [[Help:Markup|wiki markup]], that you can see is very similar to [[Help:Markup#Creating Links|wiki links]]: <nowiki>[[Image:filename.jpg]]</nowiki>. Make sure you don't forget to write the file extension. For this instruction we assume the picture is already uploaded to the wiki (more on that further down). The valid image files for {{WikiTitle}} are:
* .gif
* .jpg
** <span style="color:white;">|150px100px</span> - The image becomes no wider than 150 pixels and no higher than 100 pixels. The image size ration is preserved.
** If not used, it will use the standard size.
 
* '''Link'''
** <span style="color:white;">|link=</span> - Makes it possible to use the image as a link. Works on both external and internal links. Can't be used with the "thumb" variable.
* '''Caption''' - Any element that isn't identified as one of the above.
** <span style="color:white;">|(any text)</span> - This will create an alternative mouseover tooltip instead of the standard "Image:Jay_Wilson.jpg" on regular images. Will add a caption below the image for "frames" and "thumbs".
 
Examples:
* <nowiki>[[Image:Jay_Wilson.jpg|left|frame|150px|Caption about {{wl|[http://www.diablowiki.net/Jay_Wilson [Jay Wilson]}} ] in a "frame".]]</nowiki>
* <nowiki>[[Image:Jay_Wilson.jpg|right|150px|Caption not working.]]</nowiki>
* <nowiki>[[Image:Jay_Wilson.jpg|thumb|150px|Caption about {{wl[[Jay Wilson]] in a "thumbnail".]]</nowiki>* <nowiki>[[Image:Jay_Wilson.jpg|right|150px|link=Jay Wilson]]</nowiki> Notice how the "150px" attribute on the "frame" image does not work, and that the link for the lowest image leads to Jay Wilson directly, rather than to the image of him. [http[Image://wwwJay_Wilson.jpg|left|frame|150px|Caption about [[Jay Wilson]] in a "frame".]][[Image:Jay_Wilson.diablowikijpg|right|150px|Caption not working.net/]][[Image:Jay_Wilson .jpg|thumb|150px|Caption about [[Jay Wilson]}} ] in a "thumbnail".]]</nowiki>[[Image:Jay_Wilson.jpg|right|150px|link=Jay Wilson]]
Notice how the "150px" attribute on the "frame" image does not work, and that the caption for the regular image is only shown in the mouseover.
[[Image:Jay_Wilson.jpg|left|frame|150px|Caption about {{wl|[http://www.diablowiki.net/Jay_Wilson Jay Wilson]}} in a "frame".]][[Image:Jay_Wilson.jpg|right|150px|Caption not working.]][[Image:Jay_Wilson.jpg|thumb|150px|Caption about {{wl|[http://www.diablowiki.net/Jay_Wilson Jay Wilson]}} in a "thumbnail".]]
<div style="clear:both;"></div>
File:Jay_Wilson.jpg|Caption 1
File:Jay_Wilson.jpg|Caption 2
File:Jay_Wilson.jpg|Link: {{wl|[http://www.diablowiki.net/Jay_Wilson [Jay Wilson]}}]
File:Jay_Wilson.jpg|Lead Designer D3
File:Jay_Wilson.jpg
File:Jay_Wilson.jpg|Caption 1
File:Jay_Wilson.jpg|Caption 2
File:Jay_Wilson.jpg|Link: {{wl|[http://www.diablowiki.net/Jay_Wilson [Jay Wilson]}}]
File:Jay_Wilson.jpg|Lead Designer D3
File:Jay_Wilson.jpg
12,486
edits