Difference between revisions of Template:VisionStats
(adjusted title location) |
m (Fix example wikitext) |
||
(10 intermediate revisions by 2 users not shown) | |||
Line 5: | Line 5: | ||
! Right | ! Right | ||
|- | |- | ||
! Sphere | ! [[Sphere]] | ||
| {{{left sphere|}}} | | style="background-color: {{#switch: | ||
| {{{right sphere|}}} | {{#expr: {{{left sphere}}} > -1 }}{{#expr: {{{left sphere}}} > -2 }}{{#expr: {{{left sphere}}} > -5 }}{{#expr: {{{left sphere}}} > -10 }} | ||
|- | | 1111 = limegreen | ||
! Cylinder | | 0111 = yellow | ||
| {{{left cylinder|}}} | | 0011 = orange | ||
| {{{right cylinder|}}} | | 0001 = red | ||
|- | | 0000 = purple | ||
! Axis | }};" | {{{left sphere|}}} | ||
| style="background-color: {{#switch: | |||
{{#expr: {{{right sphere}}} > -1 }}{{#expr: {{{right sphere}}} > -2 }}{{#expr: {{{right sphere}}} > -5 }}{{#expr: {{{right sphere}}} > -10 }} | |||
| 1111 = limegreen | |||
| 0111 = yellow | |||
| 0011 = orange | |||
| 0001 = red | |||
| 0000 = purple | |||
}};" | {{{right sphere|}}} | |||
|- {{#if: {{{left cylinder|}}}{{{right cylinder|}}} | | style="display: none;" }} | |||
! [[Cylinder]] | |||
| style="background-color: {{#switch: | |||
{{#expr: {{{left cylinder}}} > -1 }}{{#expr: {{{left cylinder}}} > -2 }}{{#expr: {{{left cylinder}}} > -5 }}{{#expr: {{{left cylinder}}} > -10 }} | |||
| 1111 = limegreen | |||
| 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 = limegreen | |||
| 0111 = yellow | |||
| 0011 = orange | |||
| 0001 = red | |||
| 0000 = purple | |||
}};" | {{{right cylinder|}}} | |||
|- {{#if: {{{left axis|}}}{{{right axis|}}} | | style="display: none;" }} | |||
! [[Axis]] | |||
| {{{left axis|}}} | | {{{left axis|}}} | ||
| {{{right axis|}}} | | {{{right axis|}}} | ||
|- {{#if: {{{left prism|}}}{{{right prism|}}} | | style="display: none;" }} | |||
! [[Prism]] | |||
| {{{left prism|}}} | |||
| {{{right prism|}}} | |||
|}</includeonly><noinclude> | |}</includeonly><noinclude> | ||
This template is used for showing off your current prescription. | This template is used for showing off your current prescription. | ||
Line 25: | Line 57: | ||
<code><nowiki>{{VisionStats | <code><nowiki>{{VisionStats | ||
| title = Normalised | | title = Normalised | ||
| left sphere = - | | left sphere = -4.75 | ||
| right sphere = - | | right sphere = -1.00 | ||
| left cylinder = - | | left cylinder = -5.00 | ||
| right cylinder = - | | right cylinder = -0.50 | ||
| left axis = 005 | | left axis = 005 | ||
| right axis = 160 | | right axis = 160 | ||
| left prism = 0.5 BU | |||
| right prism = 0.5 BD | |||
}}</nowiki></code> | }}</nowiki></code> | ||
Line 36: | Line 70: | ||
{{VisionStats | {{VisionStats | ||
| title = Normalised | | title = Normalised | ||
| left sphere = - | | left sphere = -4.75 | ||
| right sphere = - | | right sphere = -1.00 | ||
| left cylinder = - | | left cylinder = -5.00 | ||
| right cylinder = - | | right cylinder = -0.50 | ||
| left axis = 005 | | left axis = 005 | ||
| right axis = 160 | | right axis = 160 | ||
| left prism = 0.5 BU | |||
| right prism = 0.5 BD | |||
}} | }} | ||
[[Category:Templates]] | [[Category:Templates]] |
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:
Left | Right | |
---|---|---|
Sphere | -4.75 | -1.00 |
Cylinder | -5.00 | -0.50 |
Axis | 005 | 160 |
Prism | 0.5 BU | 0.5 BD |