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 1: Line 1:
<includeonly><!--color:--><div style="display: inline-block; position: absolute;
<includeonly>{{#if: {{{1}}}|<!--color:--><div style="display: inline-block; position: absolute;
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|}}}) }}%;
Line 24: Line 24:
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|500}}}/500 }}%;">{{component|{{{1}}}|1}}</div>
font-size: {{#expr: 75*{{{size|500}}}/500 }}%;">{{component|{{{1}}}|1}}</div>
}}</includeonly><noinclude>
}} |}}</includeonly><noinclude>
{{subtemplate}}
{{subtemplate}}
Draws a div bar with the specified bottom, height, and start and end dates
Draws a div bar with the specified bottom, height, and start and end dates
</noinclude>
</noinclude>

Revision as of 16:09, 31 January 2017

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