Difference between revisions of "Template:LODTable/core"

From Team Fortress Wiki
Jump to: navigation, search
(been working on this for a while, i think its safe to push now)
Line 1: Line 1:
<includeonly>|{{item link|{{{1}}}}}{{#if:{{{style|}}}|&nbsp;<small>({{item name|{{{style}}}}})</small>}}{{#if:{{{level|}}}|&nbsp;<small>({{common string|level|{{{level}}}}})</small>}}
+
<includeonly>
|{{Chart bar|{{{2}}}|max={{{max}}}|hex=#{{#if:{{{3|}}}|F3A957|93AECF}}}}
+
|{{item link|{{{1}}}}}{{#if:{{{style|}}}|&nbsp;<small>({{item name|{{{style}}}}})</small>}}{{#if:{{{level|}}}|&nbsp;<small>({{common string|level|{{{level}}}}})</small>}}
|{{#if:{{{3|}}}|{{Chart bar|{{{3}}}|max={{{max}}}}}
+
|{{Chart bar|{{{2}}}|max={{{2}}}|hex=#F3A957}}
{{!}}{{#expr:(1-{{{3}}}/{{{2}}})*100 round 2}}|{{!!}}0}}%
+
|{{#if:{{{3|}}}||N/A}}{{#if:{{{3|}}}|{{Chart bar|{{{3}}}|max={{{2}}}|hex=#F3A957}}}}
|-</includeonly><noinclude>
+
|{{#if:{{{3|}}}|{{#expr:((1-{{{3}}}/{{{2}}})*100 round 2)}}%|N/A}}
 +
|-
 +
</includeonly><noinclude>
 
{{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>
+
Two total LODs are supported - the highest and lowest.<br>
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}}.
+
Efficiency is calculated by 1-low/high, and rounded off. It defaults to "N/A" if only one number is given.<br>
</noinclude>
+
 
 +
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>

Revision as of 18:05, 12 October 2020

Documentation for LODTable/core

Two total LODs are supported - the highest and lowest.

Efficiency is calculated by 1-low/high, and rounded off. It defaults to "N/A" 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}}.