Vote button trans.png
April's Project of the Month
It's spring time. It's primary election season!
Click here to find all the information you'll need to cast your ballot.




Difference between revisions of "Template:FlexPoll"

From Ballotpedia
Jump to: navigation, search
m
m
 
Line 87: Line 87:
 
-->{{!}}}
 
-->{{!}}}
 
}}</onlyinclude>
 
}}</onlyinclude>
[[Category:Template|{{PAGENAME}}]]
+
[[Category:Table and column templates|{{PAGENAME}}]]

Latest revision as of 14:02, 8 November 2010

Description
Based on {{SinglePoll‎}}.
Parameters
  • rowonly= Optional Use without value to use as a row with {{MultiPollBegin}} and {{MultiPollEnd}}.
  • boxwidth = Optional Width of poll box (default:60%)
  • headercolor = Optional Header background color (default dark blue: #00008b)
  • headertext = Optional Header text color (default: white)
  • winnercolor = Optional Winner of 3 choices color (default sky blue: #cef2e0)
  • choice1 = Optional Choice #1 name (default: In favor)
  • choice2 = Optional Choice #2 name (default: Opposed)
  • choice3 = Optional Choice #3 name (default: Undecided)
  • 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)
  • totalpolled = Total number of people polled
Usage
{{FlexPoll
|daterange   = August 26 - 29, 2010
|pollcompany = Survey USA
|choice1pct  = 34
|choice2pct  = 42
|choice3pct  = 24
|totalpolled = 650
}}
gives...
Date of Poll Pollster In favor Opposed Undecided Number polled
August 26 - 29, 2010 Survey USA 34% 42% 24% 650


{{FlexPoll
|boxwidth    = 85%
|headercolor = #8467d7
|winnercolor = #b1fb17
|daterange   = September 16 - 20
|pollcompany = Quinnipiac
|choice1     = {{bluedot}} Eric Schneiderman (D)
|choice2     = {{reddot}} Dan Donovan (R)
|choice1pct  = 37
|choice2pct  = 36
|choice3pct  = 27
|totalpolled = 751
}}
gives...
Date of Poll Pollster Democratic Party Eric Schneiderman (D) Republican Party Dan Donovan (R) Undecided Number polled
September 16 - 20 Quinnipiac 37% 36% 27% 751



Template
Date of Poll Pollster In favor Opposed Undecided Number polled
MonthStart DayStart, YearStart - MonthEnd DayEnd, YearEnd Unknown pollster - - - Unknown