Template:Demo-inline: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Swpb
No edit summary
meta>Swpb
No edit summary
Line 2: Line 2:
bottom: {{#expr: 100*({{component|{{{1}}}|3}}-{{component|{{{1}}}|2}})/(1.1*{{{max-tot|}}}) }}%;
bottom: {{#expr: 100*({{component|{{{1}}}|3}}-{{component|{{{1}}}|2}})/(1.1*{{{max-tot|}}}) }}%;
height: {{#expr: 100*{{component|{{{1}}}|2}}/(1.1*{{{max-tot|}}}) }}%;
height: {{#expr: 100*{{component|{{{1}}}|2}}/(1.1*{{{max-tot|}}}) }}%;
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}}}}}}|end-date={{{end-date}}}}}%;
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}}}}|end-date={{{end-date}}}}}%;
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}}}}|end-date={{{end-date}}}}}}}}}%;
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}}}}|end-date={{{end-date}}}}}}}}}%;
border-top: 1px solid green;
border-top: 1px solid green;

Revision as of 15:19, 30 January 2017

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