User Tools

Site Tools


pollhowto

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

pollhowto [2013/01/10 03:56] (current)
einarpetersen created
Line 1: Line 1:
 +<​code>​
 +<poll [id]>
 +  [question]
 +
 +  * [option]
 +  * [option]
 +  * ...
 +</​poll>​
 +
 +
 +<​multipoll [hideresults] [hideifvoted] [showresultsto]=user,​@grp,​... | [id]>
 +  [question 1]
 +  * [option]
 +  * [option]
 +  * ...
 +  [question 2]
 +  * [option]
 +  * [option]
 +  [multivaluated question]
 +  + [option]
 +  + [option]
 +  + [option]
 +  + ...
 +</​multipoll>​
 +
 +[hideresults] hides the results of the poll to users who don't have write access on the page, displays a “You already voted” message instead optional
 +[hideifvoted] completly hides the poll once the user voted, only users with write access on the page can see the results optional
 +[showresultsto] comma separated list of users or @groups which can see the results without the need to vote or to have editing rights optional
 +[id] the ID of the poll; must be unique1); appears as title required
 +[question] the question you'd like to ask optional
 +[option] a possible answer to the immediately above question required
 +
 +The poll title is converted to a md5sum. This is used as the filename in data/meta: md5sum.multipoll - so all polls in the whole wiki must be unique. As a result you can move your poll around and the poll data is accessible. If you remove the poll you must remove the poll data with “rm”. ​
 +
 +</​code>​
  
pollhowto.txt · Last modified: 2013/01/10 03:56 by einarpetersen