Difference between revisions of "Template:LODTable/core"

From Team Fortress Wiki
Jump to: navigation, search
m
Line 1: Line 1:
<includeonly>|{{item link|{{{1}}}}}{{#if:{{{style|}}}|&nbsp;<small>({{item name|{{{style}}}}})</small>}}
+
<includeonly>|{{item link|{{{1}}}}}{{#if:{{{style|}}}|&nbsp;<small>({{item name|{{{style}}}}})</small>}}{{#if:{{{level|}}}|&nbsp;<small>({{common string|level|{{{level}}}}})</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.
+
Efficiency is calculated by 1-low/high, and rounded off. It defaults to 0% if only one number is given.<br>
 +
Styles are passed into <code>style=</code>, and use an entry from {{tl|Dictionary/items}}. Level (for buildings) uses <code>level=</code>, and pulls from {{tl|Dictionary/common strings}}.
 
</noinclude>
 
</noinclude>

Revision as of 08:38, 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.
Styles are passed into style=, and use an entry from {{Dictionary/items}}. Level (for buildings) uses level=, and pulls from {{Dictionary/common strings}}.