Difference between revisions of "Template:TempatureTableEntry"
Jump to navigation
Jump to search
Line 31: | Line 31: | ||
{{#ifexpr: {{{3|}}} <= 700 | {{#vardefine:tempExact|24}} }} | {{#ifexpr: {{{3|}}} <= 700 | {{#vardefine:tempExact|24}} }} | ||
{{#ifexpr: {{{3|}}} <= 730 | {{#vardefine:tempExact|25}} }} | {{#ifexpr: {{{3|}}} <= 730 | {{#vardefine:tempExact|25}} }} | ||
− | <!--Bright Red--> | + | <!--Bright Red--> |
{{#ifexpr: {{{3|}}} <= 770 | {{#vardefine:tempExact|26}} }} | {{#ifexpr: {{{3|}}} <= 770 | {{#vardefine:tempExact|26}} }} | ||
{{#ifexpr: {{{3|}}} <= 810 | {{#vardefine:tempExact|27}} }} | {{#ifexpr: {{{3|}}} <= 810 | {{#vardefine:tempExact|27}} }} | ||
Line 135: | 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}} }}" style="background: {{{6}}} | + | <td>colspan="{{#expr {{#var:tempExact2}} - {{#var:tempExact}} }}" style="background: "{{{6}}}" align="center"</td> |
}} | }} | ||
{{#if: {{{7|}}} | | {{#if: {{{7|}}} | | ||
Line 204: | 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}} }}" style="background: {{{8}}} | + | <td>colspan="{{#expr {{#var:tempExact3}} - {{#var:tempExact2}} - {{#var:tempExact}} }}" style="background: "{{{8}}}" align="center"</td> |
}} | }} | ||
{{#if: {{{9}}} | | {{#if: {{{9}}} | | ||
Line 273: | Line 273: | ||
{{#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}} }}" style="background: {{{10}}};" align="center"</td> | + | <td>colspan="{{#expr {{#var:tempExact4}} - {{#var:tempExact3}} - {{#var:tempExact2}} - {{#var:tempExact}} }}" style="background: "{{{10}}};" align="center"</td> |
}} | }} | ||
</tr></includeonly> | </tr></includeonly> |
Revision as of 21:33, 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.