Jump to content

Recommended Posts

Posted

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.

 

 

  • 2 weeks later...
Posted

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.

Posted

Of course, and actually, this template uses the HighslideGallery plugin as its backend, just makes it so I don't have to do a whole bunch of coding just to get a simple gallery up quickly :;):

Posted

I'm stealing this of the ENBSeries INI Guides when I finally get my mojo back and feel like working on them again. The main reason I stopped was because of the new release.

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.