Template:PollArchive/doc

From RuneRealm Wiki
Jump to navigation Jump to search
This is a documentation subpage for Template:PollArchive.
It contains usage information, categories, and other content that is not part of the original template page.
Template:PollArchive invokes function main in Module:PollArchive using Lua.

This template provides formatting for poll results for use in transciption of the RuneScape website poll archive. This explicitly includes "Skip" votes in overall vote percentage calculation, as is reflected in the archive.

Usage

This template can be used by entering the following code:

{{PollArchive
|Question   <!-- The question text on the poll -->
|AnswerX    <!-- The answer text on the poll -->
|VotesX     <!-- The number of votes for an answer -->
|Note       <!-- Additional notes for the question -->
}}

For example:

{{PollArchive|Question=Do you want to understand this template?|Answer1=Yes|Votes1=8000|Answer2=No|Votes2=2000}}
Do you want to understand this template?
Yes
(8,000 votes 80%)
No
(2,000 votes 20%)

For more answers:

{{PollArchive|Question=Do you want to add more answers?|Answer1=Yes|Votes1=8000|Answer2=No|Votes2=1500|Answer3=Skip question|Votes3=500}}
Do you want to add more answers?
Yes
(8,000 votes 80%)
No
(1,500 votes 15%)
Skip question
(500 votes 5%)

This template currently supports up to 20 answers per question.

For a note:

{{PollArchive|Question=Do you want to add a note?|Answer1=Yes|Votes1=8000|Answer2=From time to time|Votes2=8000|Answer3=Occasionally|Votes3=8000|Note=This is a multiple-choice question.}}
Do you want to add a note?
Yes
(8,000 votes 33.3%)
From time to time
(8,000 votes 33.3%)
Occasionally
(8,000 votes 33.3%)
Note: This is a multiple-choice question.

See also