Difference between revisions of "BobscreenTest"
From Sega Retro
Line 72: | Line 72: | ||
}}}}{{let | }}}}{{let | ||
|thumbw={{#explode:{{#var:bsparams}}|,|0}} | |thumbw={{#explode:{{#var:bsparams}}|,|0}} | ||
− | |bsw={{#explode:{{#var:bsparams}}|,|1}} | + | |bsw={{#explode:{{#var:bsparams}}|,|{{#switch:{{{keepwidth|}}}|yes=0|1}}}} |
|bsh={{#expr:{{#explode:{{#var:bsparams}}|,|2}}*{{#switch:{{{forcewidescreen|}}}|yes=0.8|1}}}} | |bsh={{#expr:{{#explode:{{#var:bsparams}}|,|2}}*{{#switch:{{{forcewidescreen|}}}|yes=0.8|1}}}} | ||
|bsc={{#explode:{{#var:bsparams}}|,|3}} | |bsc={{#explode:{{#var:bsparams}}|,|3}} | ||
Line 106: | Line 106: | ||
}} | }} | ||
{{bobscreenTest|OutRun3D title.png|width=120}} | {{bobscreenTest|OutRun3D title.png|width=120}} | ||
+ | {{bobscreenTest|CosmicSpacehead SMS Title.png|keepwidth=yes}} | ||
+ | {{bobscreenTest|CosmicSpacehead SMS Title.png|keepwidth=yes|width=120}} | ||
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 13:14, 15 June 2021
testing |
---|
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
{{BobscreenTest|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.