Difference between revisions of "Bobscreen"
From Sega Retro
Line 1: | Line 1: | ||
− | <includeonly>{{let|imagedim={{#replace:{{#mediadimensions:{{{1|}}}}}|,|}}}}{{let|imagew={{#explode:{{#var:imagedim}}|×|0}}|imageh={{#explode:{{#var:imagedim}}|×|1}}}} | + | <includeonly>{{#if:{{{noresize|}}}|[[File:{{{1|}}}{{#if:{{{width|}}}{{{height|}}}|{{!}}}}{{#if:{{{width|}}}|{{{width|}}}}}{{#if:{{{height|}}}|x{{{height|}}}}}{{#if:{{{width|}}}{{{height|}}}|px}}]]|{{let|imagedim={{#replace:{{#mediadimensions:{{{1|}}}}}|,|}}}}{{let|imagew={{#explode:{{#var:imagedim}}|×|0}}|imageh={{#explode:{{#var:imagedim}}|×|1}}}} |
{{let|bsparams={{#switch:{{#var:imagedim}} | {{let|bsparams={{#switch:{{#var:imagedim}} | ||
<!--thumbnail width, display width, display height, crop (top, bottom, left, right)--> | <!--thumbnail width, display width, display height, crop (top, bottom, left, right)--> | ||
Line 96: | Line 96: | ||
</div> | </div> | ||
</div> | </div> | ||
− | </div></includeonly><noinclude> | + | </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. | ||
Line 303: | Line 303: | ||
| [[File:Ikaruga title1.png]] | | [[File:Ikaruga title1.png]] | ||
| {{bobscreen|Ikaruga title1.png|link=Ikaruga}} | | {{bobscreen|Ikaruga title1.png|link=Ikaruga}} | ||
+ | |- | ||
+ | | <nowiki>{{bobscreen|ComixZone PC Cheat.png|noresize=yes}}</nowiki> | ||
+ | | [[File:ComixZone PC Cheat.png]] | ||
+ | | {{bobscreen|ComixZone PC Cheat.png|noresize=yes}} | ||
+ | |- | ||
+ | | <nowiki>{{bobscreen|ComixZone PC Cheat.png|noresize=yes|width=200}}</nowiki> | ||
+ | | [[File:ComixZone PC Cheat.png]] | ||
+ | | {{bobscreen|ComixZone PC Cheat.png|noresize=yes|width=200}} | ||
+ | |- | ||
+ | | <nowiki>{{bobscreen|ComixZone PC Cheat.png|noresize=yes|height=200}}</nowiki> | ||
+ | | [[File:ComixZone PC Cheat.png]] | ||
+ | | {{bobscreen|ComixZone PC Cheat.png|noresize=yes|height=200}} | ||
|} | |} | ||
[[Category:Breakout box templates]] | [[Category:Breakout box templates]] | ||
</noinclude> | </noinclude> |
Revision as of 03:51, 21 September 2021
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.