Gamepedia Help Wiki
Azxiana (talk | contribs)
No edit summary
Azxiana (talk | contribs)
No edit summary
Line 9: Line 9:
 
==Usage==
 
==Usage==
 
{| class="wikitable"
 
{| class="wikitable"
|+ Parameters in the slideboxlightshow tag
+
|+ Attributes for the slideboxlightshow tag
 
|-
 
|-
 
! Attribute
 
! Attribute

Revision as of 19:55, 12 December 2013

The SlideBoxLightShow extension organizes a list of images into a slide show that can be popped up into a light box style display.

Download

Template:ExtensionGitDownload

Installation

Template:ExtensionInstall

Usage

Attributes for the slideboxlightshow tag
Attribute Description
sequence="[forward|reverse|random]" Default: forward
 The sequence in which images are rotated.
transition="[fade|left|right|up|down]" Default: fade
 Note: Currently only fade is supported.  Other transitions are buggy or not fully implemented.
 Transition type used to change images.
transitionSpeed="[milliseconds]" Default: 500
 Time in milliseconds that transitions last.  Tip: Setting the transition speed to 0 with a fade transition will result in an instant cut transition.
halign="[left|center|right]" Default: center
 Position to horizontally align images.
valign="[top|middle|bottom]" Default: middle
 Position to vertically align images.
interval="[milliseconds]" Default: 5000
 Time in milliseconds to display each image.
width="[pixels]" Default: 500
 Sets the width of the box and the maximum width behavior of images in pixels.
height="[pixels]" Default: 500
 Sets the height of the box and the maximum height behavior of images in pixels.

Enter one properly namespaced file name per line. Any files that do not exist will be silently dropped.

File:Image1.jpg
File:Image2.jpg
File:Image3.jpg

Example

This example displays a feed from Gampedia's home page with a maximum of six items displayed.

<slideboxlightshow sequence="[forward|reverse|random]" transition="[fade|left|right|up|down]" transitionSpeed="[milliseconds]" halign="[left|center|right]" valign="[top|middle|bottom]" interval="[milliseconds]" min-width="[pixels]" min-height="[pixels]" max-width="[pixels]" max-height="[pixels]">
File:Image1.jpg
File:Image2.jpg
File:Image3.jpg
</slideboxlightshow>

Configuration Settings

Variable Default Value Description
$sbDefaultArguments Takes an array of defaults. The keys are the same as attributes on the function tag, but all in lowercase.