Difference between revisions of "Template:TempatureTableEntry"
Jump to navigation
Jump to search
(Fix for entry to match name system.) |
|||
(23 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{{ | + | <includeonly><div style = "display:none">{{ |
#if:{{{5|}}}|{{#vardefine:tempInput2|{{{5}}}}}|{{#vardefine:tempInput2|0}}}}{{ | #if:{{{5|}}}|{{#vardefine:tempInput2|{{{5}}}}}|{{#vardefine:tempInput2|0}}}}{{ | ||
#if:{{{7|}}}|{{#vardefine:tempInput3|{{{7}}}}}|{{#vardefine:tempInput3|0}}}}{{ | #if:{{{7|}}}|{{#vardefine:tempInput3|{{{7}}}}}|{{#vardefine:tempInput3|0}}}}{{ | ||
#if:{{{9|}}}|{{#vardefine:tempInput4|{{{9}}}}}|{{#vardefine:tempInput4|0}}}} | #if:{{{9|}}}|{{#vardefine:tempInput4|{{{9}}}}}|{{#vardefine:tempInput4|0}}}} | ||
+ | </div> | ||
<tr> | <tr> | ||
− | <td style="text-align: | + | <td style="text-align:left">{{ItemIcon|Ingot {{{1|}}}|{{{2|}}}}} [[{{{1}}}]] </td><!--Warming-->{{ |
− | #ifexpr: {{{3|}}} >= 16 | {{#vardefine:tempExact| | + | #ifexpr: {{{3|}}} >= 16 | {{#vardefine:tempExact|1}} }}{{ |
− | #ifexpr: {{{3|}}} >= 32 | {{#vardefine:tempExact| | + | #ifexpr: {{{3|}}} >= 32 | {{#vardefine:tempExact|2}} }}{{ |
− | #ifexpr: {{{3|}}} >= 48 | {{#vardefine:tempExact| | + | #ifexpr: {{{3|}}} >= 48 | {{#vardefine:tempExact|3}} }}{{ |
− | #ifexpr: {{{3|}}} >= 64 | {{#vardefine:tempExact| | + | #ifexpr: {{{3|}}} >= 64 | {{#vardefine:tempExact|4}} }}{{ |
− | #ifexpr: {{{3|}}} >= 80 | {{#vardefine:tempExact| | + | #ifexpr: {{{3|}}} >= 80 | {{#vardefine:tempExact|5}} }}<!--Hot-->{{ |
− | #ifexpr: {{{3|}}} >= 106 | {{#vardefine:tempExact| | + | #ifexpr: {{{3|}}} >= 106 | {{#vardefine:tempExact|6}} }}{{ |
− | #ifexpr: {{{3|}}} >= 132 | {{#vardefine:tempExact| | + | #ifexpr: {{{3|}}} >= 132 | {{#vardefine:tempExact|7}} }}{{ |
− | #ifexpr: {{{3|}}} >= 158 | {{#vardefine:tempExact| | + | #ifexpr: {{{3|}}} >= 158 | {{#vardefine:tempExact|8}} }}{{ |
− | #ifexpr: {{{3|}}} >= 184 | {{#vardefine:tempExact| | + | #ifexpr: {{{3|}}} >= 184 | {{#vardefine:tempExact|9}} }}{{ |
− | #ifexpr: {{{3|}}} >= 210 | {{#vardefine:tempExact| | + | #ifexpr: {{{3|}}} >= 210 | {{#vardefine:tempExact|10}} }}<!--Very Hot-->{{ |
− | #ifexpr: {{{3|}}} >= 264 | {{#vardefine:tempExact| | + | #ifexpr: {{{3|}}} >= 264 | {{#vardefine:tempExact|11}} }}{{ |
− | #ifexpr: {{{3|}}} >= 318 | {{#vardefine:tempExact| | + | #ifexpr: {{{3|}}} >= 318 | {{#vardefine:tempExact|12}} }}{{ |
− | #ifexpr: {{{3|}}} >= 372 | {{#vardefine:tempExact| | + | #ifexpr: {{{3|}}} >= 372 | {{#vardefine:tempExact|13}} }}{{ |
− | #ifexpr: {{{3|}}} >= 426 | {{#vardefine:tempExact| | + | #ifexpr: {{{3|}}} >= 426 | {{#vardefine:tempExact|14}} }}{{ |
− | #ifexpr: {{{3|}}} >= 480 | {{#vardefine:tempExact| | + | #ifexpr: {{{3|}}} >= 480 | {{#vardefine:tempExact|15}} }}<!--Faint Red-->{{ |
− | #ifexpr: {{{3|}}} >= 500 | {{#vardefine:tempExact| | + | #ifexpr: {{{3|}}} >= 500 | {{#vardefine:tempExact|16}} }}{{ |
− | #ifexpr: {{{3|}}} >= 520 | {{#vardefine:tempExact| | + | #ifexpr: {{{3|}}} >= 520 | {{#vardefine:tempExact|17}} }}{{ |
− | #ifexpr: {{{3|}}} >= 540 | {{#vardefine:tempExact| | + | #ifexpr: {{{3|}}} >= 540 | {{#vardefine:tempExact|18}} }}{{ |
− | #ifexpr: {{{3|}}} >= 560 | {{#vardefine:tempExact| | + | #ifexpr: {{{3|}}} >= 560 | {{#vardefine:tempExact|19}} }}{{ |
− | #ifexpr: {{{3|}}} >= 580 | {{#vardefine:tempExact| | + | #ifexpr: {{{3|}}} >= 580 | {{#vardefine:tempExact|20}} }}<!--Dark Red-->{{ |
− | #ifexpr: {{{3|}}} >= 610 | {{#vardefine:tempExact| | + | #ifexpr: {{{3|}}} >= 610 | {{#vardefine:tempExact|21}} }}{{ |
− | #ifexpr: {{{3|}}} >= 640 | {{#vardefine:tempExact| | + | #ifexpr: {{{3|}}} >= 640 | {{#vardefine:tempExact|22}} }}{{ |
− | #ifexpr: {{{3|}}} >= 670 | {{#vardefine:tempExact| | + | #ifexpr: {{{3|}}} >= 670 | {{#vardefine:tempExact|23}} }}{{ |
− | #ifexpr: {{{3|}}} >= 700 | {{#vardefine:tempExact| | + | #ifexpr: {{{3|}}} >= 700 | {{#vardefine:tempExact|24}} }}{{ |
− | #ifexpr: {{{3|}}} >= 730 | {{#vardefine:tempExact| | + | #ifexpr: {{{3|}}} >= 730 | {{#vardefine:tempExact|25}} }}<!--Bright Red-->{{ |
− | #ifexpr: {{{3|}}} >= 770 | {{#vardefine:tempExact| | + | #ifexpr: {{{3|}}} >= 770 | {{#vardefine:tempExact|26}} }}{{ |
− | #ifexpr: {{{3|}}} >= 810 | {{#vardefine:tempExact| | + | #ifexpr: {{{3|}}} >= 810 | {{#vardefine:tempExact|27}} }}{{ |
− | #ifexpr: {{{3|}}} >= 850 | {{#vardefine:tempExact| | + | #ifexpr: {{{3|}}} >= 850 | {{#vardefine:tempExact|28}} }}{{ |
− | #ifexpr: {{{3|}}} >= 890 | {{#vardefine:tempExact| | + | #ifexpr: {{{3|}}} >= 890 | {{#vardefine:tempExact|29}} }}{{ |
− | #ifexpr: {{{3|}}} >= 930 | {{#vardefine:tempExact| | + | #ifexpr: {{{3|}}} >= 930 | {{#vardefine:tempExact|30}} }}<!--Orange-->{{ |
− | #ifexpr: {{{3|}}} >= 964 | {{#vardefine:tempExact| | + | #ifexpr: {{{3|}}} >= 964 | {{#vardefine:tempExact|31}} }}{{ |
− | #ifexpr: {{{3|}}} >= 998 | {{#vardefine:tempExact| | + | #ifexpr: {{{3|}}} >= 998 | {{#vardefine:tempExact|32}} }}{{ |
− | #ifexpr: {{{3|}}} >= 1032 | {{#vardefine:tempExact| | + | #ifexpr: {{{3|}}} >= 1032 | {{#vardefine:tempExact|33}} }}{{ |
− | #ifexpr: {{{3|}}} >= 1066 | {{#vardefine:tempExact| | + | #ifexpr: {{{3|}}} >= 1066 | {{#vardefine:tempExact|34}} }}{{ |
− | #ifexpr: {{{3|}}} >= 1100 | {{#vardefine:tempExact| | + | #ifexpr: {{{3|}}} >= 1100 | {{#vardefine:tempExact|35}} }}<!--Yellow-->{{ |
− | #ifexpr: {{{3|}}} >= 1140 | {{#vardefine:tempExact| | + | #ifexpr: {{{3|}}} >= 1140 | {{#vardefine:tempExact|36}} }}{{ |
− | #ifexpr: {{{3|}}} >= 1180 | {{#vardefine:tempExact| | + | #ifexpr: {{{3|}}} >= 1180 | {{#vardefine:tempExact|37}} }}{{ |
− | #ifexpr: {{{3|}}} >= 1220 | {{#vardefine:tempExact| | + | #ifexpr: {{{3|}}} >= 1220 | {{#vardefine:tempExact|38}} }}{{ |
− | #ifexpr: {{{3|}}} >= 1260 | {{#vardefine:tempExact| | + | #ifexpr: {{{3|}}} >= 1260 | {{#vardefine:tempExact|39}} }}{{ |
− | #ifexpr: {{{3|}}} >= 1300 | {{#vardefine:tempExact| | + | #ifexpr: {{{3|}}} >= 1300 | {{#vardefine:tempExact|40}} }}<!--Yellow White-->{{ |
− | #ifexpr: {{{3|}}} >= 1320 | {{#vardefine:tempExact| | + | #ifexpr: {{{3|}}} >= 1320 | {{#vardefine:tempExact|41}} }}{{ |
− | #ifexpr: {{{3|}}} >= 1340 | {{#vardefine:tempExact| | + | #ifexpr: {{{3|}}} >= 1340 | {{#vardefine:tempExact|42}} }}{{ |
− | #ifexpr: {{{3|}}} >= 1360 | {{#vardefine:tempExact| | + | #ifexpr: {{{3|}}} >= 1360 | {{#vardefine:tempExact|43}} }}{{ |
− | #ifexpr: {{{3|}}} >= 1380 | {{#vardefine:tempExact| | + | #ifexpr: {{{3|}}} >= 1380 | {{#vardefine:tempExact|44}} }}{{ |
− | #ifexpr: {{{3|}}} >= 1400 | {{#vardefine:tempExact| | + | #ifexpr: {{{3|}}} >= 1400 | {{#vardefine:tempExact|45}} }}<!--White-->{{ |
− | #ifexpr: {{{3|}}} >= 1420 | {{#vardefine:tempExact| | + | #ifexpr: {{{3|}}} >= 1420 | {{#vardefine:tempExact|46}} }}{{ |
− | #ifexpr: {{{3|}}} >= 1440 | {{#vardefine:tempExact| | + | #ifexpr: {{{3|}}} >= 1440 | {{#vardefine:tempExact|47}} }}{{ |
− | #ifexpr: {{{3|}}} >= 1460 | {{#vardefine:tempExact| | + | #ifexpr: {{{3|}}} >= 1460 | {{#vardefine:tempExact|48}} }}{{ |
− | #ifexpr: {{{3|}}} >= 1480 | {{#vardefine:tempExact| | + | #ifexpr: {{{3|}}} >= 1480 | {{#vardefine:tempExact|49}} }}{{ |
− | #ifexpr: {{{3|}}} >= 1500 | {{#vardefine:tempExact| | + | #ifexpr: {{{3|}}} >= 1500 | {{#vardefine:tempExact|50}} }}<!--Brilliant White-->{{ |
− | #ifexpr: {{{3|}}} >= 1520 | {{#vardefine:tempExact| | + | #ifexpr: {{{3|}}} >= 1520 | {{#vardefine:tempExact|51}} }}{{ |
− | #ifexpr: {{{3|}}} >= 1540 | {{#vardefine:tempExact| | + | #ifexpr: {{{3|}}} >= 1540 | {{#vardefine:tempExact|52}} }}{{ |
− | #ifexpr: {{{3|}}} >= 1560 | {{#vardefine:tempExact| | + | #ifexpr: {{{3|}}} >= 1560 | {{#vardefine:tempExact|53}} }}{{ |
− | #ifexpr: {{{3|}}} >= 1580 | {{#vardefine:tempExact| | + | #ifexpr: {{{3|}}} >= 1580 | {{#vardefine:tempExact|54}} }}{{ |
− | #ifexpr: {{{3|}}} >= 1601 | {{#vardefine:tempExact| | + | #ifexpr: {{{3|}}} >= 1601 | {{#vardefine:tempExact|55}} }} |
− | <td colspan="{{#var:tempExact}}" bgcolor="{{{4}}}" style="text-align:center"> </td><!--Warming-->{{ | + | <td colspan="{{#var:tempExact}}" bgcolor="{{{4}}}" style="text-align:center; color:#000000;"> {{{3}}}° </td><!--Warming-->{{ |
#ifexpr: {{#var:tempInput2}} >= 16 | {{#vardefine:tempExact2|1}} }}{{ | #ifexpr: {{#var:tempInput2}} >= 16 | {{#vardefine:tempExact2|1}} }}{{ | ||
#ifexpr: {{#var:tempInput2}} >= 32 | {{#vardefine:tempExact2|2}} }}{{ | #ifexpr: {{#var:tempInput2}} >= 32 | {{#vardefine:tempExact2|2}} }}{{ | ||
Line 116: | Line 117: | ||
#ifexpr: {{#var:tempInput2}} >= 1580 | {{#vardefine:tempExact2|54}} }}{{ | #ifexpr: {{#var:tempInput2}} >= 1580 | {{#vardefine:tempExact2|54}} }}{{ | ||
#ifexpr: {{#var:tempInput2}} >= 1601 | {{#vardefine:tempExact2|55}} }}{{ | #ifexpr: {{#var:tempInput2}} >= 1601 | {{#vardefine:tempExact2|55}} }}{{ | ||
− | #ifeq: {{#var:tempInput2}} |0| |<td colspan=" | + | #vardefine:renderExact2|{{#expr: {{#var:tempExact2}} - {{#var:tempExact}} }} }}{{ |
+ | #ifeq: {{#var:tempInput2}} |0| |<td colspan="{{#var:renderExact2}}" bgcolor="{{{6}}}" style="text-align:center; color:#000000;"> {{#var:tempInput2}}° </td> }}<!--Warming-->{{ | ||
#ifexpr: {{#var:tempInput3}} >= 16 | {{#vardefine:tempExact3|1}} }}{{ | #ifexpr: {{#var:tempInput3}} >= 16 | {{#vardefine:tempExact3|1}} }}{{ | ||
#ifexpr: {{#var:tempInput3}} >= 32 | {{#vardefine:tempExact3|2}} }}{{ | #ifexpr: {{#var:tempInput3}} >= 32 | {{#vardefine:tempExact3|2}} }}{{ | ||
Line 172: | Line 174: | ||
#ifexpr: {{#var:tempInput3}} >= 1580 | {{#vardefine:tempExact3|54}} }}{{ | #ifexpr: {{#var:tempInput3}} >= 1580 | {{#vardefine:tempExact3|54}} }}{{ | ||
#ifexpr: {{#var:tempInput3}} >= 1601 | {{#vardefine:tempExact3|55}} }}{{ | #ifexpr: {{#var:tempInput3}} >= 1601 | {{#vardefine:tempExact3|55}} }}{{ | ||
− | # | + | #vardefine:renderExact3|{{#expr: {{#var:tempExact3}} - {{#var:renderExact2}} - {{#var:tempExact}} }} }}{{ |
+ | #ifeq: {{#var:tempInput3}} |0| |<td colspan="{{#var:renderExact3}}" bgcolor="{{{8}}}" style="text-align:center; color:#000000;"> {{#var:tempInput3}}° </td> }}<!--Warming-->{{ | ||
#ifexpr: {{#var:tempInput4}} >= 16 | {{#vardefine:tempExact4|1}} }}{{ | #ifexpr: {{#var:tempInput4}} >= 16 | {{#vardefine:tempExact4|1}} }}{{ | ||
#ifexpr: {{#var:tempInput4}} >= 32 | {{#vardefine:tempExact4|2}} }}{{ | #ifexpr: {{#var:tempInput4}} >= 32 | {{#vardefine:tempExact4|2}} }}{{ | ||
Line 228: | Line 231: | ||
#ifexpr: {{#var:tempInput4}} >= 1580 | {{#vardefine:tempExact4|54}} }}{{ | #ifexpr: {{#var:tempInput4}} >= 1580 | {{#vardefine:tempExact4|54}} }}{{ | ||
#ifexpr: {{#var:tempInput4}} >= 1601 | {{#vardefine:tempExact4|55}} }}{{ | #ifexpr: {{#var:tempInput4}} >= 1601 | {{#vardefine:tempExact4|55}} }}{{ | ||
− | # | + | #vardefine:renderExact4|{{#expr: {{#var:tempExact4}} - {{#var:renderExact3}} - {{#var:renderExact2}} - {{#var:tempExact}} }} }}{{ |
+ | #ifeq: {{#var:tempInput4}} |0| |<td colspan="{{#var:renderExact4}}" bgcolor="{{{10}}}" style="text-align:center; color:#000000;"> {{#var:tempInput4}}° </td> }} | ||
</tr></includeonly><noinclude> | </tr></includeonly><noinclude> | ||
− | How to use: | + | How to use: This template needs a [[Template:TempatureTableHead]] to work as it provides the category parts required. This is just an entry into the table! This will automatically covert number values into heat colors, only use the number values! 2-4 are optional. |
− | <code><nowiki>{{TempatureTableEntry|Item/Block Name|Page Link|Temp 1|Temp 1 color|Temp 2|Temp 2 color|Temp 3|Temp 3 color|Temp 4|Temp 4 color}}</nowiki></code> | + | |
+ | <code><nowiki>{{TempatureTableEntry|Item/Block Name|Page Link|Temp 1|Temp 1 color|Temp 2|Temp 2 color|Temp 3|Temp 3 color|Temp 4|Temp 4 color}}</nowiki></code> | ||
+ | |||
+ | '''MAKE SURE TO CLOSE THE TABLE WITH <nowiki> </table> </nowiki> OR IT WILL BREAK!''' | ||
</noinclude> | </noinclude> |
Latest revision as of 06:02, 12 June 2020
How to use: This template needs a Template:TempatureTableHead to work as it provides the category parts required. This is just an entry into the table! This will automatically covert number values into heat colors, only use the number values! 2-4 are optional.
{{TempatureTableEntry|Item/Block Name|Page Link|Temp 1|Temp 1 color|Temp 2|Temp 2 color|Temp 3|Temp 3 color|Temp 4|Temp 4 color}}
MAKE SURE TO CLOSE THE TABLE WITH </table> OR IT WILL BREAK!