Difference between revisions of "Template:TempatureTableEntry"
Jump to navigation
Jump to search
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:left">{{ItemIcon|{{{1|}}}|{{{2|}}}}} {{{1}}} </td><!--Warming-->{{ | <td style="text-align:left">{{ItemIcon|{{{1|}}}|{{{2|}}}}} {{{1}}} </td><!--Warming-->{{ | ||
Line 228: | Line 229: | ||
#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}} }}{{ | ||
− | #ifeq: {{#var:tempInput4}} |0| |<td colspan="{{#vardefine:renderExact4|{{#expr: {{#var:tempExact4}} - {{#var:renderExact3}} - {{#var:renderExact2}} - {{#var:tempExact}} }}" bgcolor="{{{10}}}" style="text-align:center"> {{#var:tempInput4}}° </td> }} | + | #ifeq: {{#var:tempInput4}} |0| |<td colspan="{{#vardefine:renderExact4|{{#expr: {{#var:tempExact4}} - {{#var:renderExact3}} - {{#var:renderExact2}} - {{#var:tempExact}} }} }}" bgcolor="{{{10}}}" style="text-align:center"> {{#var:tempInput4}}° </td> }} |
</tr></includeonly><noinclude> | </tr></includeonly><noinclude> | ||
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. | 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. |
Revision as of 03:09, 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!