Difference between revisions of "Bobscreen"

From Sega Retro

(copied from bobscreenTest)
Line 20: Line 20:
 
| 224 × 288 = 1 <!--Pengo, square pixels.-->
 
| 224 × 288 = 1 <!--Pengo, square pixels.-->
 
| 496 × 384 = (372/384) <!--Model 1/2 (e.g. Virtua Fighter)-->
 
| 496 × 384 = (372/384) <!--Model 1/2 (e.g. Virtua Fighter)-->
 +
| 320 × 200 = (240/200) <!--IBM PC-->
 +
| 640 × 300 = (320/200) <!--IBM PC-->
 
| {{#ifeq:{{{forcewidescreen}}}|yes|0.8|1}}
 
| {{#ifeq:{{{forcewidescreen}}}|yes|0.8|1}}
 
}}}}}}{{#vardefine:is3d|{{#switch:{{#mediadimensions:{{{1}}}}}
 
}}}}}}{{#vardefine:is3d|{{#switch:{{#mediadimensions:{{{1}}}}}
Line 125: Line 127:
 
| [[File:Outrun2spsdxscreen.png|320px]]
 
| [[File:Outrun2spsdxscreen.png|320px]]
 
| {{bobscreen|Outrun2spsdxscreen.png|width=320}}
 
| {{bobscreen|Outrun2spsdxscreen.png|width=320}}
 +
|-
 +
| <nowiki>{{bobscreen|OutRun IBMPC CGA Title.png|width=320}}</nowiki>
 +
| [[File:OutRun IBMPC CGA Title.png|320px]]
 +
| {{bobscreen|OutRun IBMPC CGA Title.png|width=320}}
 +
|-
 +
| <nowiki>{{bobscreen|OutRun IBMPC Hercules Title.png|width=320}}</nowiki>
 +
| [[File:OutRun IBMPC Hercules Title.png|320px]]
 +
| {{bobscreen|OutRun IBMPC Hercules Title.png|width=320}}
 
|}
 
|}
  
 
[[Category:Breakout box templates]]
 
[[Category:Breakout box templates]]
 
</noinclude>
 
</noinclude>

Revision as of 06:01, 5 August 2018


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

This is how the game appears on an actual Sega Game Gear. The original image taken from an emulator is below:

MagicalPuzzlePopils title.png

Options

{{bobscreen|MagicalPuzzlePopils title.png|width=120}}

returns

MagicalPuzzlePopils title.png

"width" also takes into account the adjusted aspect ratio, so the image appears 120 pixels wide even if the source image is not.

Examples

Code Raw image Output
{{bobscreen|Gain Ground Title.png|height=320}} Gain Ground Title.png
Gain Ground Title.png
{{bobscreen|Virtua Fighter Title.png}} Virtua Fighter Title.png
Virtua Fighter Title.png
{{bobscreen|AlteredBeast PS2 title.png}} AlteredBeast PS2 title.png
AlteredBeast PS2 title.png
{{bobscreen|BladeEagle title.png}} BladeEagle title.png
BladeEagle title.png
{{bobscreen|OutRun3D title.png}} OutRun3D title.png
OutRun3D title.png
{{bobscreen|Scd titlescreen.png}} Scd titlescreen.png
Scd titlescreen.png
{{bobscreen|WinterHeat title.png}} WinterHeat title.png
WinterHeat title.png
{{bobscreen|Clockwork Knight Title.png}} ClockworkKnightUSPAL Title.png
ClockworkKnightUSPAL Title.png
{{bobscreen|NiGHTS title.png}} NiGHTS title.png
NiGHTS title.png
{{bobscreen|VirtuaFighter 32X Widescreen2.png|forcewidescreen=yes}} VirtuaFighter 32X Widescreen2.png
VirtuaFighter 32X Widescreen2.png
{{bobscreen|VirtuaFighter 32X Widescreen2 PAL.png|forcewidescreen=yes}} VirtuaFighter 32X Widescreen2 PAL.png
VirtuaFighter 32X Widescreen2 PAL.png
{{bobscreen|VirtuaFighter 32X Widescreen2 PAL.png|forcewidescreen=yes|width=200}} VirtuaFighter 32X Widescreen2 PAL.png
VirtuaFighter 32X Widescreen2 PAL.png
{{bobscreen|VirtuaFighter 32X Widescreen2 PAL.png|forcewidescreen=yes|height=240}} VirtuaFighter 32X Widescreen2 PAL.png
VirtuaFighter 32X Widescreen2 PAL.png
{{bobscreen|Deep Scan.png}} Deep Scan.png
Deep Scan.png
{{bobscreen|Deep Scan.png|height=320}} Deep Scan.png
Deep Scan.png
{{bobscreen|Deep Scan.png|width=200}} Deep Scan.png
Deep Scan.png
{{bobscreen|Alex Kidd in Miracle World Title.png}} Alex Kidd in Miracle World Title.png
Alex Kidd in Miracle World Title.png
{{bobscreen|Outrun2spsdxscreen.png|width=320}} Outrun2spsdxscreen.png
Outrun2spsdxscreen.png
{{bobscreen|OutRun IBMPC CGA Title.png|width=320}} OutRun IBMPC CGA Title.png
OutRun IBMPC CGA Title.png
{{bobscreen|OutRun IBMPC Hercules Title.png|width=320}} OutRun IBMPC Hercules Title.png
OutRun IBMPC Hercules Title.png