Content deleted Content added
No edit summary |
use more common, simpler templates to get state and province names (preparing for group TFD) |
||
Line 20: | Line 20: | ||
bottom: {{#expr: 100*({{component|{{{1}}}|3}})/(1.1*{{{max_tot|}}})+{{#if: {{component|{{{1}}}|y-offset}}|{{component|{{{1}}}|y-offset}}|0}} }}%; |
bottom: {{#expr: 100*({{component|{{{1}}}|3}})/(1.1*{{{max_tot|}}})+{{#if: {{component|{{{1}}}|y-offset}}|{{component|{{{1}}}|y-offset}}|0}} }}%; |
||
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}} }}%; |
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|450}}}/450 }}%;">{{abbr|{{component|{{{1}}}|1}}|{{ |
font-size: {{#expr: 75*{{{size|450}}}/450 }}%;">{{abbr|{{component|{{{1}}}|1}}|{{US State Abbrev|{{component|{{{1}}}|1}}}}}}</div> |
||
}} |}}</includeonly><noinclude> |
}} |}}</includeonly><noinclude> |
||
{{subtemplate}} |
{{subtemplate}} |
Revision as of 17:51, 7 February 2022
Draws a div bar with the specified bottom, height, and start and end dates