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}}|-1}}}}|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}}}}|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}}}}|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}}}}|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: 1px solid green;}}
Line 13: Line 13:
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|}}}) }} }}%;
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|}}}) }} }}%;
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|}}}) }} }}%;
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|}}}) }} }}%;
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}}}}}}|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}}}}|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}}}}|updated={{{updated}}}}}}}}}%;
margin-bottom: 1px;
margin-bottom: 1px;
border-left: 1px solid green;
border-left: 1px solid green;
Line 22: Line 22:
<!--state label:--><div style="display: inline-block; position: absolute; align: right;
<!--state label:--><div style="display: inline-block; position: absolute; align: right;
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}}}}}}|end-date={{{end-date}}}}}-{{#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|500}}}/500 }}%;">{{component|{{{1}}}|1}}</div>
font-size: {{#expr: 75*{{{size|500}}}/500 }}%;">{{component|{{{1}}}|1}}</div>
}}</includeonly><noinclude>
}}</includeonly><noinclude>

Revision as of 15:59, 31 January 2017

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