Difference between revisions of "Template:Demo-inline"

From blackwiki
Jump to navigation Jump to search
test>Swpb
test>Swpb
Line 5: Line 5:
 
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}}}}}}}}}%;
 
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-top: 1px solid green;
 
border-top: 1px solid green;
{{#if: {{component|{{{1}}}|old-tot}}||border-left: 1px solid green;}}
+
{{#if: {{component|{{{1}}}|old-tot}}||border-left: 10px solid green;}}
<!--{{#if: {{component|{{{1}}}|end}} | border-right: 1px solid green;}}-->
 
 
border-width: 1px;
 
border-width: 1px;
 
background-color: rgba(136, 255, 136, .65);"></div>
 
background-color: rgba(136, 255, 136, .65);"></div>

Revision as of 17:03, 31 January 2017

Template:Subtemplate Draws a div bar with the specified bottom, height, and start and end dates