Difference between revisions of "Widget:SpaceAPI"
(fixed timer id, added padding parameter) |
(fixed documentation) |
||
Line 8: | Line 8: | ||
<nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki> | <nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki> | ||
− | |url=https://ackspace.nl/spaceAPI | + | |url=https://ackspace.nl/spaceAPI/ |
− | |width= | + | |width=260px |
− | |height= | + | |height=20px |
+ | |padding=8px | ||
|interval=20 | |interval=20 | ||
}}</nowiki> | }}</nowiki> | ||
Line 16: | Line 17: | ||
This will give the following result:<br/> | This will give the following result:<br/> | ||
{{#widget:{{PAGENAME}} | {{#widget:{{PAGENAME}} | ||
− | |url=https://ackspace.nl/spaceAPI | + | |url=https://ackspace.nl/spaceAPI/ |
− | |width= | + | |width=260px |
− | |height=20 | + | |height=20px |
+ | |padding=8px | ||
+ | |interval=20 | ||
}}<br/> | }}<br/> | ||
− | Note that '''url''' is mandatory, the rest is optional (leave out interval to make the data static) | + | Note that '''url''' is mandatory, the rest is optional (leave out interval to make the data static). Also, you must provide a unit for the sizes (i.e. px, %, etc.) |
− | |||
== Copy to your site == | == Copy to your site == |
Revision as of 11:04, 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=260px |height=20px |padding=8px |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). Also, you must provide a unit for the sizes (i.e. px, %, etc.)
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.