Difference between revisions of "Template:Climate chart/fahrenheit column i"
Jump to navigation
Jump to search
imported>Primefac m (Protected "Template:Climate chart/fahrenheit column i": semi-protecting highly-visible templates in response to recent template-space vandalism ([Edit=Require autoconfirmed or confirmed access] (indefinite) [Move=Require autoconfirmed o...) |
imported>Andree.sk m (mark the color bars to render exact, to make them print properly (tested with Chrome)) |
||
| Line 1: | Line 1: | ||
<div style="width:1.5em;height:17em;position:relative;padding:0;margin:0"> | <div style="width:1.5em;height:17em;position:relative;padding:0;margin:0"> | ||
<div style="height:0em;bottom:2em;width:1.6em;position:absolute;left:0;border-bottom:dotted 1px #abc;padding:0;margin:0"> </div> | <div style="height:0em;bottom:2em;width:1.6em;position:absolute;left:0;border-bottom:dotted 1px #abc;padding:0;margin:0"> </div> | ||
| − | <div style="background:#ace;position:absolute;bottom:2em;left:.2em;width:1.2em;height:{{#expr:{{{3|5}}}*.508/{{#ifexpr:{{{4|20}}}<30|1|{{#expr:{{{4|20}}}/30}}}}}}em;overflow:hidden"> </div><!-- 30 in. is maximum for the height, re-scale otherwise --> | + | <div style="background:#ace;-webkit-print-color-adjust:exact;color-adjust:exact;position:absolute;bottom:2em;left:.2em;width:1.2em;height:{{#expr:{{{3|5}}}*.508/{{#ifexpr:{{{4|20}}}<30|1|{{#expr:{{{4|20}}}/30}}}}}}em;overflow:hidden"> </div><!-- 30 in. is maximum for the height, re-scale otherwise --> |
<div style="color:blue;position:absolute;bottom:.5em;left:0;width:1.6em;height:1.5em;text-align:center"><span style="font-size:70%">{{#expr:{{{3|5}}} round {{#ifexpr:{{{3|5}}}<10|1|0}}}}</span></div> | <div style="color:blue;position:absolute;bottom:.5em;left:0;width:1.6em;height:1.5em;text-align:center"><span style="font-size:70%">{{#expr:{{{3|5}}} round {{#ifexpr:{{{3|5}}}<10|1|0}}}}</span></div> | ||
<div style="height:0em;bottom:8em;width:1.6em;position:absolute;left:0;border-bottom:dotted 1px #cba;padding:0;margin:0"> </div> | <div style="height:0em;bottom:8em;width:1.6em;position:absolute;left:0;border-bottom:dotted 1px #cba;padding:0;margin:0"> </div> | ||
| − | <div style="overflow:hidden;background:#e44;position:absolute;left:.2em;width:1.2em;bottom:{{#expr:{{{1|10}}}/9+4.44}}em;height:{{#expr:({{{2|20}}}-{{{1|10}}})/9}}em;"> </div> | + | <div style="overflow:hidden;background:#e44;-webkit-print-color-adjust:exact;color-adjust:exact;position:absolute;left:.2em;width:1.2em;bottom:{{#expr:{{{1|10}}}/9+4.44}}em;height:{{#expr:({{{2|20}}}-{{{1|10}}})/9}}em;"> </div> |
<div style="color:red;position:absolute;bottom:{{#expr:{{{2|20}}}/9+4.44}}em; left:0;width:1.6em;height:1.5em;text-align:center"><span style="font-size:80%">{{#ifexpr:({{{2|20}}} round 0) < 0 |−}}{{#expr:abs ({{{2|20}}} round 0)}}</span></div> | <div style="color:red;position:absolute;bottom:{{#expr:{{{2|20}}}/9+4.44}}em; left:0;width:1.6em;height:1.5em;text-align:center"><span style="font-size:80%">{{#ifexpr:({{{2|20}}} round 0) < 0 |−}}{{#expr:abs ({{{2|20}}} round 0)}}</span></div> | ||
<div style="color:red;position:absolute;bottom:{{#expr:{{{1|10}}}/9+2.94}}em; left:0;width:1.5em;height:1.5em;text-align:center"><span style="font-size:80%">{{#ifexpr:({{{1|10}}} round 0) < 0 |−}}{{#expr:abs ({{{1|10}}} round 0)}}</span></div> | <div style="color:red;position:absolute;bottom:{{#expr:{{{1|10}}}/9+2.94}}em; left:0;width:1.5em;height:1.5em;text-align:center"><span style="font-size:80%">{{#ifexpr:({{{1|10}}} round 0) < 0 |−}}{{#expr:abs ({{{1|10}}} round 0)}}</span></div> | ||
</div> | </div> | ||
Latest revision as of 05:11, 18 August 2018
5
20
10