Widget:Poll

Infrastructure for wiki-based poll. Only votes from logged in users are collected.

Usage
The #widget invocation must be immediately followed by a ... .

The div must contain two nested lists. The outer list can be either ordered (#) or unordered (*). Within each element of that outer list must be another list. Each of those inner lists can be either:
 * unordered - in which case each of its elements will be rendered as a radio button, allowing the user to choose only one of them
 * ordered - in which case each of its elements will be rendered as a checkbox, allowing selection of multiple choices

Example:


 * 1) This question will only allow a single response to be chosen
 * 2) * option one
 * 3) * option two
 * 4) This question will allow multiple responses
 * 5) option one
 * 6) option two

options

 * options
 * optional comma separated list of options defining the poll that immediately follows the widget:


 * bars
 * optional comma separated list of colors that will be used cyclically for barchart colors, over-riding built-in colors (automatically sets bars option)


 * disabled
 * optional text string explaining that votes are no longer solicited

 /* <![CDATA[ */ $(function { if (typeof WEPoll == 'undefined') { // setup the styles for WEPolls $('head').append([' ', '.WEPoll>ol { margin-left: 200px; position: relative; }', '.WEPoll>ol>li>ol { list-style-type: none; list-style-image: none; list-style-position: inside; margin-left: 20px;}', '.WEPoll>ol>li>ul { list-style-type: none; list-style-image: none; list-style-position: inside;}', '.WEPollc,.WEPollqc { position: absolute; left: -200px; width: 160px; display: inline; }', '.WEPollbarc { display: inline-block; width:110px; }', '.WEPollbar { display: inline-block; position: relative; float: right; }', '.WEPollcount { width: 50px; display: inline; position: relative; float: right; text-align: right;}', '.WEPollvoters { width: 80px; font-size: smaller; color: gray; display: inline; position: relative; float: right; text-align: right;}', '.WEPolldisabled { font-size: smaller; color: gray; }', '.WEPollbutton { margin-left: 200px; }', ' '].join('')); $('head').append('');} WEPoll("WEpomk","", "", "");}); /* ]]> */