Difference between revisions of "Widget:SpaceAPI"

From Hackerspace ACKspace
Jump to: navigation, search
(und now live ja?)
(it's a trap!)
Line 144: Line 144:
 
     }
 
     }
  
     var state = new SpaceState( <!--{$width|escape:html|default:auto}-->, <!--{$height|escape:html|default:auto}-->, "<!--{$url|validate:url}-->", <!--{$interval|validate:int|default:0}--> );
+
     var state = new SpaceState( "<!--{$width|escape:html|default:auto}-->", "<!--{$height|escape:html|default:auto}-->", "<!--{$url|validate:url}-->", <!--{$interval|validate:int|default:0}--> );
 
     state.start();
 
     state.start();
  

Revision as of 11:50, 8 August 2015

This widget allows you to display the Space API data (provided as JSON)

Created by Xopr

Using this widget

To insert this widget, use the following code:

{{#widget:SpaceAPI
|url=https://ackspace.nl/spaceAPI
|width=260
|height=20
|interval=20
}}

This will give the following result:

Note that url is mandatory, the rest is optional (leave out interval to make the data static)


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:SpaceAPI article.