Actions

Template

Difference between revisions of "Bobscreen"

From NEC Retro

(Created page with "<includeonly><div style="display:none"> {{#vardefine:screenwidth|{{#mediawidth:{{{1}}}}}}} {{#vardefine:scale|1}} {{#ifexpr: {{#mediawidth:{{{1}}}}} > 320 | {{#vardefine:scree...")
 
Line 8: Line 8:
 
{{#ifeq: {{#mediadimensions:{{{1}}}}} | 256 × 224 | {{#vardefine:scale|1.25}} }}
 
{{#ifeq: {{#mediadimensions:{{{1}}}}} | 256 × 224 | {{#vardefine:scale|1.25}} }}
 
{{#ifeq: {{#mediadimensions:{{{1}}}}} | 256 × 240 | {{#vardefine:scale|1.25}} }}
 
{{#ifeq: {{#mediadimensions:{{{1}}}}} | 256 × 240 | {{#vardefine:scale|1.25}} }}
 +
{{#ifeq: {{#mediadimensions:{{{1}}}}} | 336 × 224 | {{#vardefine:scale|0.95}} }}
 
{{#if: {{{width|}}} | {{#vardefine:screenwidth|{{#expr:{{{width}}}/{{#var:scale}}}}}} }}
 
{{#if: {{{width|}}} | {{#vardefine:screenwidth|{{#expr:{{{width}}}/{{#var:scale}}}}}} }}
 
{{#vardefine:visiblewidth|{{#expr:{{#var:screenwidth}}*{{#var:scale}}}}}}
 
{{#vardefine:visiblewidth|{{#expr:{{#var:screenwidth}}*{{#var:scale}}}}}}

Revision as of 12:16, 30 January 2016