DoubleYou Posted May 29, 2015 Posted May 29, 2015 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: bShadowsOnGrass=0 bShadowsOnGrass=1 (default) I decided I needed a better way to create a gallery for the INI guides and such.
z929669 Posted May 29, 2015 Posted May 29, 2015 Thanks for the template ... Doesn't the HighslideGallery plugin already handle this?
DoubleYou Posted May 29, 2015 Author Posted May 29, 2015 Thanks for the template ... Doesn't the HighslideGallery plugin already handle this?Yes, but...-it requires a different format for external images-it doesn't glow-it doesn't add the caption text underneath it
z929669 Posted May 29, 2015 Posted May 29, 2015 Got it, thanks. Just wanted to get diffs on the record for posterity
stoppingby4now Posted June 6, 2015 Posted June 6, 2015 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.
DoubleYou Posted June 6, 2015 Author Posted June 6, 2015 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
TechAngel85 Posted June 6, 2015 Posted June 6, 2015 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now