Difference between revisions of Template:VisionStats

Jump to navigation Jump to search
(Changed example values just to show some of the colors.)
(Changed the shade of green so that the text is easier to see.)
Line 8: Line 8:
| style="background-color: {{#switch:
| style="background-color: {{#switch:
{{#expr: {{{left sphere}}} > -1 }}{{#expr: {{{left sphere}}} > -2 }}{{#expr: {{{left sphere}}} > -5 }}{{#expr: {{{left sphere}}} > -10 }}
{{#expr: {{{left sphere}}} > -1 }}{{#expr: {{{left sphere}}} > -2 }}{{#expr: {{{left sphere}}} > -5 }}{{#expr: {{{left sphere}}} > -10 }}
| 1111 = green
| 1111 = limegreen
| 0111 = yellow
| 0111 = yellow
| 0011 = orange
| 0011 = orange
Line 16: Line 16:
| style="background-color: {{#switch:
| style="background-color: {{#switch:
{{#expr: {{{right sphere}}} > -1 }}{{#expr: {{{right sphere}}} > -2 }}{{#expr: {{{right sphere}}} > -5 }}{{#expr: {{{right sphere}}} > -10 }}
{{#expr: {{{right sphere}}} > -1 }}{{#expr: {{{right sphere}}} > -2 }}{{#expr: {{{right sphere}}} > -5 }}{{#expr: {{{right sphere}}} > -10 }}
| 1111 = green
| 1111 = limegreen
| 0111 = yellow
| 0111 = yellow
| 0011 = orange
| 0011 = orange
Line 26: Line 26:
| style="background-color: {{#switch:
| style="background-color: {{#switch:
{{#expr: {{{left cylinder}}} > -1 }}{{#expr: {{{left cylinder}}} > -2 }}{{#expr: {{{left cylinder}}} > -5 }}{{#expr: {{{left cylinder}}} > -10 }}
{{#expr: {{{left cylinder}}} > -1 }}{{#expr: {{{left cylinder}}} > -2 }}{{#expr: {{{left cylinder}}} > -5 }}{{#expr: {{{left cylinder}}} > -10 }}
| 1111 = green
| 1111 = limegreen
| 0111 = yellow
| 0111 = yellow
| 0011 = orange
| 0011 = orange
Line 34: Line 34:
| style="background-color: {{#switch:
| style="background-color: {{#switch:
{{#expr: {{{right cylinder}}} > -1 }}{{#expr: {{{right cylinder}}} > -2 }}{{#expr: {{{right cylinder}}} > -5 }}{{#expr: {{{right cylinder}}} > -10 }}
{{#expr: {{{right cylinder}}} > -1 }}{{#expr: {{{right cylinder}}} > -2 }}{{#expr: {{{right cylinder}}} > -5 }}{{#expr: {{{right cylinder}}} > -10 }}
| 1111 = green
| 1111 = limegreen
| 0111 = yellow
| 0111 = yellow
| 0011 = orange
| 0011 = orange

Revision as of 06:10, 27 May 2020

This template is used for showing off your current prescription.

Documentation

All fields are optional.

Example: {{VisionStats | title = Normalised | left sphere = -5.00 | right sphere = -5.50 | left cylinder = -1.50 | right cylinder = -1.75 | left axis = 005 | right axis = 160 | left prism = 0.5 BU | right prism = 0.5 BD }}

Produces:

Normalised
Left Right
Sphere -4.75 -1.00
Cylinder -5.00 -0.50
Axis 005 160
Prism 0.5 BU 0.5 BD