Difference between revisions of "Template:TempatureTableEntry"
Jump to navigation
Jump to search
Line 70: | Line 70: | ||
<td colspan="{{#var:tempExact}}" bgcolor="{{{4}}}" style="text-align:center"> </td> | <td colspan="{{#var:tempExact}}" bgcolor="{{{4}}}" style="text-align:center"> </td> | ||
}} | }} | ||
− | {{#if: {{{5|}}} | | + | {{#if: {{{5|}}} |<!--Warming-->{{#ifexpr: {{{5|}}} >= 16 | {{#vardefine:tempExact|1}} }} |
− | <!--Warming--> | ||
− | {{#ifexpr: {{{5|}}} >= 16 | {{#vardefine:tempExact|1}} }} | ||
{{#ifexpr: {{{5|}}} >= 32 | {{#vardefine:tempExact|2}} }} | {{#ifexpr: {{{5|}}} >= 32 | {{#vardefine:tempExact|2}} }} | ||
{{#ifexpr: {{{5|}}} >= 48 | {{#vardefine:tempExact|3}} }} | {{#ifexpr: {{{5|}}} >= 48 | {{#vardefine:tempExact|3}} }} | ||
Line 137: | Line 135: | ||
{{#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 colspan="{{#expr {{#var:tempExact2}} - {{#var:tempExact}} }}" bgcolor="{{{6}}}" 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 22:24, 16 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.