Difference between revisions of "Template:TempatureTableEntry"
Jump to navigation
Jump to search
Line 60: | Line 60: | ||
#ifexpr: {{{3|}}} >= 1580 | {{#vardefine:tempExact|55}} }}{{ | #ifexpr: {{{3|}}} >= 1580 | {{#vardefine:tempExact|55}} }}{{ | ||
#ifexpr: {{{3|}}} >= 1601 | {{#vardefine:tempExact|56}} }} | #ifexpr: {{{3|}}} >= 1601 | {{#vardefine:tempExact|56}} }} | ||
− | <td colspan="{{#var:tempExact}}" bgcolor="{{{4}}}" style="text-align:center"> </td><!--Warming-->{{ | + | <td colspan="{{#var:tempExact}}" bgcolor="{{{4}}}" style="text-align:center"> Max Temperature:{{#var:tempInput}} </td><!--Warming-->{{ |
#ifexpr: {{#var:tempInput2}} >= 16 | {{#vardefine:tempExact2|1}} }}{{ | #ifexpr: {{#var:tempInput2}} >= 16 | {{#vardefine:tempExact2|1}} }}{{ | ||
#ifexpr: {{#var:tempInput2}} >= 32 | {{#vardefine:tempExact2|2}} }}{{ | #ifexpr: {{#var:tempInput2}} >= 32 | {{#vardefine:tempExact2|2}} }}{{ | ||
Line 116: | Line 116: | ||
#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}} }}{{ | ||
− | #ifeq: {{#var:tempInput2}} |0| |<td colspan="{{#expr: {{#var:tempExact2}} - {{#var:tempExact}} }}" bgcolor="{{{6}}}" style="text-align:center"> </td> }}<!--Warming-->{{ | + | #ifeq: {{#var:tempInput2}} |0| |<td colspan="{{#expr: {{#var:tempExact2}} - {{#var:tempExact}} }}" bgcolor="{{{6}}}" style="text-align:center"> Max Temperature:{{#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}} }}{{ | ||
Line 172: | Line 172: | ||
#ifexpr: {{#var:tempInput3}} >= 1580 | {{#vardefine:tempExact3|54}} }}{{ | #ifexpr: {{#var:tempInput3}} >= 1580 | {{#vardefine:tempExact3|54}} }}{{ | ||
#ifexpr: {{#var:tempInput3}} >= 1601 | {{#vardefine:tempExact3|55}} }}{{ | #ifexpr: {{#var:tempInput3}} >= 1601 | {{#vardefine:tempExact3|55}} }}{{ | ||
− | #ifeq: {{#var:tempInput3}} |0| |<td colspan="{{#expr: {{#var:tempExact3}} - {{#var:tempExact2}} - {{#var:tempExact}} }}" bgcolor="{{{8}}}" style="text-align:center"> </td> }}<!--Warming-->{{ | + | #ifeq: {{#var:tempInput3}} |0| |<td colspan="{{#expr: {{#var:tempExact3}} - {{#var:tempExact2}} - {{#var:tempExact}} }}" bgcolor="{{{8}}}" style="text-align:center"> Max Temperature:{{#var:tempInput3}} </td> }}<!--Warming-->{{ |
#ifexpr: {{#var:tempInput4}} >= 16 | {{#vardefine:tempExact4|1}} }}{{ | #ifexpr: {{#var:tempInput4}} >= 16 | {{#vardefine:tempExact4|1}} }}{{ | ||
#ifexpr: {{#var:tempInput4}} >= 32 | {{#vardefine:tempExact4|2}} }}{{ | #ifexpr: {{#var:tempInput4}} >= 32 | {{#vardefine:tempExact4|2}} }}{{ | ||
Line 228: | Line 228: | ||
#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="{{#expr: {{#var:tempExact4}} - {{#var:tempExact3}} - {{#var:tempExact2}} - {{#var:tempExact}} }}" bgcolor="{{{10}}}" style="text-align:center"> </td> }} | + | #ifeq: {{#var:tempInput4}} |0| |<td colspan="{{#expr: {{#var:tempExact4}} - {{#var:tempExact3}} - {{#var:tempExact2}} - {{#var:tempExact}} }}" bgcolor="{{{10}}}" style="text-align:center"> Max Temperature:{{#var:tempInput4}} </td> }} |
</tr></includeonly><noinclude> | </tr></includeonly><noinclude> | ||
− | How to use: | + | 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. |
− | <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> | + | |
+ | <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> | ||
+ | |||
+ | '''MAKE SURE TO CLOSE THE TABLE WITH <nowiki> </table> </nowiki> OR IT WILL BREAK!''' | ||
</noinclude> | </noinclude> |
Revision as of 02:59, 17 October 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!