Difference between revisions of "Template:TempatureTableEntry"

From TFC:TNG
Jump to navigation Jump to search
Line 67: Line 67:
 
{{#ifexpr: {{{3|}}} <= 1580 | {{#vardefine:tempExact|54}} }}
 
{{#ifexpr: {{{3|}}} <= 1580 | {{#vardefine:tempExact|54}} }}
 
{{#ifexpr: {{{3|}}} <= 1601 | {{#vardefine:tempExact|55}} }}
 
{{#ifexpr: {{{3|}}} <= 1601 | {{#vardefine:tempExact|55}} }}
<td>colspan="{{#var:tempExact}}" style="background: {{{4}}};" align="center"</td>
+
<td colspan="{{#var:tempExact}}" bgcolor="{{{4}}}" style="text-align:center"> </td>
 
{{#if: {{{5|}}} |  
 
{{#if: {{{5|}}} |  
 
<!--Warming-->
 
<!--Warming-->
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}}}" align="center"</td>
+
<td colspan="{{#expr {{#var:tempExact2}} - {{#var:tempExact}} }} bgcolor="{{{6}}}" style="text-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}}}" align="center"</td>
+
<td colspan="{{#expr {{#var:tempExact3}} - {{#var:tempExact2}} - {{#var:tempExact}} }}" bgcolor="{{{8}}}" style="text-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}} }}" bgcolor="{{{10}}}" style="text-align:center"> </td>
 
}}
 
}}
 
</tr></includeonly>
 
</tr></includeonly>

Revision as of 21:38, 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.