The following are a series of test cases for this template, both for bug-checking and to demonstrate intended behavior.

Insufficient votes

[edit]

Poll without the required number of responses n < 100, forced via min_votes=100:

{{Wikipedia:Wikipedia Signpost/Templates/Voter|minimum=100 |option1=Yes |option2=No |question=Some question? |votepage=Wikipedia:Wikipedia Signpost/Templates/Voter/Issues/Test Poll/Votes}}
Side by side comparison
{{Wikipedia:Wikipedia Signpost/Templates/Voter}}{{Wikipedia:Wikipedia Signpost/Templates/Voter/sandbox}}
Signpost poll
Some question?
Need 59 more votes to display results—if you haven't already, consider voting!
Signpost poll
Some question?
Need 59 more votes to display results—if you haven't already, consider voting!

Sufficient votes

[edit]
{{Wikipedia:Wikipedia Signpost/Templates/Voter|min_votes=0 |option1=Yes |option2=No |question=Some question? |votepage=Wikipedia:Wikipedia Signpost/Templates/Voter/Issues/Test Poll/Votes}}
Side by side comparison
{{Wikipedia:Wikipedia Signpost/Templates/Voter}}{{Wikipedia:Wikipedia Signpost/Templates/Voter/sandbox}}
Signpost poll
Some question?
 
 
 
  Yes (54%; 22 votes)
  No (46%; 19 votes)
Signpost poll
Some question?
 
 
 
  Yes (54%; 22 votes)
  No (46%; 19 votes)

Poll expired

[edit]
{{Wikipedia:Wikipedia Signpost/Templates/Voter|expiry=1 January 2000 |option1=Yes |option2=No |question=Some question? |votepage=Wikipedia:Wikipedia Signpost/Templates/Voter/Issues/Test Poll/Votes}}
Side by side comparison
{{Wikipedia:Wikipedia Signpost/Templates/Voter}}{{Wikipedia:Wikipedia Signpost/Templates/Voter/sandbox}}
Signpost poll
Some question?
 
 
 
  Yes (54%; 22 votes)
  No (46%; 19 votes)
Sorry; the poll is now closed.
Signpost poll
Some question?
 
 
 
  Yes (54%; 22 votes)
  No (46%; 19 votes)
Sorry; the poll is now closed.

Poll with three options

[edit]
{{Wikipedia:Wikipedia Signpost/Templates/Voter|Option3=Maybe |option1=Yes |option2=No |question=Some question? |votepage=Wikipedia:Wikipedia Signpost/Templates/Voter/Issues/Test Poll/Votes}}
Side by side comparison
{{Wikipedia:Wikipedia Signpost/Templates/Voter}}{{Wikipedia:Wikipedia Signpost/Templates/Voter/sandbox}}
Signpost poll
Some question?
 
 
 
  Yes (54%; 22 votes)
  No (46%; 19 votes)
Signpost poll
Some question?
 
 
 
  Yes (54%; 22 votes)
  No (46%; 19 votes)

Color parameters

[edit]
{{Wikipedia:Wikipedia Signpost/Templates/Voter|option1=Yes |option1color=#ccc |option2=No |option2color=#666 |option3=Maybe |option3color=#000 |question=Some question? |votepage=Wikipedia:Wikipedia Signpost/Templates/Voter/Issues/Test Poll/Votes}}
Side by side comparison
{{Wikipedia:Wikipedia Signpost/Templates/Voter}}{{Wikipedia:Wikipedia Signpost/Templates/Voter/sandbox}}
Signpost poll
Some question?
 
 
 
 
  Yes (47%; 22 votes)
  No (40%; 19 votes)
  Maybe (13%; 6 votes)
Signpost poll
Some question?
 
 
 
 
  Yes (47%; 22 votes)
  No (40%; 19 votes)
  Maybe (13%; 6 votes)

Custom images

[edit]

Use of different overlay and image parameters (note: not an image adapted to the template).

{{Wikipedia:Wikipedia Signpost/Templates/Voter|icon=PNG transparency demonstration 1.png |option1=Yes |option2=No |overlay=PNG transparency demonstration 1.png |question=Some question? |votepage=Wikipedia:Wikipedia Signpost/Templates/Voter/Issues/Test Poll/Votes}}
Side by side comparison
{{Wikipedia:Wikipedia Signpost/Templates/Voter}}{{Wikipedia:Wikipedia Signpost/Templates/Voter/sandbox}}
Signpost poll
Some question?
 
 
 
  Yes (54%; 22 votes)
  No (46%; 19 votes)
Signpost poll
Some question?
 
 
 
  Yes (54%; 22 votes)
  No (46%; 19 votes)

Break parameter

[edit]
{{Wikipedia:Wikipedia Signpost/Templates/Voter|break=true |option1=Yes; otherwise vandals win. |option2=No; it's morally indefensible. |option3=Don't know; I'm undecided. |question=Some question? |votepage=Wikipedia:Wikipedia Signpost/Templates/Voter/Issues/Test Poll/Votes}}
Side by side comparison
{{Wikipedia:Wikipedia Signpost/Templates/Voter}}{{Wikipedia:Wikipedia Signpost/Templates/Voter/sandbox}}
Signpost poll
Some question?
 
 
 
 
  Yes; otherwise vandals win. (47%; 22 votes)
  No; it's morally indefensible. (40%; 19 votes)
  Don't know; I'm undecided. (13%; 6 votes)
Signpost poll
Some question?
 
 
 
 
  Yes; otherwise vandals win. (47%; 22 votes)
  No; it's morally indefensible. (40%; 19 votes)
  Don't know; I'm undecided. (13%; 6 votes)



       

The Signpost · written by many · served by Sinepost V0.9 · 🄯 CC-BY-SA 4.0