Template:Image: Difference between revisions

Template page
m (Removed unnecessary whitespace)
m (Remove whitespace)
 
(2 intermediate revisions by one other user not shown)
Line 16: Line 16:
where
where
* ''Filename'' - the name of the image file (with extension) uploaded to the wiki (e.g. "myfile.png").
* ''Filename'' - the name of the image file (with extension) uploaded to the wiki (e.g. "myfile.png").
* ''Caption'' - a brief description of the image which will show up below the thumbnail. Caption is mandatory for every image.  
* ''Caption'' - a brief description of the image which will show up below the thumbnail. Caption is mandatory for every image.


When uploading multiple images, the template will automatically adopt a gallery strip format with a consistent height amongst all images. If the width exceeds the screen size the gallery will automatically break to 2 lines. Also, do note that captions entered will not automatically truncated. Hence, do not post excessively long captions for the images.
When uploading multiple images, the template will automatically adopt a gallery strip format with a consistent height amongst all images. If the width exceeds the screen size the gallery will automatically break to 2 lines. Also, do note that captions entered will not automatically truncated. Hence, do not post excessively long captions for the images.


Since this template will primarily be used for screenshots of issues, only a maximum of 10 images can be displayed using a single reference of this template. Any number of images beyond 10 will simply be ignored.  
Since this template will primarily be used for screenshots of issues, only a maximum of 10 images can be displayed using a single reference of this template. Any number of images beyond 10 will simply be ignored.


== Example ==
== Example ==
'''Standard''' - Only one image
'''Standard''' - Only one image
<pre>{{image|findfile.ext|caption}}</pre>
<pre>{{image|Praise RPCS3.png|You know what to do}}</pre>
{{image|findfile.ext|caption}}
{{image|Praise RPCS3.png|You know what to do}}


'''Multiple images''' - The images will display as a gallery strip with a common border
'''Multiple images''' - The images will display as a gallery strip with a common border
<pre>{{image|findfile.ext|caption|findfile.ext|caption|findfile.ext|caption}}</pre>
<pre>{{image|Praise RPCS3.png|You know what to do|Notyet.jpg|State of images on this wiki|Rpcs3 mug.jpg|One can dream}}</pre>
{{image|findfile.ext|caption|findfile.ext|caption|findfile.ext|caption}}
{{image|Praise RPCS3.png|You know what to do|Notyet.jpg|State of images on this wiki|Rpcs3 mug.jpg|One can dream}}
[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Latest revision as of 23:02, 29 January 2023

This template provides a simplified way to use thumbnails of images uploaded to this wiki. It automatically uses the standard thumbnail size and position used on this wiki. The template can also be used for show multiple images in a gallery.

Syntax

{{ image | Filename | Caption | Filename | Caption | Filename | Caption }}
where

  • Filename - the name of the image file (with extension) uploaded to the wiki (e.g. "myfile.png").
  • Caption - a brief description of the image which will show up below the thumbnail. Caption is mandatory for every image.

When uploading multiple images, the template will automatically adopt a gallery strip format with a consistent height amongst all images. If the width exceeds the screen size the gallery will automatically break to 2 lines. Also, do note that captions entered will not automatically truncated. Hence, do not post excessively long captions for the images.

Since this template will primarily be used for screenshots of issues, only a maximum of 10 images can be displayed using a single reference of this template. Any number of images beyond 10 will simply be ignored.

Example

Standard - Only one image

{{image|Praise RPCS3.png|You know what to do}}


Multiple images - The images will display as a gallery strip with a common border

{{image|Praise RPCS3.png|You know what to do|Notyet.jpg|State of images on this wiki|Rpcs3 mug.jpg|One can dream}}