Difference between revisions of "Template:LODTable/core"

From Team Fortress Wiki
Jump to: navigation, search
m (Nope.)
Line 1: Line 1:
<includeonly>|{{item link|{{{1}}}}}{{#if:{{{style|}}}|&nbsp;<small>({{item name|{{{style}}}}})</small>}}{{#if:{{{special|}}}|&nbsp;<small>({{{special|}}})</small>}}
+
<includeonly>|{{item link|{{{1}}}}}{{#if:{{{style|}}}|&nbsp;<small>({{item name|{{{style}}}}})</small>}}
 
{{#ifexpr:{{{2}}}>{{{3|0}}}|
 
{{#ifexpr:{{{2}}}>{{{3|0}}}|
 
{{!}}{{Chart bar|{{{2}}}|max={{{max}}}|hex=#{{#if:{{{3|}}}|F3A957|93AECF}}}}
 
{{!}}{{Chart bar|{{{2}}}|max={{{max}}}|hex=#{{#if:{{{3|}}}|F3A957|93AECF}}}}
Line 12: Line 12:
 
{{Doc begin}}
 
{{Doc begin}}
 
If there is only one number, then the bar is recolored blue. The max of the two numbers is used for the high quality, and the min is used for low quality.<br>
 
If there is only one number, then the bar is recolored blue. The max of the two numbers is used for the high quality, and the min is used for low quality.<br>
Efficiency is calculated by 1-low/high, and rounded off. It defaults to 0% if only one number is given.<br>
+
Efficiency is calculated by 1-low/high, and rounded off. It defaults to 0% if only one number is given.
Styles are passed into <code>style=</code>, and use an entry from {{tl|Dictionary/items}}. Level (for buildings/sappers) uses <code>special=</code>, and is hard-coded into the templates.
 
 
</noinclude>
 
</noinclude>

Revision as of 09:31, 17 February 2015

Documentation for LODTable/core

If there is only one number, then the bar is recolored blue. The max of the two numbers is used for the high quality, and the min is used for low quality.
Efficiency is calculated by 1-low/high, and rounded off. It defaults to 0% if only one number is given.