This page explains how to create a widget
A widget is a file compliant to the xml standard.
<?xml version=“1.0”?> <widget> : Main widget tag
<category>Name</category> : Category name <icon>http://mywidget.com/myicon.gif</icon> : Widget icon
<author>uStart</author> : Author's name <website>www.ustart.org</website> : Author's website
<option name="hasoptions">1</option> : Author's website <option name="help">http://mywidget/help.html</option> : Help file <option name="width">large</option> : Default width : large / small
<locale lang="en"> : localized section (en/fr/es)
<title>My Widget</title> : widget's title
<description>My widget description</description> : widget's description
<thumbnail>http://mywidget.com/thumb.gif</thumbnail> : widget's thumbnail url
<msg name="MSG_HELLO">Hello</msg> : translation item accessible by _L('') macro in script
<msg name="MSG_WORLD">World</msg> : translation item accessible by _L('') macro in script
</locale>
<style><![[CDATA : CSS stylesheet for the widget
.my_rule{
}
]]></style>
<script><![CDATA[ : Javascript code source of the widget
widget.setContent(_L("MSG_HELLO"));
]]></style>
</widget>