Difference between revisions of "Template:TempatureTableEntry"
Jump to navigation
Jump to search
Line 117: | 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}} }}{{ | ||
− | # | + | #vardefine:renderExact2|{{#expr: {{#var:tempExact2}} - {{#var:tempExact}} }} }}{{ |
+ | #ifeq: {{#var:tempInput2}} |0| |<td colspan="{{#var:renderExact2}}" bgcolor="{{{6}}}" style="text-align:center"> {{#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}} }}{{ |
Revision as of 04:30, 2 December 2019
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!