Difference between revisions of "Bobscreen"
From Sega Retro
Line 13: | Line 13: | ||
{{#ifeq: {{#mediadimensions:{{{1}}}}} | 704 × 480 | {{#vardefine:yscale|1.1}} }} | {{#ifeq: {{#mediadimensions:{{{1}}}}} | 704 × 480 | {{#vardefine:yscale|1.1}} }} | ||
{{#ifeq: {{#mediadimensions:{{{1}}}}} | 352 × 240 | {{#vardefine:yscale|1.1}} }} | {{#ifeq: {{#mediadimensions:{{{1}}}}} | 352 × 240 | {{#vardefine:yscale|1.1}} }} | ||
− | {{#ifeq: {{#mediadimensions:{{{1}}}}} | 704 × 448 | {{#vardefine:yscale|1. | + | {{#ifeq: {{#mediadimensions:{{{1}}}}} | 704 × 448 | {{#vardefine:yscale|1.176}} }} |
{{#ifeq: {{#mediadimensions:{{{1}}}}} | 352 × 224 | {{#vardefine:yscale|1.176}} }} | {{#ifeq: {{#mediadimensions:{{{1}}}}} | 352 × 224 | {{#vardefine:yscale|1.176}} }} | ||
{{#if: {{{width|}}} | {{#vardefine:screenwidth|{{#expr:{{{width}}}/{{#var:scale}}}}}} }} | {{#if: {{{width|}}} | {{#vardefine:screenwidth|{{#expr:{{{width}}}/{{#var:scale}}}}}} }} | ||
Line 50: | Line 50: | ||
[[File:Clockwork Knight Title.png|320px]] -> {{bobscreen|Clockwork Knight Title.png}} | [[File:Clockwork Knight Title.png|320px]] -> {{bobscreen|Clockwork Knight Title.png}} | ||
+ | |||
+ | |||
+ | [[File:NiGHTS title.png|320px]] -> {{bobscreen|NiGHTS title.png}} | ||
[[Category:Breakout box templates]] | [[Category:Breakout box templates]] | ||
</noinclude> | </noinclude> |
Revision as of 08:01, 11 February 2017
This template sets the maximum width of a screenshot to 320 pixels, and corrects its aspect ratio.
Usage
{{bobscreen|MagicalPuzzlePopils title.png}}
returns
This is how the game appears on an actual Sega Game Gear. The original image taken from an emulator is below:
Options
{{bobscreen|MagicalPuzzlePopils title.png|width=120}}
returns
"width" also takes into account the adjusted aspect ratio, so the image appears 120 pixels wide even if the source image is not.
Height
In addition, this template corrects heights: