Difference between revisions of "Template:ESIScore"

From blackwiki
Jump to navigation Jump to search
imported>Renamed user mou89p43twvqcvm8ut9w3
(relisted TfD)
imported>Colonies Chris
m (minor fixes)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Template for discussion/dated|page=ESIScore|link=Wikipedia:Templates for discussion/Log/2016 April 10#Template:ESIScore|help=off}}
 
 
{|
 
{|
 
|-
 
|-
 
|<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|{{hs|0}}?}}}{{#if: {{{esi2|}}} |—{{{esi2}}} }} }}
+
--> 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}}
{{uncat}}
+
<!--Please add this template's categories to the /doc subpage, not here - thanks!-->
 
</noinclude>
 
</noinclude>

Latest revision as of 12:58, 31 August 2020

?
Template documentation[view] [edit] [history] [purge]

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.