Difference between revisions of Template:VisionStats

Jump to navigation Jump to search
(I'm not sure if the same scale really applies, but we'll use it for cylinder anyways.)
m (Fix example wikitext)
 
(2 intermediate revisions by one other user not shown)
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
Line 57: Line 57:
<code><nowiki>{{VisionStats
<code><nowiki>{{VisionStats
| title = Normalised
| title = Normalised
| left sphere = -5.00
| left sphere = -4.75
| right sphere = -5.50
| right sphere = -1.00
| left cylinder = -1.50
| left cylinder = -5.00
| right cylinder = -1.75
| right cylinder = -0.50
| left axis = 005
| left axis = 005
| right axis = 160
| right axis = 160
Line 70: Line 70:
{{VisionStats
{{VisionStats
| title = Normalised
| title = Normalised
| left sphere = -5.00
| left sphere = -4.75
| right sphere = -5.50
| right sphere = -1.00
| left cylinder = -1.50
| left cylinder = -5.00
| right cylinder = -1.75
| right cylinder = -0.50
| left axis = 005
| left axis = 005
| right axis = 160
| right axis = 160

Latest revision as of 14:40, 27 May 2020

This template is used for showing off your current prescription.

Documentation

All fields are optional.

Example: {{VisionStats | title = Normalised | left sphere = -4.75 | right sphere = -1.00 | left cylinder = -5.00 | right cylinder = -0.50 | 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