The following are a series of test cases for this template, both for bug-checking and to demonstrate intended behavior.
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}}
{{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}}
{{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}}
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}}
{{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}}
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}}
{{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}}