Difference between revisions of Template:VisionStats

Added colors for sphere. (Cylinder severity is relative to sphere, so that would need to be a different calculation.)
(Add prism)
(Added colors for sphere. (Cylinder severity is relative to sphere, so that would need to be a different calculation.))
Line 6: Line 6:
|-
|-
! [[Sphere]]
! [[Sphere]]
| {{{left sphere|}}}
| {{#switch:
| {{{right sphere|}}}
{{#expr: {{{left sphere}}} > -1 }}{{#expr: {{{left sphere}}} > -2 }}{{#expr: {{{left sphere}}} > -5 }}{{#expr: {{{left sphere}}} > -10 }}
| 1111 = style="background-color: green;"
| 0111 = style="background-color: yellow;"
| 0011 = style="background-color: orange;"
| 0001 = style="background-color: red;"
| #default = style="background-color: purple;"
}} | {{{left sphere|}}}
| {{#switch:
{{#expr: {{{right sphere}}} > -1 }}{{#expr: {{{right sphere}}} > -2 }}{{#expr: {{{right sphere}}} > -5 }}{{#expr: {{{right sphere}}} > -10 }}
| 1111 = style="background-color: green;"
| 0111 = style="background-color: yellow;"
| 0011 = style="background-color: orange;"
| 0001 = style="background-color: red;"
| #default = style="background-color: purple;"
}} | {{{right sphere|}}}
|- {{#if: {{{left cylinder|}}}{{{right cylinder|}}} | | style="display: none;" }}
|- {{#if: {{{left cylinder|}}}{{{right cylinder|}}} | | style="display: none;" }}
! [[Cylinder]]
! [[Cylinder]]
270

edits