Template:NPVIC chart: Difference between revisions

Content deleted Content added
No edit summary
Removed white rectangle behind green text
 
(15 intermediate revisions by 3 users not shown)
Line 1:
<includeonly>{{image frame|align=center|width={{#expr: {{{width|750}}}+50 }}|caption=History of state enactmentadoption of the NPVIC {{#if:{{{updated|}}}|{{as of|{{JULIANDAY.YEAR|{{MDY to Julian|{{{updated}}}}}}}|{{JULIANDAY.MONTH|{{MDY to Julian|{{{updated}}}}}}}|lc=y}}|}}. State-by-state details are in the table below.|link=Template:NPVIC chart|content=
<div style="width:{{{width|750}}}px; height:{{{height|450}}}px; position: relative;
padding: {{#expr: {{{height|450}}}/100 }}px 0px {{#expr: {{{height|450}}}/100 }}px {{#expr: {{{width|750}}}/16 }}px; background:#F5F5F5">
<div style="border:1px solid; width:77%; height:81%; position: absolute; box-sizing: border-box; background:white">
 
<!--Time-axis legend--><!--<div style="display:table; position: absolute; text-align: center; left: 25%; width: 50%; bottom: -12.5%;">'''Year'''</div>-->
 
<!--Vertical-axis legend--><div style="position: absolute; top: 25%; height: 50%; left: 110%; display: table; text-align:center;">
<div style="display:table-cell; vertical-align: middle; font-size: {{#expr: 100*{{{height|450}}}/450 }}%; line-height: 125%;">'''Total<br/>Electoralelectoral<br/>Votesvotes of<br/>Adoptiveadoptive<br/>Statesstates'''</div>
</div>
 
Line 33:
<!--Current total annotation--><div style="position:absolute; left: 100%; bottom:{{#expr: (100*({{{curr_tot}}}/{{{max_tot|{{{curr_tot}}}}}})/1.1)-5}}%; height: 10%; width:40%;
display: table; text-align:left;">
<div style="display:table-row;"><div style="display:table-cell; vertical-align: middle; color: green; font-size: {{#expr: 90*{{{height|450}}}/450 }}%;">'''← <span style="background-color: white;#F5F5F5">{{{curr_tot}}} ({{percent|{{{curr_tot}}}|270|1}} of 270)</span>'''</div></div>
<div style="display:table-row;"><div style="display:table-cell; height: 4px;"></div></div>
</div>
Line 52:
<!--Census annotations-->
{{#ifexpr: {{MDY to Julian|{{{updated|}}}}} > {{MDY to Julian|1/1/2011}} |
{{NPVIC chart/annotation|date=1/1/2011|text=Reapportionment<br/>based on<br/>2010 Censuscensus|updated={{{updated}}}|size={{{height|450}}}|curr_tot={{{curr_tot}}}|max_tot={{{max_tot|{{{curr_tot}}}}}}|census-year=2010|census_tot={{{census_tot_11|0}}}}}
|}}
{{#ifexpr: {{MDY to Julian|{{{updated|}}}}} > {{MDY to Julian|1/1/2021}} |
{{NPVIC chart/annotation|date=1/1/2021|text=Reapportionment<br/>based on<br/>2020 Censuscensus|updated={{{updated}}}|size={{{height|450}}}|curr_tot={{{curr_tot}}}|max_tot={{{max_tot|{{{curr_tot}}}}}}|census-year=2020|census_tot={{{census_tot_21|0}}}}}
|}}
{{#ifexpr: {{MDY to Julian|{{{updated|}}}}} > {{MDY to Julian|1/1/2031}} |
{{NPVIC chart/annotation|date=1/1/2021|text=Reapportionment<br/>based on<br/>2030 Censuscensus|updated={{{updated}}}|size={{{height|450}}}|curr_tot={{{curr_tot}}}|max_tot={{{max_tot|{{{curr_tot}}}}}}|census-year=2030|census_tot={{{census_tot_31|0}}}}}
|}}
|<includeonly>{{error|This chart relies on data stored elsewhere on this page, which is not available when editing this section in isolation.}}</includeonly>}}
 
</div></div>
}}</includeonly><noinclude>{{docdocumentation}}</noinclude>