|
|
(93 intermediate revisions by one other user not shown) |
Line 1: |
Line 1: |
| {{image frame|width={{#expr: {{{size|500}}}+50 }}|caption=History of state participation in the NPVIC as of November 2016|link=File:NPVIC participants.svg|content=
| | <includeonly>{{#invoke:Demo|inline}}</includeonly><noinclude>{{documentation}}</noinclude> |
| <div style="width:{{{size|500}}}px; height:{{#expr: 0.75*{{{size|500}}} }}px; position: relative; | |
| padding: {{#expr: {{{size|500}}}/100 }}px {{#expr: {{{size|500}}}/100 }}px {{#expr: {{{size|500}}}/100 }}px {{#expr: {{{size|500}}}/14 }}px;">
| |
| <div style="border:1px solid; width:82%; height:82%; position: relative; box-sizing: border-box;">
| |
| | |
| <!--Horizontal legend-->
| |
| <!--<div style="display:table; position: absolute; text-align: center; left: 25%; width: 50%; bottom: -12.5%;">'''Year'''</div>-->
| |
| | |
| <!--Vertical 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: 90*{{{size|500}}}/500 }}%; line-height: 125%;">'''Total<br/>Electoral<br/>Votes of<br/>Adoptive<br/>States'''</div>
| |
| </div>
| |
| | |
| <includeonly>
| |
| <!-- Year bars and horizontal markers --> | |
| {{for loop||call=User:Swpb/NPVIC/yearbar|pc1n=end-date|pc2n=size|pc2v={{{size|500}}}|pc1v={{{end-date}}}|2006|2007|2008|2009|2010|2011|2012|2013|2014|2015|2016|2017}}
| |
| | |
| <!-- Vertical markers --> | |
| {{for loop||call=User:Swpb/NPVIC/marker|pc1n=max-tot|pc1v={{{max-tot}}}|pc2n=size|pc2v={{{size|500}}}|0|25|50|75|100|125|150|175}}
| |
| | |
| <!--Current total annotation-->
| |
| <div style="position:absolute; left: 100%; bottom:{{#expr: (100/1.1)-5}}%; height: 10%;
| |
| display: table; text-align:center;"><div style="display:table-cell; vertical-align: middle; color: green; font-size: {{#expr: 80*{{{size|500}}}/500 }}%;">'''← {{{curr-tot}}} ({{percent|{{{curr-tot}}}|270|1}} of 270)'''</div></div>
| |
| | |
| <!--Rows-->
| |
| {{for loop||call=User:Swpb/sandbox4 |pc1n=size|pc1v={{{size}}}|pc2n=max-tot|pc2v={{{max-tot}}}|pc3n=end-date|pc3v={{{end-date}}}
| |
| |{{{1}}}|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|{{{8}}}|{{{9}}}|{{{10}}}|{{{11}}}|{{{12}}}|{{{13}}}|{{{14}}}|{{{15}}}|{{{16}}}|{{{17}}}|{{{18}}}|{{{19}}}}}
| |
| | |
| <!--Horizontal annotations-->
| |
| {{User:Swpb/NPVIC/annotation|date=3/3/2006|text=First<br/>legislative<br/>introduction|end-date={{{end-date}}}|size={{{size|500}}}}}
| |
| {{User:Swpb/NPVIC/annotation|date=1/1/2011|text=Reapportionment<br/>based on<br/>2010 Census|end-date={{{end-date}}}|size={{{size|500}}}}}
| |
| <!--dotted line at census redistribution--><div style="position: absolute; bottom: 0%;
| |
| height: {{#expr: 100*74/(1.1*{{{max-tot}}}) }}%;
| |
| left: {{#expr: 100*({{datefmt|1/1/2011}}-{{datefmt|1/1/2006}})/({{datefmt|{{{end-date|}}}}}-{{datefmt|1/1/2006}}) }}%;
| |
| box-sizing: border-box; border-left: 1px dotted rgba(0,0,0,0.3);"></div>
| |
| </includeonly>
| |
| | |
| </div>
| |
| </div>
| |
| }}
| |