Currently it has to be in comments. Since comments and articles have entirely different markup and formatting systems (comments use Markdown, articles use constrained HTML), supporting them in both places at once is nontrivial.

But the Markdown is converted to HTML in the end... As a workaround: Could I make a poll as a comment, copy the HTML of a non-voted-upon version of the comment, and insert it into the raw HTML of an article? And then delete the original comment?

Less Wrong Polls in Comments

by jimrandomh 1 min read19th Sep 2012310 comments

79


You can now write Less Wrong comments that contain polls! John Simon picked up and finished some code I had written back in 2010 but never finished, and our admins Wesley Moore and Matt Fallshaw have deployed it. You can use it right now, so let's give it some testing here in this thread.

The polls work through the existing Markdown comment formatting, similar to the syntax used for links. Full documentation is in the wiki; the short version is that you can write comments like this:

What is your favorite color? [poll]{Red}{Green}{Blue}{Other}

How long has it been your favorite color, in years? [poll:number]

Red is a nice color [poll:Agree....Disagree]

Will your favorite color change? [poll:probability]

To see the results of the poll, you have to vote (you can leave questions blank if you want). The results include a link to the raw poll data, including the usernames of people who submitted votes with the "Vote anonymously" box unchecked. After you submit the comment, if you go back and edit your comment all those poll tags will have turned into [pollid:123]. You can edit the rest of the comment without resetting the poll, but you can't change the options.

It works right now, but it's also new and could be buggy. Let's give it some testing; what have you always wanted to know about Less Wrongers?