Template:PollArchive

From RuneRealm Wiki

This is the current revision of this page, as edited by Alex (talk | contribs) at 00:35, 16 October 2024 (Created page with "<includeonly>{{#invoke:PollArchive|main}}</includeonly><noinclude>{{/doc}}</noinclude>"). The present address (URL) is a permanent link to this version.

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Template documentation
This documentation is transcluded from Template:PollArchive/doc. [edit] [history] [purge]
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