MY VISION PLEASE I welcome comments on the discussion page

edit

My vision is to make one template versatile enough that allows us to have all of the election cycles collapsed except the last cycle which would be opened on a individuals page and then with one code line change it could be collapsed, therefore updating the next election cycle would be easier. Also with each vote tally in a separate collapsible box template, the header can contain the election data and district # and it would be easy to stack them for the year results page (all open of course). An ease of readability is necessary. I would also like to have the choice of color in the header box.

ELECTION RESULTS current work in progress

edit

Template:Compact election box

Election Political result Candidate Party Votes % ±%
2008 Iowa House of Representatives District 18Democratic win Bruce Braley (I)Democratic178,22964%
David Hartsuch Republican99,44735%
Write in 1,0101%
Rife Ideas Green100.1%
<span class="anchor" id="2008 Iowa
House of Representatives
District 20

result"><span class="anchor" id="2008 iowa
house of representatives
district 20

result">2008 Iowa
House of Representatives
District 20

Republican win Bruce BraleyRepublican178,22964%
David Hartsuch (I) Democratic99,44735%
Write in Libertarian1,0101%
Philosopher for fun For Fun Party100.1%

race with breaks not stacked with 1 line race

Election Political result Candidate Party Votes % ±%
<span class="anchor" id="2008 Iowa
House of Representatives
District 20

result"><span class="anchor" id="2008 iowa
house of representatives
district 20

result">2008 Iowa
House of Representatives
District 20

Republican win Bruce BraleyRepublican178,22964%
David Hartsuch (I) Democratic99,44735%
Write in Libertarian1,0101%
Philosopher for fun For Fun Party100.1%

OTHER examples

edit

example from WikiProject Iowa/Government Election box inline begin no change

Year Party Incumbent Status Party Candidate Votes %
2008 Democratic Bruce Braley re-elected Democratic Bruce Braley 178,229 64%
Republican David Hartsuch 99,447 35%
Year Party Incumbent Status Party Candidate Votes %
2008 Democratic Bruce Braley elected Democratic Bruce Braley 178,229 64%
Republican David Hartsuch 99,447 35%


Election box begin with info title= and subtitle

General Election 2005: Subtitle
Party Candidate Votes % ±%
Democratic Bruce Braley 9,999 50.0
Republican David Hartsuch 9,999 50.0


div style

2002 Iowa House District 36 General Election [1]
Swati A. Dandekar (D) (6,770 votes) (58%)
Karen Balderston (R) (5,000 votes)

table class allows for open or closed data I have ? on color codes in header and information area

2002 Iowa House District 36 General Election [2]
Swati A. Dandekar (D) (6,770 votes) (58%)
Karen Balderston (R) (5,000 votes)

collapible list allows for open or closed data I have ? on color codes in header and information area

2002 Iowa House District 36 General Election [3]
  • :Swati A. Dandekar (D) (6,770 votes) (58%)
  • :Karen Balderston (R) (5,000 votes)

Just list template no data

List
  • ...

Raw Data

edit

2002 Iowa House District 36 General Election [4]

Swati A. Dandekar (D) (6,770 votes) (58%)
Karen Balderston (R) (5,000 votes)

2004 Iowa House District 36 General Election [5]

Swati A. Dandekar (D) (9,843 votes) (54%)
Cory Crowley (R) (8,220 votes)

2006 Iowa House District 36 General Election [6]

Swati A. Dandekar (D) (6,987 votes) (53%)
Nick Wagner (R) (6,302 votes)

2008 Iowa Senate District 18 General Election [7]

Swati A. Dandekar (D) (20,667 votes) (54%)
Joe Childers (R) (17,367 votes)

2012 Next Iowa Senate District 18 General Election