Difference between revisions of "Template:State delegation infobox"

From Ballotpedia
Jump to: navigation, search
Line 9: Line 9:
 
{{#if: {{{Unemployment|}}}|<tr><td>'''Unemployment rate'''</td><td>{{{Unemployment}}}</td></tr>|}}
 
{{#if: {{{Unemployment|}}}|<tr><td>'''Unemployment rate'''</td><td>{{{Unemployment}}}</td></tr>|}}
 
{{#if: {{{Median income|}}}|<tr><td>'''Median household income'''</td><td>{{{Median income}}}</td></tr>|}}
 
{{#if: {{{Median income|}}}|<tr><td>'''Median household income'''</td><td>{{{Median income}}}</td></tr>|}}
{{#if: {{{Voter turnout|}}}|<tr><td>'''Voter turnout (2012)'''</td><td>{{{Voter turnout}}}</td></tr>|}}
+
{{#if: {{{Voter turnout|}}}|<tr><td>'''2012 voter turnout'''</td><td>{{{Voter turnout}}}</td></tr>|}}
 
{{#if: {{{Voter reg|}}}|<tr><td>'''Voter registration statistics'''</td><td>{{{Voter reg}}}</td></tr>|}}
 
{{#if: {{{Voter reg|}}}|<tr><td>'''Voter registration statistics'''</td><td>{{{Voter reg}}}</td></tr>|}}
 
{{#if: {{{President|}}}|<tr><td>'''2012 Pres results'''</td><td>{{{President}}}</td></tr>|}}
 
{{#if: {{{President|}}}|<tr><td>'''2012 Pres results'''</td><td>{{{President}}}</td></tr>|}}
 
<tr><td>'''Upcoming elections'''</td><td>'''[[United States House of Representatives elections in {{{State}}}, 2014|U.S. House, 2014]]'''{{#ifeq: {{{Senate}}}|Yes|</td></tr><tr><td></td><td>'''[[United States Senate elections in {{{State}}}, 2014|U.S. Senate, 2014]]'''</td></tr>|}}</table><noinclude>{{Documentation}}</noinclude>
 
<tr><td>'''Upcoming elections'''</td><td>'''[[United States House of Representatives elections in {{{State}}}, 2014|U.S. House, 2014]]'''{{#ifeq: {{{Senate}}}|Yes|</td></tr><tr><td></td><td>'''[[United States Senate elections in {{{State}}}, 2014|U.S. Senate, 2014]]'''</td></tr>|}}</table><noinclude>{{Documentation}}</noinclude>

Revision as of 15:37, 21 August 2013






Upcoming elections[[United States House of Representatives elections in {{{State}}}, 2014|U.S. House, 2014]]
[edit] Template-info.png Template documentation

Usage


{{State delegation infobox
 State = State
 Population = Total population of state
 Gender = Percentage male/female
 Race = Race data for the state (% White, % Black, etc...)
 Ethnicity = Ethnicity data for the state (% Hispanic)
 Unemployment = Percentage of unemployed workers in the state
 Median income = Median household income statewide
 Voter reg = Percentage of voters registered with each major party (Not all states have this figure, N/A if not available)
 Voter turnout = Percentage of eligible voters who voted in 2012
 Senate = Yes if there is a senate election in 2014, otherwise leave blank.
 President = Percentage of votes received by Obama and Romney in the 2012 general election
 Special = Any upcoming special election
}}

Code

{{State delegation infobox
|State = 
|Population = 
|Gender = 
|Race = 
|Ethnicity = 
|Unemployment = 
|Median income = 
|Voter reg = 
|Voter turnout = 
|Senate = 
|President = 
|Special = 
}}