Difference between revisions of "Template:ESIScore"
Jump to navigation
Jump to search
imported>Izkala (Tfd closed as keep) |
imported>Colonies Chris m (minor fixes) |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 2: | Line 2: | ||
|- | |- | ||
|<onlyinclude><!-- | |<onlyinclude><!-- | ||
| − | --> style="background-color: hsl( {{#expr: ( ({{{esi|0}}} + {{{esi2|{{{esi|0}}}}}}) / 2 ) * 120}}, 100%, 75%);"| {{sort | {{#expr: ( ({{{esi|0}}} + {{{esi2|{{{esi|0}}}}}}) / 2 ) }} |{{{esi|{{ | + | --> style="background-color: hsl( {{#expr: ( ({{{esi|0}}} + {{{esi2|{{{esi|0}}}}}}) / 2 ) * 120}}, 100%, 75%);"| {{sort | {{#expr: ( ({{{esi|0}}} + {{{esi2|{{{esi|0}}}}}}) / 2 ) }} |{{{esi|{{hidden sort key|0}}?}}}{{#if: {{{esi2|}}} |—{{{esi2}}} }} }} |
<!-- | <!-- | ||
--></onlyinclude> | --></onlyinclude> | ||
| − | |} | + | |}<noinclude> |
| − | <noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
| − | + | <!--Please add this template's categories to the /doc subpage, not here - thanks!--> | |
</noinclude> | </noinclude> | ||
Latest revision as of 12:58, 31 August 2020
| ? |
Usage
The ESI Score is a template similar to that of Template:HabPlanetScore however it only applies a coloured background to a single cell in a table, and needs to be called into a single cell in a table. This template will apply a colour for any value but is designed to colourize values between 0 to 1 and will apply a colour from red to green. To use this template simply put{{ESIScore|esi=X.XX}} where X is you would input your own values.
| The above documentation is transcluded from Template:ESIScore/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |