Difference between revisions of "Template:TemperatureScale"

From TerraFirmaCraft Plus Wiki
Jump to: navigation, search
m
m
Line 1: Line 1:
<!-- WIP. gonna fix this tomorrow -->
+
<!-- WIP. gonna fix this tomorrow, stars become dots on a new line for some reason but it otherwise seems to function -->
  
{{#ifexpr: {{{1}}} < 80 | Warming{{#sub:"*****"|1|{{#expr: floor({{{1}}}/16)}} }}
+
{{#ifexpr: {{{1}}} < 80 | Warming{{#sub:*****|0|{{#expr: floor({{{1}}}/16)}} }}
|{{#ifexpr: {{{1}}} < 210 | Hot  
+
|{{#ifexpr: {{{1}}} < 210 | Hot {{#sub:*****|0|{{#expr: floor(({{{1}}} - 80) / 26)}} }}
|{{#ifexpr: {{{1}}} < 480 | Very Hot  
+
|{{#ifexpr: {{{1}}} < 480 | Very Hot{{#sub:*****|0|{{#expr: floor(({{{1}}} - 210) / 54)}} }}
|{{#ifexpr: {{{1}}} < 580 | Faint Red  
+
|{{#ifexpr: {{{1}}} < 580 | Faint Red{{#sub:*****|0|{{#expr: floor(({{{1}}} - 480) / 20)}} }}
|{{#ifexpr: {{{1}}} < 730| Dark Red  
+
|{{#ifexpr: {{{1}}} < 730| Dark Red{{#sub:*****|0|{{#expr: floor(({{{1}}} - 580) / 30)}} }}
|{{#ifexpr: {{{1}}} < 930 | Bright Red  
+
|{{#ifexpr: {{{1}}} < 930 | Bright Red{{#sub:*****|0|{{#expr: floor(({{{1}}} - 930) / 40)}} }}
|{{#ifexpr: {{{1}}} < 1100 | Orange  
+
|{{#ifexpr: {{{1}}} < 1100 | Orange{{#sub:*****|0|{{#expr: floor(({{{1}}} - 930) / 34)}} }}
|{{#ifexpr: {{{1}}} < 1300 | Yellow  
+
|{{#ifexpr: {{{1}}} < 1300 | Yellow{{#sub:*****|0|{{#expr: floor(({{{1}}} - 1100) / 40)}} }}
|{{#ifexpr: {{{1}}} < 1400 | Yellow White  
+
|{{#ifexpr: {{{1}}} < 1400 | Yellow White{{#sub:*****|0|{{#expr: floor(({{{1}}} - 1300) / 20)}} }}
|{{#ifexpr: {{{1}}} < 1500 | White | Brilliant White }} }} }} }} }} }} }} }} }} }}
+
|{{#ifexpr: {{{1}}} < 1500 | White | Brilliant White{{#sub:*****|0|{{#expr: floor(({{{1}}} - 1500) / 20)}} }} }} }} }} }} }} }} }} }} }} }}

Revision as of 03:11, 3 November 2020


Expression error: Unrecognized punctuation character "{".