Jump to content

GallerySimple


Recommended Posts

Discussion topic:
Template:GallerySimple


Purpose & Usage
Simplifies formatting of image examples under INI Settings guides. Performs a clear to force content to appear directly below floating content as well as the caption text aligned underneath the image. This is a template to add images to a INI Settings gallery more simply than by using the standard Gallery template.

  • 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

Example
 
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 (default)}}
{{clear}}

Result:

250px-TESV-2015-05-28-15-24-44-93.jpg  250px-TESV-2015-05-28-15-21-58-77.jpg

bShadowsOnGrass=0         bShadowsOnGrass=1 (default)


 


I decided I needed a better way to create a gallery for the INI guides and such.

 

 

Link to comment
Share on other sites

  • 2 weeks later...

Great work DoubleYou.

 

Of general note, the HighslideGallery plugin isn't intended to do the things that are being compared against here. It's function is purely for the displaying of images in a gallery when they are clicked. The look of the thumbnails in-page is up to the coder, either individually, or through templates such as this one.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Guidelines, Privacy Policy, and Terms of Use.