Difference between revisions of "Template:LODTable/core"
Line 1: | Line 1: | ||
− | <includeonly>|{{item link|{{{1}}}}}{{#if:{{{style|}}}| <small>({{item name|{{{style}}}}})</small>}}{{#if:{{{ | + | <includeonly>|{{item link|{{{1}}}}}{{#if:{{{style|}}}| <small>({{item name|{{{style}}}}})</small>}}{{#if:{{{special|}}}| <small>({{{special|}}})</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 13: | Line 13: | ||
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.<br> | ||
− | Styles are passed into <code>style=</code>, and use an entry from {{tl|Dictionary/items}}. Level (for buildings) uses <code> | + | 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 08:41, 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/sappers) uses special=
, and is hard-coded into the templates.