Wikia

Community Central

WatchlistRandom pageRecent changes

Help:Polls

Talk5
63,608pages on
this wiki
This extension is enabled by default on Wikia.

Contents

You can add simple polls to your wiki using a simple syntax.

Step-by-StepEdit

  • In Edit mode for an article page, change the tab at the top of the editor from "Visual" to "Source".
  • Find the place on the page where you want to add a Poll.
  • Enter the following code, and replace it with the content of your poll:
<poll> 
Title of poll
Choice 1
Choice 2
etc.
</poll>

Example:


<poll> 
What is your favourite color?
Red
Green
Blue
Other
</poll>

Result:

What is your favourite color?
 
172
 
184
 
337
 
208
 

The poll was created at 22:09 on July 10, 2007, and so far 901 people voted.
  • And then Publish! You're done! Now anyone can vote in your poll.

How does it work?Edit

Votes are registered under either your username or, if you're not logged in, your IP address. This means the poll does not take a reliable count of unique individuals, and it should not be used for important purposes.

Users can change their vote at any time.

The poll will display the number and percentage of votes for each choice, the total number of votes given so far, and the date and time when the poll was created.

Can the votes be reset?Edit

It is not possible to end, i.e. to 'freeze', a poll. All polls last indefinitely.

To reset all votes, change either the title or one of the poll's choices (which will, in effect, create a new poll).

Because it's so easy to change and reset polls, past poll results can easily be lost. Reverting to the version prior to the reset may allow you to reclaim the information, but you should not rely on this functionality. If historical polls are important to you, it is safest to record the results in some other form of wikitext, either one time or at intervals.

Customization optionsEdit

It is possible to customize the design of the poll extension via CSS.

Changing the width of the pollEdit

Polls are 40em wide by default. Wiki admins can make the poll widths changeable by adding the following to MediaWiki:common.css on your wiki:

div.ajax-poll { width:auto !important; }

This will make all polls on your wiki be as wide as the "box" they're in, i.e. they'll usually expand to be as wide as the article body. You can now set its width by wrapping it in a div with a set width, or a table cell, or in any other layout box. Example:

<div style="width:250px;">
<poll>
How wide is this poll?
Wide
Not so wide
</poll>
</div>

External linksEdit

Extension:AjaxPoll at wikia open source

Latest Photos

Add a Photo
7,508photos on this wiki
See more >

Recent Wiki Activity

See more >

Around Wikia's network

Random Wiki