Difference between revisions of "Bobscreen"
From Sega Retro
(5 intermediate revisions by the same user not shown) | |||
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 14: | Line 14: | ||
| 704 × 448 = 352,320,224,0,0,0,0 <!--Saturn--> | | 704 × 448 = 352,320,224,0,0,0,0 <!--Saturn--> | ||
| 352 × 240 | | 352 × 240 | ||
+ | | 352 × 256 | ||
| 704 × 480 = 352,320,240,0,0,0,0 <!--Saturn PAL--> | | 704 × 480 = 352,320,240,0,0,0,0 <!--Saturn PAL--> | ||
| 224 × 224 = 224,320,224,0,0,0,0 <!--Bank Panic--> | | 224 × 224 = 224,320,224,0,0,0,0 <!--Bank Panic--> | ||
Line 21: | Line 22: | ||
| 384 × 224 = 384,320,224,0,0,0,0 <!-- Capcom arcade --> | | 384 × 224 = 384,320,224,0,0,0,0 <!-- Capcom arcade --> | ||
| 416 × 224 = 416,320,224,0,0,0,0 <!-- Burning Rival --> | | 416 × 224 = 416,320,224,0,0,0,0 <!-- Burning Rival --> | ||
+ | | 224 × 320 = 224,224,320,0,0,0,0 <!--Vertical arcade (e.g. Time Scanner)--> | ||
| 224 × 256 = 224,224,320,0,0,0,0 <!--Vertical arcade (e.g. Deep Scan)--> | | 224 × 256 = 224,224,320,0,0,0,0 <!--Vertical arcade (e.g. Deep Scan)--> | ||
| 240 × 256 = 240,240,320,0,0,0,0 <!--Vertical arcade (e.g. Angel Kids)--> | | 240 × 256 = 240,240,320,0,0,0,0 <!--Vertical arcade (e.g. Angel Kids)--> | ||
Line 39: | Line 41: | ||
| 256 × 384 = 256,256,384,0,0,0,0 <!--Nintendo DS--> | | 256 × 384 = 256,256,384,0,0,0,0 <!--Nintendo DS--> | ||
| 400 × 480 = 320,320,384,0,0,0,0 <!--Nintendo 3DS--> | | 400 × 480 = 320,320,384,0,0,0,0 <!--Nintendo 3DS--> | ||
− | | 800 × 480 = 640,640,384,0,0,0,320 <!--Nintendo 3DS 3D--> | + | <!--| 800 × 480 = 640,640,384,0,0,0,320 <!--Nintendo 3DS 3D--> needs a rethink because Android--> |
| 480 × 272 = 320,320,181,0,0,0,0 <!--PlayStation Portable--> | | 480 × 272 = 320,320,181,0,0,0,0 <!--PlayStation Portable--> | ||
| 960 × 544 = 320,320,181,0,0,0,0 <!--PlayStation Vita--> | | 960 × 544 = 320,320,181,0,0,0,0 <!--PlayStation Vita--> | ||
+ | | 800 × 480 = 320,320,192,0,0,0,0 <!--Android--> | ||
+ | | 480 × 800 = 240,240,400,0,0,0,0 <!--Android; vertical--> | ||
+ | | 1792 × 828 = 320,320,147.857,0,0,0,0 <!--iOS --> | ||
| 160 × 152 = 160,160,152,0,0,0,0 <!--NGPC--> | | 160 × 152 = 160,160,152,0,0,0,0 <!--NGPC--> | ||
| 256 × 212 = 256,283,212,0,0,0,0 <!-- MSX2 --> | | 256 × 212 = 256,283,212,0,0,0,0 <!-- MSX2 --> | ||
Line 70: | Line 75: | ||
| 2560 × 1440 | | 2560 × 1440 | ||
| 3840 × 2160 = 320,320,180,0,0,0,0 <!-- HD --> | | 3840 × 2160 = 320,320,180,0,0,0,0 <!-- HD --> | ||
+ | | 720 × 1280 | ||
+ | | 1080 × 1920 | ||
+ | | 1440 × 2560 | ||
+ | | 2160 × 3840 = 320,180,320,0,0,0,0 <!--HD; vertical--> | ||
| 320,320,224,0,0,0,0 <!--Default is Mega Drive NTSC--> | | 320,320,224,0,0,0,0 <!--Default is Mega Drive NTSC--> | ||
}}}}{{let | }}}}{{let | ||
Line 93: | Line 102: | ||
left:-{{#expr:{{#var:bsl}}*{{#var:scale}}}}px | left:-{{#expr:{{#var:bsl}}*{{#var:scale}}}}px | ||
"> | "> | ||
− | [[File:{{{1|}}}|{{#expr:trunc({{#var:thumbw}}*{{#var:scale}})}}px]] | + | [[File:{{{1|}}}|{{#expr:trunc({{#var:thumbw}}*{{#var:scale}})}}px|link={{{link|File:{{{1|}}}}}}]] |
</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 300: | Line 309: | ||
| {{bobscreen|LostVikings Amiga Title.png}} | | {{bobscreen|LostVikings Amiga Title.png}} | ||
|- | |- | ||
− | | <nowiki>{{bobscreen|Ikaruga title1.png}}</nowiki> | + | | <nowiki>{{bobscreen|Ikaruga title1.png|link=Ikaruga}}</nowiki> |
| [[File:Ikaruga title1.png]] | | [[File:Ikaruga title1.png]] | ||
− | | {{bobscreen|Ikaruga title1.png}} | + | | {{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}} | ||
+ | |- | ||
+ | | <nowiki>{{bobscreen|SegaRally Saturn EU Title.png}}</nowiki> | ||
+ | | [[File:SegaRally Saturn EU Title.png]] | ||
+ | | {{bobscreen|SegaRally Saturn EU Title.png}} | ||
+ | |- | ||
+ | | <nowiki>{{bobscreen|TimeScanner Title.png}}</nowiki> | ||
+ | | [[File:TimeScanner Title.png]] | ||
+ | | {{bobscreen|TimeScanner Title.png}} | ||
+ | |- | ||
+ | | <nowiki>{{bobscreen|PuyoPuyoNarabe title.jpg}}</nowiki> | ||
+ | | [[File:PuyoPuyoNarabe title.jpg]] | ||
+ | | {{bobscreen|PuyoPuyoNarabe title.jpg}} | ||
+ | |- | ||
+ | | <nowiki>{{bobscreen|Crazy Taxi Gazillionaire title screen.png}}</nowiki> | ||
+ | | [[File:Crazy Taxi Gazillionaire title screen.png|320px]] | ||
+ | | {{bobscreen|Crazy Taxi Gazillionaire title screen.png}} | ||
+ | |- | ||
+ | | <nowiki>{{bobscreen|Phantasy Star Classics title.png}}</nowiki> | ||
+ | | [[File:Phantasy Star Classics title.png|320px]] | ||
+ | | {{bobscreen|Phantasy Star Classics title.png}} | ||
+ | |- | ||
+ | | <nowiki>{{bobscreen|SonicAdvance Android title.png}}</nowiki> | ||
+ | | [[File:SonicAdvance Android title.png|320px]] | ||
+ | | {{bobscreen|SonicAdvance Android title.png}} | ||
|} | |} | ||
+ | |||
+ | |||
[[Category:Breakout box templates]] | [[Category:Breakout box templates]] | ||
</noinclude> | </noinclude> |
Revision as of 15:02, 25 November 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.