Difference between revisions of Template:VisionStats
Jump to navigation
Jump to search
mNo edit summary |
(I'm not sure if the same scale really applies, but we'll use it for cylinder anyways.) |
||
Line 24: | Line 24: | ||
|- {{#if: {{{left cylinder|}}}{{{right cylinder|}}} | | style="display: none;" }} | |- {{#if: {{{left cylinder|}}}{{{right cylinder|}}} | | style="display: none;" }} | ||
! [[Cylinder]] | ! [[Cylinder]] | ||
| {{{left cylinder|}}} | | style="background-color: {{#switch: | ||
| {{{right cylinder|}}} | {{#expr: {{{left cylinder}}} > -1 }}{{#expr: {{{left cylinder}}} > -2 }}{{#expr: {{{left cylinder}}} > -5 }}{{#expr: {{{left cylinder}}} > -10 }} | ||
| 1111 = green | |||
| 0111 = yellow | |||
| 0011 = orange | |||
| 0001 = red | |||
| 0000 = purple | |||
}};" | {{{left cylinder|}}} | |||
| style="background-color: {{#switch: | |||
{{#expr: {{{right cylinder}}} > -1 }}{{#expr: {{{right cylinder}}} > -2 }}{{#expr: {{{right cylinder}}} > -5 }}{{#expr: {{{right cylinder}}} > -10 }} | |||
| 1111 = green | |||
| 0111 = yellow | |||
| 0011 = orange | |||
| 0001 = red | |||
| 0000 = purple | |||
}};" | {{{right cylinder|}}} | |||
|- {{#if: {{{left axis|}}}{{{right axis|}}} | | style="display: none;" }} | |- {{#if: {{{left axis|}}}{{{right axis|}}} | | style="display: none;" }} | ||
! [[Axis]] | ! [[Axis]] |
Revision as of 06:07, 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:
Left | Right | |
---|---|---|
Sphere | -5.00 | -5.50 |
Cylinder | -1.50 | -1.75 |
Axis | 005 | 160 |
Prism | 0.5 BU | 0.5 BD |