Difference between revisions of "Template:Past Poll"
m (adding two more options) |
m |
||
(2 intermediate revisions by the same user not shown) | |||
Line 150: | Line 150: | ||
|denotes=the percentage of voters that chose the eighth option in the poll | |denotes=the percentage of voters that chose the eighth option in the poll | ||
|generates=the percentage bar that corresponds to the eighth option in the poll | |generates=the percentage bar that corresponds to the eighth option in the poll | ||
+ | |validvalues=Any positive number. | ||
+ | }} | ||
+ | {{Template Parameter | ||
+ | |name=option9 | ||
+ | |takes=a string or strings | ||
+ | |denotes=the ninth option that voters could choose in the poll | ||
+ | |generates=the ninth option in the poll | ||
+ | |validvalues=Any string or strings. | ||
+ | }} | ||
+ | {{Template Parameter | ||
+ | |name=result9 | ||
+ | |takes=a number | ||
+ | |denotes=the percentage of voters that chose the ninth option in the poll | ||
+ | |generates=the percentage bar that corresponds to the ninth option in the poll | ||
+ | |validvalues=Any positive number. | ||
+ | }} | ||
+ | {{Template Parameter | ||
+ | |name=option10 | ||
+ | |takes=a string or strings | ||
+ | |denotes=the tenth option that voters could choose in the poll | ||
+ | |generates=the tenth option in the poll | ||
+ | |validvalues=Any string or strings. | ||
+ | }} | ||
+ | {{Template Parameter | ||
+ | |name=result10 | ||
+ | |takes=a number | ||
+ | |denotes=the percentage of voters that chose the tenth option in the poll | ||
+ | |generates=the percentage bar that corresponds to the tenth option in the poll | ||
|validvalues=Any positive number. | |validvalues=Any positive number. | ||
}} | }} | ||
Line 266: | Line 294: | ||
{{!}}} | {{!}}} | ||
{{#if: {{{option9|}}} | {{#if: {{{option9|}}} | ||
− | + | | {{!}}- | |
− | {{!}} {{{ | + | {{!}} {{{option9}}} |
{{!}} | {{!}} | ||
{{{!}} style="border-collapse:collapse; margin-left:auto; margin-right:0px; width:auto;" | {{{!}} style="border-collapse:collapse; margin-left:auto; margin-right:0px; width:auto;" | ||
Line 279: | Line 307: | ||
{{!}}} | {{!}}} | ||
{{#if: {{{option10|}}} | {{#if: {{{option10|}}} | ||
− | + | | {{!}}- | |
− | {{!}} {{{ | + | {{!}} {{{option10}}} |
{{!}} | {{!}} | ||
{{{!}} style="border-collapse:collapse; margin-left:auto; margin-right:0px; width:auto;" | {{{!}} style="border-collapse:collapse; margin-left:auto; margin-right:0px; width:auto;" | ||
Line 291: | Line 319: | ||
}} | }} | ||
{{!}}} | {{!}}} | ||
+ | }} | ||
+ | }} | ||
}} | }} | ||
}} | }} |
Latest revision as of 13:29, 12 March 2012
Contents
Template:Past Poll is designed for use on all pages to display a poll that was once featured on the front page of UOGuide and has since been archived.
Template
{{Past Poll |question= |option1= |result1= |option2= |result2= |option3= |result3= |option4= |result4= |option5= |result5= |option6= |result6= |option7= |result7= |option8= |result8= |option9= |result9= |option10= |result10= |totalvotes= }}
Parameters
question
- Usage: Mandatory
- Description: The question parameter takes a string or strings denoting the question that the poll asked voters to choose an answer for. This is used to generate the question in the header of the template.
- Valid Value(s): Any string or strings.
option1
- Usage: Mandatory
- Description: The option1 parameter takes a string or strings denoting the first option that voters could choose in the poll. This is used to generate the first option in the poll.
- Valid Value(s): Any string or strings.
result1
- Usage: Mandatory
- Description: The result1 parameter takes a number denoting the percentage of voters that chose the first option in the poll. This is used to generate the percentage bar that corresponds to the first option in the poll.
- Valid Value(s): Any positive number.
option2
- Usage: Mandatory
- Description: The option2 parameter takes a string or strings denoting the second option that voters could choose in the poll. This is used to generate the second option in the poll.
- Valid Value(s): Any string or strings.
result2
- Usage: Mandatory
- Description: The result2 parameter takes a number denoting the percentage of voters that chose the first option in the poll. This is used to generate the percentage bar that corresponds to the first option in the poll.
- Valid Value(s): Any positive number.
option3
- Usage: Optional
- Description: The option3 parameter takes a string or strings denoting the third option that voters could choose in the poll. This is used to generate the third option in the poll.
- Valid Value(s): Any string or strings.
result3
- Usage: Optional
- Description: The result3 parameter takes a number denoting the percentage of voters that chose the third option in the poll. This is used to generate the percentage bar that corresponds to the third option in the poll.
- Valid Value(s): Any positive number.
option4
- Usage: Optional
- Description: The option4 parameter takes a string or strings denoting the fourth option that voters could choose in the poll. This is used to generate the fourth option in the poll.
- Valid Value(s): Any string or strings.
result4
- Usage: Optional
- Description: The result4 parameter takes a number denoting the percentage of voters that chose the fourth option in the poll. This is used to generate the percentage bar that corresponds to the fourth option in the poll.
- Valid Value(s): Any positive number.
option5
- Usage: Optional
- Description: The option5 parameter takes a string or strings denoting the fifth option that voters could choose in the poll. This is used to generate the fifth option in the poll.
- Valid Value(s): Any string or strings.
result5
- Usage: Optional
- Description: The result5 parameter takes a number denoting the percentage of voters that chose the fifth option in the poll. This is used to generate the percentage bar that corresponds to the fifth option in the poll.
- Valid Value(s): Any positive number.
option6
- Usage: Optional
- Description: The option6 parameter takes a string or strings denoting the sixth option that voters could choose in the poll. This is used to generate the sixth option in the poll.
- Valid Value(s): Any string or strings.
result6
- Usage: Optional
- Description: The result6 parameter takes a number denoting the percentage of voters that chose the sixth option in the poll. This is used to generate the percentage bar that corresponds to the sixth option in the poll.
- Valid Value(s): Any positive number.
option7
- Usage: Optional
- Description: The option7 parameter takes a string or strings denoting the seventh option that voters could choose in the poll. This is used to generate the seventh option in the poll.
- Valid Value(s): Any string or strings.
result7
- Usage: Optional
- Description: The result7 parameter takes a number denoting the percentage of voters that chose the seventh option in the poll. This is used to generate the percentage bar that corresponds to the seventh option in the poll.
- Valid Value(s): Any positive number.
option8
- Usage: Optional
- Description: The option8 parameter takes a string or strings denoting the eighth option that voters could choose in the poll. This is used to generate the eighth option in the poll.
- Valid Value(s): Any string or strings.
result8
- Usage: Optional
- Description: The result8 parameter takes a number denoting the percentage of voters that chose the eighth option in the poll. This is used to generate the percentage bar that corresponds to the eighth option in the poll.
- Valid Value(s): Any positive number.
option9
- Usage: Optional
- Description: The option9 parameter takes a string or strings denoting the ninth option that voters could choose in the poll. This is used to generate the ninth option in the poll.
- Valid Value(s): Any string or strings.
result9
- Usage: Optional
- Description: The result9 parameter takes a number denoting the percentage of voters that chose the ninth option in the poll. This is used to generate the percentage bar that corresponds to the ninth option in the poll.
- Valid Value(s): Any positive number.
option10
- Usage: Optional
- Description: The option10 parameter takes a string or strings denoting the tenth option that voters could choose in the poll. This is used to generate the tenth option in the poll.
- Valid Value(s): Any string or strings.
result10
- Usage: Optional
- Description: The result10 parameter takes a number denoting the percentage of voters that chose the tenth option in the poll. This is used to generate the percentage bar that corresponds to the tenth option in the poll.
- Valid Value(s): Any positive number.
totalvotes
- Usage: Mandatory
- Description: The totalvotes parameter takes a number denoting the total number of votes that the poll garnered. This is used to generate the "Total Votes" item in the bottom-right corner of the template.
- Valid Value(s): Any positive whole number.