Difference between revisions of "Template:TempatureTableEntry"

From TFC:TNG
Jump to navigation Jump to search
Line 1: Line 1:
 
<includeonly><tr>{{#var:tempExact}} {{#var:tempExact2}} {{#var:tempExact3}} {{#var:tempExact4}}
 
<includeonly><tr>{{#var:tempExact}} {{#var:tempExact2}} {{#var:tempExact3}} {{#var:tempExact4}}
<td style="text-align:center">{{ItemIcon|{{{1|}}}|{{{2|}}}}} {{{1}}} </td>
+
<td style="text-align:center">{{ItemIcon|{{{1|}}}|{{{2|}}}}} {{{1}}} </td><!--Warming-->{{
<!--Warming-->
+
#ifexpr: {{{3|}}} >= 16 | {{#vardefine:tempExact|2}} }}{{
{{#ifexpr: {{{3|}}} >= 16 | {{#vardefine:tempExact|2}} }}
+
#ifexpr: {{{3|}}} >= 32 | {{#vardefine:tempExact|3}} }}{{
{{#ifexpr: {{{3|}}} >= 32 | {{#vardefine:tempExact|3}} }}
+
#ifexpr: {{{3|}}} >= 48 | {{#vardefine:tempExact|4}} }}{{
{{#ifexpr: {{{3|}}} >= 48 | {{#vardefine:tempExact|4}} }}
+
#ifexpr: {{{3|}}} >= 64 | {{#vardefine:tempExact|5}} }}{{
{{#ifexpr: {{{3|}}} >= 64 | {{#vardefine:tempExact|5}} }}
+
#ifexpr: {{{3|}}} >= 80 | {{#vardefine:tempExact|6}} }}<!--Hot-->{{
{{#ifexpr: {{{3|}}} >= 80 | {{#vardefine:tempExact|6}} }}
+
#ifexpr: {{{3|}}} >
<!--Hot-->
 
{{#ifexpr: {{{3|}}} >= 106 | {{#vardefine:tempExact|7}} }}
 
{{#ifexpr: {{{3|}}} >= 132 | {{#vardefine:tempExact|
 
 
<td colspan="{{#expr {{#var:tempExact4}} - {{#var:tempExact3}} - {{#var:tempExact2}} - {{#var:tempExact}} }}"  bgcolor="{{{10}}}" style="text-align:center"> </td> }}
 
<td colspan="{{#expr {{#var:tempExact4}} - {{#var:tempExact3}} - {{#var:tempExact2}} - {{#var:tempExact}} }}"  bgcolor="{{{10}}}" style="text-align:center"> </td> }}
 
</tr></includeonly><noinclude>
 
</tr></includeonly><noinclude>

Revision as of 00:17, 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 enter 0 in the temp slot to disable.