Note: Ballotpedia will be read-only from 9pm CST on February 25-March 5 while Judgepedia is merged into Ballotpedia.
For status updates, visit lucyburns.org.
Ballotpedia's coverage of elections held on March 3, 2015, was limited. Select races were covered live, and all results will be added once the merger is complete.

Difference between revisions of "Template:ManyPoll"

From Ballotpedia
Jump to: navigation, search
(change choice#pct param req)
Line 104: Line 104:
 
! style="background-color:{{{headercolor|#00008b}}}; color:{{{headertext|white}}};" {{!}} Number polled}}
 
! style="background-color:{{{headercolor|#00008b}}}; color:{{{headertext|white}}};" {{!}} Number polled}}
 
|-
 
|-
| text align="center"|{{{daterange|<span style="font-size:70%;">MonthStart DayStart, YearStart - MonthEnd DayEnd, YearEnd</span>}}} || text align="center"|{{{pollster|{{{pollcompany|''Unknown pollster''}}}}}} || text align="center" {{#ifeq:{{{winnerchoice|}}}|1|style="background-color:{{{winnercolor|#cef2e0}}};"}}|{{#if:{{{choice1pct|}}}|{{{choice1pct|}}}%|-}} {{!}}{{!}} text align="center" {{#ifeq:{{{winnerchoice|}}}|2|style="background-color:{{{winnercolor|#cef2e0}}};"}} {{!}}{{#if:{{{choice2pct|}}}|{{{choice2pct|}}}%|-}} {{!}}{{!}} text align="center" {{#ifeq:{{{winnerchoice|}}}|3|style="background-color:{{{winnercolor|#cef2e0}}};"}} {{!}}{{#if:{{{choice3pct|}}}|{{{choice3pct|}}}%|-}} {{#if:{{{choice4pct|}}}|{{!}}{{!}} text align="center" {{#ifeq:{{{winnerchoice|}}}|4|style="background-color:{{{winnercolor|#cef2e0}}};"}} {{!}}{{#if:{{{choice4pct|}}}|{{{choice4pct|}}}%|-}}}} {{#if:{{{choice5pct|}}}|{{!}}{{!}} text align="center" {{#ifeq:{{{winnerchoice|}}}|5|style="background-color:{{{winnercolor|#cef2e0}}};"}} {{!}}{{#if:{{{choice5pct|}}}|{{{choice5pct|}}}%|-}}}} {{#if:{{{choice6pct|}}}|{{!}}{{!}} text align="center" {{#ifeq:{{{winnerchoice|}}}|6|style="background-color:{{{winnercolor|#cef2e0}}};"}} {{!}}{{#if:{{{choice6pct|}}}|{{{choice6pct|}}}%|-}}}} {{#if:{{{choice7pct|}}}|{{!}}{{!}} text align="center" {{#ifeq:{{{winnerchoice|}}}|7|style="background-color:{{{winnercolor|#cef2e0}}};"}} {{!}}{{#if:{{{choice7pct|}}}|{{{choice7pct|}}}%|-}}}} {{#if:{{{choice8pct|}}}|{{!}}{{!}} text align="center" {{#ifeq:{{{winnerchoice|}}}|8|style="background-color:{{{winnercolor|#cef2e0}}};"}} {{!}}{{#if:{{{choice8pct|}}}|{{{choice8pct|}}}%|-}}}} {{#if:{{{choice9pct|}}}|{{!}}{{!}} text align="center" {{#ifeq:{{{winnerchoice|}}}|9|style="background-color:{{{winnercolor|#cef2e0}}};"}} {{!}}{{#if:{{{choice9pct|}}}|{{{choice9pct|}}}%|-}}}} {{#if:{{{choice10pct|}}}|{{!}}{{!}} text align="center" {{#ifeq:{{{winnerchoice|}}}|10|style="background-color:{{{winnercolor|#cef2e0}}};"}} {{!}}{{#if:{{{choice10pct|}}}|{{{choice10pct|}}}%|-}}}} {{#if:{{{choice11pct|}}}|{{!}}{{!}} text align="center" {{#ifeq:{{{winnerchoice|}}}|11|style="background-color:{{{winnercolor|#cef2e0}}};"}} {{!}}{{#if:{{{choice11pct|}}}|{{{choice11pct|}}}%|-}}}} {{#if:{{{choice12pct|}}}|{{!}}{{!}} text align="center" {{#ifeq:{{{winnerchoice|}}}|12|style="background-color:{{{winnercolor|#cef2e0}}};"}} {{!}}{{#if:{{{choice12pct|}}}|{{{choice12pct|}}}%|-}}}}
+
| text align="center"|{{{daterange|<span style="font-size:70%;">MonthStart DayStart, YearStart - MonthEnd DayEnd, YearEnd</span>}}} || text align="center"|{{{pollster|{{{pollcompany|''Unknown pollster''}}}}}} || text align="center" {{#ifeq:{{{winnerchoice|}}}|1|style="background-color:{{{winnercolor|#cef2e0}}};"}}|{{#if:{{{choice1pct|}}}|{{{choice1pct|}}}%|-}} {{!}}{{!}} text align="center" {{#ifeq:{{{winnerchoice|}}}|2|style="background-color:{{{winnercolor|#cef2e0}}};"}} {{!}}{{#if:{{{choice2pct|}}}|{{{choice2pct|}}}%|-}} {{!}}{{!}} text align="center" {{#ifeq:{{{winnerchoice|}}}|3|style="background-color:{{{winnercolor|#cef2e0}}};"}} {{!}}{{#if:{{{choice3pct|}}}|{{{choice3pct|}}}%|-}} {{#if:{{{choice4pct|}}}|{{!}}{{!}} text align="center" {{#ifeq:{{{winnerchoice|}}}|4|style="background-color:{{{winnercolor|#cef2e0}}};"}} {{!}}{{#if:{{{choice4pct|}}}|{{{choice4pct|}}}{{{nopct4|%}}}|-}}}} {{#if:{{{choice5pct|}}}|{{!}}{{!}} text align="center" {{#ifeq:{{{winnerchoice|}}}|5|style="background-color:{{{winnercolor|#cef2e0}}};"}} {{!}}{{#if:{{{choice5pct|}}}|{{{choice5pct|}}}{{{nopct5|%}}}|-}}}} {{#if:{{{choice6pct|}}}|{{!}}{{!}} text align="center" {{#ifeq:{{{winnerchoice|}}}|6|style="background-color:{{{winnercolor|#cef2e0}}};"}} {{!}}{{#if:{{{choice6pct|}}}|{{{choice6pct|}}}{{{nopct6|%}}}|-}}}} {{#if:{{{choice7pct|}}}|{{!}}{{!}} text align="center" {{#ifeq:{{{winnerchoice|}}}|7|style="background-color:{{{winnercolor|#cef2e0}}};"}} {{!}}{{#if:{{{choice7pct|}}}|{{{choice7pct|}}}%|-}}}} {{#if:{{{choice8pct|}}}|{{!}}{{!}} text align="center" {{#ifeq:{{{winnerchoice|}}}|8|style="background-color:{{{winnercolor|#cef2e0}}};"}} {{!}}{{#if:{{{choice8pct|}}}|{{{choice8pct|}}}%|-}}}} {{#if:{{{choice9pct|}}}|{{!}}{{!}} text align="center" {{#ifeq:{{{winnerchoice|}}}|9|style="background-color:{{{winnercolor|#cef2e0}}};"}} {{!}}{{#if:{{{choice9pct|}}}|{{{choice9pct|}}}%|-}}}} {{#if:{{{choice10pct|}}}|{{!}}{{!}} text align="center" {{#ifeq:{{{winnerchoice|}}}|10|style="background-color:{{{winnercolor|#cef2e0}}};"}} {{!}}{{#if:{{{choice10pct|}}}|{{{choice10pct|}}}%|-}}}} {{#if:{{{choice11pct|}}}|{{!}}{{!}} text align="center" {{#ifeq:{{{winnerchoice|}}}|11|style="background-color:{{{winnercolor|#cef2e0}}};"}} {{!}}{{#if:{{{choice11pct|}}}|{{{choice11pct|}}}%|-}}}} {{#if:{{{choice12pct|}}}|{{!}}{{!}} text align="center" {{#ifeq:{{{winnerchoice|}}}|12|style="background-color:{{{winnercolor|#cef2e0}}};"}} {{!}}{{#if:{{{choice12pct|}}}|{{{choice12pct|}}}%|-}}}}
 
| text align="center" |{{{totalpolled|''Unknown''}}}
 
| text align="center" |{{{totalpolled|''Unknown''}}}
 
{{#ifeq:{{{rowonly|-}}}|||<!--
 
{{#ifeq:{{{rowonly|-}}}|||<!--

Revision as of 13:06, 28 October 2010

Description
Based on {{FlexPoll‎}} and {{FlexPoll4‎}}.
Parameters
  • rowonly= Optional Use without value to use as a row with {{ManyPollBegin}} and {{ManyPollEnd}}.
  • boxwidth = Optional Width of poll box (default:100%)
  • fontsize = Optional Font size adjustment (default:100%)
  • headercolor = Optional Header background color (default dark blue: #00008b)
  • headertext = Optional Header text color (default: white)
  • winnerchoice = Optional Choice number of winner (no default)
  • winnercolor = Optional Winner of choices color (default sky blue: #cef2e0)
  • choice1 = Optional, but always shown Choice #1 name (default: Choice 1)
  • choice2 = Optional, but always shown Choice #2 name (default: Choice 2)
  • choice3 = Optional, but always shown Choice #3 name (default: Choice 3)
  • choice4 = Optional Choice #4 name (default: Choice 4)
  • choice5 = Optional Choice #5 name (default: Choice 5)
  • choice6 = Optional Choice #6 name (default: Choice 6)
  • choice7 = Optional Choice #7 name (default: Choice 7)
  • choice8 = Optional Choice #8 name (default: Choice 8)
  • choice9 = Optional Choice #9 name (default: Choice 9)
  • choice10 = Optional Choice #10 name (default: Choice 10)
  • choice11 = Optional Choice #11 name (default: Choice 11)
  • choice12 = Optional Choice #12 name (default: Choice 12)
  • daterange = Date range of poll (i.e. Month DayStart - DayEnd, Year or MonthStart DayStart - MonthEnd DayEnd, Year)
  • pollster or pollcompany = Name of pollster
  • choice1pct = Choice #1 % (without '%' sign added)
  • choice2pct = Choice #2 % (without '%' sign added)
  • choice3pct = Choice #3 % (without '%' sign added)
  • choice4pct = Optional Choice #4 % (without '%' sign added)
  • choice5pct = Optional Choice #5 % (without '%' sign added)
  • choice6pct = Optional Choice #6 % (without '%' sign added)
  • choice7pct = Optional Choice #7 % (without '%' sign added)
  • choice8pct = Optional Choice #8 % (without '%' sign added)
  • choice9pct = Optional Choice #9 % (without '%' sign added)
  • choice10pct = Optional Choice #10 % (without '%' sign added)
  • choice11pct = Optional Choice #11 % (without '%' sign added)
  • choice12pct = Optional Choice #12 % (without '%' sign added)
  • totalpolled = Total number of people polled
Usage
{{ManyPoll
|headercolor  = #8467d7
|choice1      = Rocky Delgadillo (D)
|choice2      = Kamala Harris (D)
|choice3      = Chris Kelly (D)
|choice4      = Ted Lieu (D)
|choice5      = Pedro Nava (D)
|choice6      = Mike Schmier (D)
|choice7      = Alberto Torrico (D)
|choice8      = Undecided
|winnerchoice = 2
|winnercolor  = #b1fb17
|daterange    = May 6 - 9 <ref>[http://abclocal.go.com/kfsn/feature?section=news/politics&id=7435863 ''ABC 30'' "ABC 30 / SurveyUSA California Election Poll" 10 May, 2010]</ref>
|pollster     = Survey USA
|choice1pct   = 16
|choice2pct   = 22
|choice3pct   = 11
|choice4pct   = 10
|choice5pct   = 8
|choice6pct   = 2
|choice7pct   = 4
|choice8pct   = 28
|totalpolled  = 621
}}
gives...
Date of Poll Pollster Rocky Delgadillo (D) Kamala Harris (D) Chris Kelly (D) Ted Lieu (D) Pedro Nava (D) Mike Schmier (D) Alberto Torrico (D) Undecided Number polled
May 6 - 9 [1] Survey USA 16% 22% 11% 10% 8% 2% 4% 28% 621



Template
Date of Poll Pollster Choice 1 Choice 2 Choice 3 Number polled
MonthStart DayStart, YearStart - MonthEnd DayEnd, YearEnd Unknown pollster - - - Unknown


Cite error: <ref> tags exist, but no <references/> tag was found