Difference between revisions of "Template:ESIScore"

From blackwiki
Jump to navigation Jump to search
imported>GeoffreyT2000
m (Noinclude is pointless when onlyinclude is used.)
imported>Colonies Chris
m (minor fixes)
 
(One intermediate revision by one other user 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|{{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>
 
{{Documentation}}
 
{{Documentation}}
{{uncat}}
+
<!--Please add this template's categories to the /doc subpage, not here - thanks!-->
 +
</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.