Difference between revisions of "Widget:ImageCarousel"
m (experimenting with filepath) |
m (variable error: swap, added extra test) |
||
Line 40: | Line 40: | ||
"use strict"; | "use strict"; | ||
/* | /* | ||
− | <!--{foreach from=$img key= | + | <!--{foreach from=$img key=desk item=link}--> |
<!--{$link}--> | <!--{$link}--> | ||
{{filepath:<!--{$link}-->}} | {{filepath:<!--{$link}-->}} | ||
+ | <!--{{filepath:{$link}}}--> | ||
<!--{$desc|escape:'html'}--> | <!--{$desc|escape:'html'}--> |
Revision as of 15:54, 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.