Difference between revisions of "Widget:ImageCarousel"

From Hackerspace ACKspace
Jump to: navigation, search
m (experimenting with filepath)
m (variable error: swap, added extra test)
Line 40: Line 40:
 
     "use strict";
 
     "use strict";
 
/*
 
/*
<!--{foreach from=$img key=link item=desc}-->
+
<!--{foreach from=$img key=desk item=link}-->
 
     <!--{$link}-->
 
     <!--{$link}-->
 
     {{filepath:<!--{$link}-->}}
 
     {{filepath:<!--{$link}-->}}
 +
    <!--{{filepath:{$link}}}-->
  
 
     <!--{$desc|escape:'html'}-->
 
     <!--{$desc|escape:'html'}-->

Revision as of 14: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.