Template:GallerySimple

From STEP Modding Wiki

Purpose & Usage

This is a template to add images to the INI Settings guides more simply than by using the standard Gallery template. Performs a clear to force content to appear directly below floating content as well as the caption text aligned underneath the image.

  • parameter img is the link to the image. It may be hosted locally (e.g. Image:MyImage.jpg) or externally (e.g. https://copy.com/1tY1UA6B0lhN83Ch).
  • parameter caption is the caption.
  • parameter id is the id for the gallery on the page. Images with the same id get placed in the same gallery. Change the id to separate galleries.
  • parameter width is the width of the image thumbnails.

Since it floats left, it is best to call the clear template afterwards.

Differences from HigslideGallery plugin:

  • HigslideGallery requires a different format for external images
  • HigslideGallery doesn't glow
  • HigslideGallery doesn't add the caption text underneath the image

Examples

Code:

{{GallerySimple|img=Image:TESV-2015-05-28-15-24-44-93.jpg}}
{{clear}}

Result:

Code:

{{GallerySimple|id=bShadowsOnGrass|width=250|img=Image:TESV-2015-05-28-15-24-44-93.jpg|caption=bShadowsOnGrass=0}}
{{GallerySimple|id=bShadowsOnGrass|width=250|img=Image:TESV-2015-05-28-15-21-58-77.jpg|caption=bShadowsOnGrass=1<br />(Default)}}
{{clear}}

Result:

bShadowsOnGrass=0

bShadowsOnGrass=0
bShadowsOnGrass=1(Default)

bShadowsOnGrass=1
(Default)

See Also