Difference between revisions of "Template:HabPlanetScore"

From blackwiki
Jump to navigation Jump to search
imported>4th-otaku
imported>4th-otaku
Line 2: Line 2:
 
|-
 
|-
 
|<onlyinclude><!--
 
|<onlyinclude><!--
--> style="background-color: hsl( {{#expr: ( ({{{esi|{{{1|0}}}}}} + {{{esi2|{{{esi|{{{1|0}}}}}}}}}) / 2 ) * 120}}, 100%, 75%);"| {{sort | {{#expr: ( ({{{esi|{{{1|0}}}}}} + {{{esi2|{{{esi|{{{1|0}}}}}}}}}) / 2 ) }} | {{{esi|{{{1|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|0}}}{{#if: {{{esi2|}}} |—{{{esi2}}} }} }}
|  style="background-color: hsl( {{#expr: {{{sph|{{{2|0}}}}}} * 120}}, 100%, 75%);"| {{{sph|{{{2|0}}}}}}
+
|  style="background-color: hsl( {{#expr: {{{sph|0}}} * 120}}, 100%, 75%);"| {{{sph|0}}}
|  style="background-color: hsl( {{#expr: ( 1 - abs {{{hzd|{{{3|1}}}}}} ) * 120}}, 100%, 75%);" | {{sort| {{#expr: 1 - abs {{{hzd|{{{3|1}}}}}} }} | {{{hzd|{{{3|1}}}}}} }}
+
|  style="background-color: hsl( {{#expr: ( 1 - abs {{{hzd|1}}} ) * 120}}, 100%, 75%);" | {{{hzd|1}}}
|  style="background-color: hsl( {{#expr: (  ( ({{{esi|{{{1|0}}}}}} + {{{esi2|{{{esi|{{{1|0}}}}}}}}}) / 2 )  +  {{{sph|{{{2|0}}}}}}  +  ( 1 - abs {{{hzd|{{{3|1}}}}}} )  ) / 3 * 120}}, 100%, 75%);" | {{decimals| {{#expr: (  ( ({{{esi|{{{1|0}}}}}} + {{{esi2|{{{esi|{{{1|0}}}}}}}}}) / 2 )  +  {{{sph|{{{2|0}}}}}}  +  ( 1 - abs {{{hzd|{{{3|1}}}}}} )  ) / 3 round 2}} |2}}<!--
+
|   style="background-color: hsl( {{#expr: ( 1 - abs {{{hzc|1}}} ) * 120}}, 100%, 75%);" | {{{hzc|1}}}
 +
|   style="background-color: hsl( {{#expr: ( 1 - abs {{{hza|1}}} ) * 120}}, 100%, 75%);" | {{{hza|1}}}
 +
|  style="background-color: hsl( {{#expr: (  ( ({{{esi|0}}} + {{{esi2|{{{esi|0}}}}}}) / 2 )  +  {{{sph|0}}}  +  ( 1 - abs {{{hzd|1}}} )  +  ( 1 - abs {{{hzc|1}}} )  +  ( 1 - abs {{{hza|1}}} )  ) / 5 * 120}}, 100%, 75%);" | {{decimals| {{#expr: (  ( ({{{esi|0}}} + {{{esi2|{{{esi|0}}}}}}) / 2 )  +  {{{sph|0}}}  +  ( 1 - abs {{{hzd|1}}} )  +  ( 1 - abs {{{hzc|1}}} )  +  ( 1 - abs {{{hza|1}}} )  ) / 5 round 2}} | 2}}<!--
 
--></onlyinclude>
 
--></onlyinclude>
 
|}<noinclude>
 
|}<noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 15:22, 25 February 2012

0 0 1 1 1
  1. REDIRECT Template:Round
50px Template documentation[view] [edit] [history] [purge]


{{HabPlanetScore}} is for use in the table at List of potentially habitable exoplanets. It provides an automatic cell background color calculation to visually depict each planetary habitability measure. Default values are the worst possible (0 for ESI and SPH, and 1 for HZD/HZC/HZA). It is possible to supply a range for ESI, by passing parameter "esi2".