Difference between revisions of "Template:TempatureTableEntry"
Jump to navigation
Jump to search
Line 136: | Line 136: | ||
{{#ifexpr: {{{5|}}} >= 1580 | {{#vardefine:tempExact|54}} }} | {{#ifexpr: {{{5|}}} >= 1580 | {{#vardefine:tempExact|54}} }} | ||
{{#ifexpr: {{{5|}}} >= 1601 | {{#vardefine:tempExact|55}} }} | {{#ifexpr: {{{5|}}} >= 1601 | {{#vardefine:tempExact|55}} }} | ||
− | <td colspan="{{#expr {{#var:tempExact2}} - {{#var:tempExact}} }}" bgcolor="{{{6}}}" style="text-align:center"> </td> | + | {{#ifeq: {{{5|}}} |0| | |
+ | <td colspan="{{#expr {{#var:tempExact2}} - {{#var:tempExact}} }}" bgcolor="{{{6}}}" style="text-align:center"> </td> }} | ||
<!--Warming--> | <!--Warming--> | ||
{{#ifexpr: {{{7|}}} >= 16 | {{#vardefine:tempExact|1}} }} | {{#ifexpr: {{{7|}}} >= 16 | {{#vardefine:tempExact|1}} }} | ||
Line 203: | Line 204: | ||
{{#ifexpr: {{{7|}}} >= 1580 | {{#vardefine:tempExact|54}} }} | {{#ifexpr: {{{7|}}} >= 1580 | {{#vardefine:tempExact|54}} }} | ||
{{#ifexpr: {{{7|}}} >= 1601 | {{#vardefine:tempExact|55}} }} | {{#ifexpr: {{{7|}}} >= 1601 | {{#vardefine:tempExact|55}} }} | ||
− | <td colspan="{{#expr {{#var:tempExact3}} - {{#var:tempExact2}} - {{#var:tempExact}} }}" bgcolor="{{{8}}}" style="text-align:center"> </td> | + | {{#ifeq: {{{7|}}} |0| | |
+ | <td colspan="{{#expr {{#var:tempExact3}} - {{#var:tempExact2}} - {{#var:tempExact}} }}" bgcolor="{{{8}}}" style="text-align:center"> </td> }} | ||
<!--Warming--> | <!--Warming--> | ||
{{#ifexpr: {{{9|}}} >= 16 | {{#vardefine:tempExact|1}} }} | {{#ifexpr: {{{9|}}} >= 16 | {{#vardefine:tempExact|1}} }} | ||
Line 270: | Line 272: | ||
{{#ifexpr: {{{9|}}} >= 1580 | {{#vardefine:tempExact|54}} }} | {{#ifexpr: {{{9|}}} >= 1580 | {{#vardefine:tempExact|54}} }} | ||
{{#ifexpr: {{{9|}}} >= 1601 | {{#vardefine:tempExact|55}} }} | {{#ifexpr: {{{9|}}} >= 1601 | {{#vardefine:tempExact|55}} }} | ||
− | <td colspan="{{#expr {{#var:tempExact4}} - {{#var:tempExact3}} - {{#var:tempExact2}} - {{#var:tempExact}} }}" bgcolor="{{{10}}}" style="text-align:center"> </td> | + | {{#ifeq: {{{9|}}} |0| | |
+ | <td colspan="{{#expr {{#var:tempExact4}} - {{#var:tempExact3}} - {{#var:tempExact2}} - {{#var:tempExact}} }}" bgcolor="{{{10}}}" style="text-align:center"> </td> }} | ||
</tr></includeonly><noinclude> | </tr></includeonly><noinclude> | ||
How to use: Template needs a [[Template:TempatureTableHead]] to work as it provides the category parts required. This is just an entry into the table. | How to use: Template needs a [[Template:TempatureTableHead]] to work as it provides the category parts required. This is just an entry into the table. | ||
<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> 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> This will automatically covert number values into heat colors, only use the number values! 2-4 are optional. | ||
</noinclude> | </noinclude> |
Revision as of 00:01, 17 October 2019
How to use: Template needs a Template:TempatureTableHead to work as it provides the category parts required. This is just an entry into the table.
{{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}}
This will automatically covert number values into heat colors, only use the number values! 2-4 are optional.