Difference between revisions of "Template:LODTable/core"

From Team Fortress Wiki
Jump to: navigation, search
(Created page with "|{{item link|{{{1}}}}} {{#ifexpr:{{{2}}}>{{{3|0}}}| {{!}}{{Chart bar|{{{2}}}|max={{{max}}}|hex=#{{#if:{{{3|}}}|F3A957|93AECF}}}} {{!}}{{#if:{{{3|}}}|{{Chart bar|{{{3}}}|max={{...")
 
m
 
(19 intermediate revisions by 2 users not shown)
Line 1: Line 1:
|{{item link|{{{1}}}}}
+
<includeonly>
{{#ifexpr:{{{2}}}>{{{3|0}}}|
+
|{{item link|{{{1}}}}}{{#if:{{{style|}}}|&nbsp;<small>({{#if:{{{name|}}}|{{item name|{{{name}}}}}|{{item name|{{{style}}}}}}})</small>}}{{#if:{{{level|}}}|&nbsp;<small>({{common string|level|{{{level}}}}})</small>}}
{{!}}{{Chart bar|{{{2}}}|max={{{max}}}|hex=#{{#if:{{{3|}}}|F3A957|93AECF}}}}
+
|{{Chart bar|{{{2}}}|max={{{2}}}|hex=#F3A957}}
{{!}}{{#if:{{{3|}}}|{{Chart bar|{{{3}}}|max={{{max}}}}}}}
+
|{{#if:{{{3|}}}||N/A}}{{#if:{{{3|}}}|{{Chart bar|{{{3}}}|max={{{2}}}|hex=#F3A957}}}}
{{!}}{{#if:{{{3|}}}|{{#expr:(1-{{{3}}}/{{{2}}})*100 round 2}}|0}}%
+
|{{#if:{{{3|}}}|{{#expr:((1-{{{3}}}/{{{2}}})*100 round 2)}}%|N/A}}
|
+
|-
{{!}}{{Chart bar|{{{3}}}|max={{{max}}}}}
+
</includeonly><noinclude>
{{!}}{{#if:{{{2|}}}|{{Chart bar|{{{2}}}|max={{{max}}}}}}}
+
{{Doc begin}}
{{!}}{{#if:{{{2|}}}|{{#expr:(1-{{{2}}}/{{{3}}})*100 round 2}}|0}}%
+
Two total LODs are supported - the highest and lowest.<br>
}}
+
 
|-<noinclude>
+
Efficiency is calculated by 1-low/high, and rounded off. It defaults to "N/A" if only one number is given.<br>
Please see {{tl|LODcmodelTable}} for documentation.</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>

Latest revision as of 09:04, 6 December 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}}.