Difference between revisions of "Template:Climate chart/fahrenheit column"

From blackwiki
Jump to navigation Jump to search
imported>Yethrosh
imported>Andree.sk
m (mark the color bars to render exact, to make them print properly (tested with Chrome))
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
<div style="width:1.6em;height:17em;position:relative;padding:0;margin:0">
 
<div style="width:1.6em;height:17em;position:relative;padding:0;margin:0">
<div style="height:6em;bottom:2em;width:1.6em;position:absolute;left:0;border-bottom:dotted 1px #abc;border-top:dotted 1px #cba;padding:0;margin:0">&nbsp;</div>
+
<div style="height:0em;bottom:2em;width:1.6em;position:absolute;left:0;border-bottom:dotted 1px #abc;padding:0;margin:0">&nbsp;</div>
<div style="background:#ace;position:absolute;bottom:2em;left:.2em;width:1.2em;height:{{#expr:{{{3|80}}}/50}}em;overflow:hidden">&nbsp;</div>
+
<div style="background:#ace;-webkit-print-color-adjust:exact;color-adjust:exact;position:absolute;bottom:2em;left:.2em;width:1.2em;height:{{#expr:{{{3|80}}}/50/{{#ifexpr:{{{4|500}}}<750|1|{{#expr:{{{4|500}}}/750}}}}}}em;overflow:hidden">&nbsp;</div><!-- 750 mm 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|80}}}*.03937 round {{#ifexpr:{{{3|80}}}*.03937<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|80}}}/25.4 round {{#ifexpr:{{{3|80}}}/25.4<10|1|0}}}}</span></div>
<div style="overflow:hidden;background:#e44;position:absolute;left:.4em;width:0.8em;bottom:{{#expr:{{{1|10}}}/5+8}}em;height:{{#expr:({{{2|20}}}-{{{1|10}}})/5}}em;">&nbsp;</div>
+
<div style="height:0em;bottom:8em;width:1.6em;position:absolute;left:0;border-bottom:dotted 1px #cba;padding:0;margin:0">&nbsp;</div>
<div style="color:red;position:absolute;bottom:{{#expr:{{{2|20}}}/5+8}}em; left:0;width:1.6em;height:1.5em;text-align:center;"><span style="font-size:80%">{{#ifexpr:({{{2|20}}}*1.8+32 round 0) < 0 |−}}{{#expr:abs ({{{2|20}}}*1.8+32 round 0)}}</span></div>
+
<div style="overflow:hidden;background:#e44;-webkit-print-color-adjust:exact;color-adjust:exact;position:absolute;left:.4em;width:0.8em;bottom:{{#expr:{{{1|10}}}/5+8}}em;height:{{#expr:({{{2|20}}}-{{{1|10}}})/5}}em;">&nbsp;</div>
<div style="color:red;position:absolute;bottom:{{#expr:{{{1|10}}}/5+6.5}}em; left:0;width:1.6em;height:1.5em;text-align:center;"><span style="font-size:80%">{{#ifexpr:({{{1|10}}}*1.8+32 round 0) < 0 |−}}{{#expr:abs ({{{1|10}}}*1.8+32 round 0)}}</span></div>
+
<div style="color:red;position:absolute;bottom:{{#expr:{{{2|20}}}/5+8}}em; left:0;width:1.6em;height:1.5em;text-align:center"><span style="font-size:80%">{{#ifexpr:({{{2|20}}}*1.8+32 round 0) < 0 |−}}{{#expr:abs ({{{2|20}}}*1.8+32 round 0)}}</span></div>
</div><noinclude>
+
<div style="color:red;position:absolute;bottom:{{#expr:{{{1|10}}}/5+6.5}}em; left:0;width:1.6em;height:1.5em;text-align:center"><span style="font-size:80%">{{#ifexpr:({{{1|10}}}*1.8+32 round 0) < 0 |−}}{{#expr:abs ({{{1|10}}}*1.8+32 round 0)}}</span></div>
 
+
</div>
[[ar:قالب:خارطة مناخ/ف]]
 
[[bn:টেমপ্লেট:Climate chart/fahrenheit column]]
 
[[ca:Plantilla:Diagrama climàtic/columna fahrenheit]]
 
[[cy:Nodyn:Climate chart/fahrenheit column]]
 
[[es:Plantilla:Climograma/columna fahrenheit]]
 
[[fa:الگو:Climate chart/fahrenheit column]]
 
[[hif:Template:Climate chart/fahrenheit column]]
 
[[gu:ઢાંચો:Climate chart/fahrenheit column]]
 
[[id:Templat:Climate chart/fahrenheit column]]
 
[[jv:Cithakan:Climate chart/fahrenheit column]]
 
[[mk:Шаблон:Climate chart/fahrenheit column]]
 
[[ms:Templat:Climate chart/fahrenheit column]]
 
[[ne:ढाँचा:Climate chart/fahrenheit column]]
 
[[new:Template:Climate chart/fahrenheit column]]
 
[[or:ଛାଞ୍ଚ:Climate chart/fahrenheit column]]
 
[[sl:Predloga:Climate chart/fahrenheit column]]
 
[[ta:வார்ப்புரு:Climate chart/fahrenheit column]]
 
[[ur:انچہ:Climate chart/fahrenheit column]]
 
[[vi:Bản mẫu:Biểu đồ khí hậu/Thang độ F]]
 
[[yo:Àdàkọ:Climate chart/fahrenheit column]]
 
</noinclude>
 

Latest revision as of 15:20, 7 August 2018

 
 
3.1
 
 
68
50