= Add Polls to Wiki Pages = == Description == The PollMacro lets poll questions be added to Trac pages. The usage is very basic, arguments are separated by semi-colons, with the first argument being the question and the remainding arguments the choices: {{{ [[Poll(What do you think of the Poll macro?; Cool; Crap)]] }}} The macro stores the results of the poll, in a pickled form, in {{{/var/state/trac/polls}}} (this is set in the {{{polldir}}} variable at the top of the macro source). The 32-bit CRC of the poll name is used as the filename, and is stored under a directory with a name that is the 32-bit CRC of the project name. Each voters name is displayed to the right of their choice. == Bugs/Feature Requests == Existing bugs and feature requests for PollMacro are [report:9?COMPONENT=PollMacro here]. If you have any issues, create a [http://trac-hacks.swapoff.org/newticket?component=PollMacro&owner=athomas new ticket]. == Download == [source:pollmacro/0.8 PollMacro for 0.8]. == Source == You can check out the source for PollMacro from Subversion at http://trac-hacks.swapoff.org/svn/pollmacro. == Example == [[Poll(What do you think of the Poll macro?; Cool; Crap)]] == Author/Contributors == '''Author:''' [wiki:athomas athomas] [[BR]] '''Contributors:''' [[TagIt(macro,athomas,0.8)]]