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>{{#ifexpr: {{{1}}}*{{{vert-interval}}} < {{{max-tot}}}
<includeonly>{{#ifexpr: ({{{1}}}-1)*{{{vert-interval}}} < {{{max-tot}}}
|
|
<!--ticks--><div style="display: inline-block; position: absolute; box-sizing: border-box;
<!--ticks--><div style="display: inline-block; position: absolute; box-sizing: border-box;
bottom: {{#expr: 100*{{{1}}}*{{{vert-interval}}}/(1.1*{{{max-tot}}}) }}%;
bottom: {{#expr: 100*({{{1}}}-1)*{{{vert-interval}}}/(1.1*{{{max-tot}}}) }}%;
height: 0px;
height: 0px;
left: 100%;
left: 100%;
Line 10: Line 10:


<!--tick labels--><div style="display: table; position: absolute; left: 103%; bottom: {{#expr: 100*{{{1}}}*{{{vert-interval}}}/(1.1*{{{max-tot}}})-5 }}%; height: 10%; line-height: 10%;">
<!--tick labels--><div style="display: table; position: absolute; left: 103%; bottom: {{#expr: 100*{{{1}}}*{{{vert-interval}}}/(1.1*{{{max-tot}}})-5 }}%; height: 10%; line-height: 10%;">
<div style="display: table-cell; vertical-align: middle; font-size: {{#expr: 90*{{{size|500}}}/500 }}%;">'''{{#expr: {{{1}}}*{{{vert-interval}}} }}'''</div>
<div style="display: table-cell; vertical-align: middle; font-size: {{#expr: 90*{{{size|500}}}/500 }}%;">'''{{#expr: ({{{1}}}-1)*{{{vert-interval}}} }}'''</div>
</div>
</div>



Revision as of 19:11, 11 January 2017

Template:Subtemplate Draws vertical markers and labels