Template:Random image: Difference between revisions
Jump to navigation
Jump to search
TrollSlaiyer (talk | contribs) No edit summary |
TrollSlaiyer (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<div style="text-align:center">''[[Template:Random image|Add an image here...]]''</div> | |||
<div style="text-align:center"> | <div style="text-align:center"> | ||
<choose> | <choose> | ||
Line 53: | Line 54: | ||
This template shows a random image based on a selection. | This template shows a random image based on a selection. | ||
Adding an image is simple, simply add a new set of option tags and the image, plus a short caption describing it. In other words, it should appear as: | Adding an image is simple. First, you may want to check the [[Special:ListFiles|list of files already uploaded]] if you want to add an image to help prevent dupes. If it hasn't been uploaded yet then feel free to [[Special:Upload|upload]] it. Once you've got the image, simply add a new set of option tags and the image, plus a short caption describing it. In other words, it should appear as: | ||
<pre> | <pre> | ||
[[File:filename.png|center|x250px]] | [[File:filename.png|center|x250px]] | ||
Line 59: | Line 61: | ||
</pre> | </pre> | ||
Note that ".png" and ".PNG" are different and may cause your image to not show up. | |||
==Image Size== | ==Image Size== | ||
Be wary of images that are "tall" as they might make things look strange if chosen to be displayed. You can fix this easily by adding "x250px" to force an image to be of a certain height. (In general, x250px-x300px is a nice sweetspot.) | Be wary of images that are "tall" as they might make things look strange if chosen to be displayed. You can fix this easily by adding "x250px" to force an image to be of a certain height. (In general, x250px-x300px is a nice sweetspot.) | ||
<noinclude/> | <noinclude/> |
Revision as of 03:15, 27 April 2020
Notes
This template shows a random image based on a selection.
Adding an image is simple. First, you may want to check the list of files already uploaded if you want to add an image to help prevent dupes. If it hasn't been uploaded yet then feel free to upload it. Once you've got the image, simply add a new set of option tags and the image, plus a short caption describing it. In other words, it should appear as:
[[File:filename.png|center|x250px]] caption here
Note that ".png" and ".PNG" are different and may cause your image to not show up.
Image Size
Be wary of images that are "tall" as they might make things look strange if chosen to be displayed. You can fix this easily by adding "x250px" to force an image to be of a certain height. (In general, x250px-x300px is a nice sweetspot.)