Widget:Toggle size

From neicext
Jump to navigation Jump to search

Make a toggle switch for huge images that lets the user expand/contract them.

Usage

{{#widget:Toggle size
 | link = Url to link to.
 | image = Image url.
 | width = Width when not expanded (and only size for no-js people).
 | toggledwidth = Width when expanded.
 }}

Example

{{#widget:Toggle size
 | link = /wiki/File:Project_process.svg
 | image = /w/ext/img_auth.php/f/fc/Project_process.svg
 | width = 100%
 | toggledwidth = 1880
 }}