Difference between revisions of "Bobscreen"

From Sega Retro

(Created page with "<includeonly><span style="display:none"> {{#vardefine:screenwidth|{{#mediawidth:{{{1}}}}}}} {{#vardefine:scale|1}} {{#ifexpr: {{#mediawidth:{{{1}}}}} > 320 | {{#vardefine:scre...")
 
m
Line 1: Line 1:
<includeonly><span style="display:none">
+
<includeonly><div style="display:none">
 
{{#vardefine:screenwidth|{{#mediawidth:{{{1}}}}}}}
 
{{#vardefine:screenwidth|{{#mediawidth:{{{1}}}}}}}
 
{{#vardefine:scale|1}}
 
{{#vardefine:scale|1}}
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}} }}
</span><div style="transform:scalex({{#var:scale}}); transform-origin:1">[[File:{{{1}}}|{{#var:screenwidth}}px]]</div></includeonly><noinclude>
+
</div><div style="transform:scalex({{#var:scale}}); transform-origin:1">[[File:{{{1}}}|{{#var:screenwidth}}px]]</div></includeonly><noinclude>
 
This template sets the maximum width of a screenshot to 320 pixels, and corrects its aspect ratio.
 
This template sets the maximum width of a screenshot to 320 pixels, and corrects its aspect ratio.
  

Revision as of 18:47, 19 July 2015

This template sets the maximum width of a screenshot to 320 pixels, and corrects its aspect ratio.

Usage

{{bobscreen|MagicalPuzzlePopils title.png}}

returns





MagicalPuzzlePopils title.png