Expand all

LightboxImage

Represents an image on the page.

Constructor

new LightboxImage(fileLink, fileTitle, index, position, thumb, [caption]) #

Parameters:

Name Type Attributes Description
fileLink string

Link to the file - generally a thumb URL

fileTitle mw.Title

Represents the File: page

index number

Which number file this is

position number

The relative position of this image to others with same file

thumb HTMLImageElement

The thumbnail that represents this image on the page

caption string optional

The caption, if any.

Source:

Properties

alt #

Properties:

Name Type Description
The string

alt text of the image

Source:

caption #

Properties:

Name Type Description
caption string

The caption of the image, if any

Source:

filePageTitle #

Properties:

Name Type Description
filePageTitle mw.Title

Title of the image's file page

Source:

index #

Properties:

Name Type Description
index number

What number this image is in the array of indexed images

Source:

originalHeight #

Properties:

Name Type Description
originalHeight number

Height of the full-sized file (read from HTML data attribute, might be missing)

Source:

originalWidth #

Properties:

Name Type Description
originalWidth number

of the full-sized file (read from HTML data attribute, might be missing)

Source:

position #

Properties:

Name Type Description
position number

The relative position of this image to others with same file

Source:

src #

Properties:

Name Type Description
Link string

to the file - generally a thumb URL

Source:

thumbnail #

Properties:

Name Type Description
thumbnail HTMLImageElement

The element that holds the already-loaded thumbnail of the image

Source: