|
|
Line 1: |
Line 1: |
| <includeonly>{{#if: {{component|{{{1}}}|2}}|<!--color:--><div style="display: inline-block; position: absolute; | | <includeonly><!--arrowhead<div style="position: absolute; text-align: center; font-size:200%; |
| bottom: {{#expr: 100*({{component|{{{1}}}|3}}-{{component|{{{1}}}|2}})/(1.1*{{{max-tot|}}}) }}%;
| | left: {{#expr: 100*({{MDY to Julian|{{{date|}}}}}-{{MDY to Julian|1/1/2006}})/({{MDY to Julian|{{{updated|}}}}}-{{MDY to Julian|1/1/2006}}) - 5 }}%; |
| height: {{#expr: 100*{{component|{{{1}}}|2}}/(1.1*{{{max-tot|}}}) }}%;
| | width: 10%; |
| left: {{NPVIC chart/percent|date={{#if: {{component|{{{1}}}|start}}|{{component|{{{1}}}|start}}|12/31/{{rounddown|{{str rightc|{{#if: {{component|{{{1}}}|end}}|{{component|{{{1}}}|end}}|{{component|{{{1}}}|census}}}}|4}}|-1}}}}|updated={{{updated}}}}}%;
| | top: 100%; |
| right: {{max|0|{{#expr: 100-{{NPVIC chart/percent|date={{#if: {{component|{{{1}}}|end}}|{{component|{{{1}}}|end}}|12/31/{{roundup|{{str rightc|{{#if: {{component|{{{1}}}|start}}|{{component|{{{1}}}|start}}|{{#expr: {{component|{{{1}}}|census}}+1}}}}|4}}|-1}}}}|updated={{{updated}}}}}}}}}%;
| | ">↑</div>---> |
| border-top: 1px solid green;
| |
| {{#if: {{component|{{{1}}}|old-tot}}||border-left: 1px solid green;}}
| |
| background-color: rgba(136, 255, 136, .65);"></div>
| |
|
| |
|
| {{#if: {{component|{{{1}}}|old-tot}} |
| | <!--shaft--><div style="position: absolute; text-align: center; |
| <!--line:--><div style="display: inline-block; position: absolute; | | left: {{#expr: 100*({{MDY to Julian|{{{date|}}}}}-{{MDY to Julian|1/1/2006}})/({{MDY to Julian|{{{updated|}}}}}-{{MDY to Julian|1/1/2006}}) }}%; |
| bottom: {{#ifexpr: {{component|{{{1}}}|3}} < {{component|{{{1}}}|old-tot}} | {{#expr: 100*({{component|{{{1}}}|3}})/(1.1*{{{max-tot|}}}) }} | {{#expr: 100*{{component|{{{1}}}|old-tot}}/(1.1*{{{max-tot|}}}) }} }}%;
| | width: 0%; |
| height: {{#ifexpr: {{component|{{{1}}}|3}} < {{component|{{{1}}}|old-tot}} | {{#expr: 100*abs({{component|{{{1}}}|3}}-{{#if: {{component|{{{1}}}|old-tot}} | {{component|{{{1}}}|old-tot}} | 0}})/(1.1*{{{max-tot|}}}) }} | {{#expr: 100*({{component|{{{1}}}|3}}-{{component|{{{1}}}|old-tot}})/(1.1*{{{max-tot|}}}) }} }}%;
| | top: 100%; |
| left: {{NPVIC chart/percent|date={{#if: {{component|{{{1}}}|start}}|{{component|{{{1}}}|start}}|12/31/{{rounddown|{{str rightc|{{#if: {{component|{{{1}}}|end}}|{{component|{{{1}}}|end}}|{{component|{{{1}}}|census}}}}|4}}|-1}}}}|updated={{{updated}}}}}%;
| | height: 10%; |
| right: {{max|0|{{#expr: 100-{{NPVIC chart/percent|date={{#if: {{component|{{{1}}}|end}}|{{component|{{{1}}}|end}}|12/31/{{roundup|{{str rightc|{{#if: {{component|{{{1}}}|start}}|{{component|{{{1}}}|start}}|{{#expr: {{component|{{{1}}}|census}}+1}}}}|4}}|-1}}}}|updated={{{updated}}}}}}}}}%;
| | border: 1px solid;"></div> |
| margin-bottom: 1px;
| | |
| border-left: 1px solid green;"></div> | | <!--box--><div style="display:table; position: absolute; text-align: center; |
| |
| | left: {{#expr: 100*({{MDY to Julian|{{{date|}}}}}-{{MDY to Julian|1/1/2006}})/({{MDY to Julian|{{{updated|}}}}}-{{MDY to Julian|1/1/2006}}) - 15 }}%; |
| <!--state label:--><div style="display: inline-block; position: absolute; align: right; | | width: 30%; |
| bottom: {{#expr: 100*({{component|{{{1}}}|3}})/(1.1*{{{max-tot|}}})+{{#if: {{component|{{{1}}}|y-offset}}|{{component|{{{1}}}|y-offset}}|0}} }}%;
| | top: 108%;"> |
| right: {{#expr: 100-{{NPVIC chart/percent|date={{#if: {{component|{{{1}}}|start}}|{{component|{{{1}}}|start}}|12/31/{{rounddown|{{str rightc|{{#if: {{component|{{{1}}}|end}}|{{component|{{{1}}}|end}}|{{component|{{{1}}}|census}}}}|4}}}}}}|updated={{{updated}}}}}-{{#if: {{component|{{{1}}}|x-offset}}|{{component|{{{1}}}|x-offset}}|0}} }}%;
| | |
| font-size: {{#expr: 75*{{{size|500}}}/500 }}%;">{{component|{{{1}}}|1}}</div> | | <div style="display:table-cell;"></div> |
| }} |}}</includeonly><noinclude>
| | <div style="display:table-cell; border: 1px outset; background-color: #ADD8E6; width: 50%; padding: 2px 5px; |
| | font-size: {{#expr: 80*{{{size|500}}}/500 }}%; line-height: 125%;">'''{{{text|}}}'''</div> |
| | <div style="display:table-cell;"></div> |
| | |
| | </div><includeonly><noinclude> |
| {{subtemplate}} | | {{subtemplate}} |
| Draws a div bar with the specified bottom, height, and start and end dates
| | Creates an annotation box at a specified date, with specified text. |
| </noinclude> | | </noinclude> |