Difference between revisions of "Widget:ImageCarousel"
m (final test of filepath url) |
(whopping custom image carousel!) |
||
Line 12: | Line 12: | ||
This will display: | This will display: | ||
{{#widget:{{PAGENAME}} | {{#widget:{{PAGENAME}} | ||
− | |img.DSP experiments | + | |img.DSP experiments={{filepath:blinking_led.jpg}} |
− | + | |img.3D printing={{filepath:3D_printer_Picture.jpg}} | |
− | |||
− | |img. | ||
}} | }} | ||
Line 41: | Line 39: | ||
{ | { | ||
"use strict"; | "use strict"; | ||
− | + | ||
+ | var images = [ | ||
<!--{foreach from=$img key=desc item=link}--> | <!--{foreach from=$img key=desc item=link}--> | ||
− | <!--{$link | + | [ "<!--{$link|validate:url}-->", "<!--{$desc|escape:'html'}-->" ], |
− | |||
− | |||
− | |||
<!--{/foreach}--> | <!--{/foreach}--> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
]; | ]; | ||
− | |||
var container = document.getElementsByClassName("slideshow-container")[0]; | var container = document.getElementsByClassName("slideshow-container")[0]; |
Latest revision as of 16:43, 21 March 2019
This widget allows you to display an image carousel on your wiki page.
Created by xopr, inspired by W3schools example
Using this widget
To insert this widget, use the following code:
{{#widget:ImageCarousel }}
This will display:
Note:
- this is a work in progress
Copy to your site
To use this widget on your site, just install MediaWiki Widgets extension and copy full source code of this page to your wiki as Widget:ImageCarousel article.