Difference between revisions of "Bobscreen"
From NEC Retro
Ccawley2011 (talk | contribs) |
|||
(6 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{{#if:{{{noresize|}}}|[[File:{{{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 32: | Line 32: | ||
| 496 × 384 = 320,320,240,0,0,0,0 <!--Model 1/2 (e.g. Virtua Fighter)--> | | 496 × 384 = 320,320,240,0,0,0,0 <!--Model 1/2 (e.g. Virtua Fighter)--> | ||
| 400 × 254 = 400,320,240,0,0,0,0 <!-- Midway arcade --> | | 400 × 254 = 400,320,240,0,0,0,0 <!-- Midway arcade --> | ||
+ | | 288 × 216 = 288,320,240,0,0,0,0 <!--Rabio Lepus--> | ||
| 248 × 224 = 248,320,224,0,0,0,0 <!-- PC Engine --> | | 248 × 224 = 248,320,224,0,0,0,0 <!-- PC Engine --> | ||
| 512 × 239 = 512,320,239,0,0,0,0 <!--SNES--> | | 512 × 239 = 512,320,239,0,0,0,0 <!--SNES--> | ||
Line 48: | Line 49: | ||
| 1792 × 828 = 320,320,147.857,0,0,0,0 <!--iOS --> | | 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--> | ||
+ | | 240 × 192 = 240,240,192,0,0,0,0 <!-- MSX --> | ||
| 256 × 212 = 256,283,212,0,0,0,0 <!-- MSX2 --> | | 256 × 212 = 256,283,212,0,0,0,0 <!-- MSX2 --> | ||
+ | | 192 × 184 = 192,245.333,184,0,0,0,0 <!-- RX-78 --> | ||
| 320 × 256 = 320,320,240,0,0,0,0 <!-- Amiga --> | | 320 × 256 = 320,320,240,0,0,0,0 <!-- Amiga --> | ||
| 304 × 224 = 304,320,224,0,0,0,0 <!-- Amiga --> | | 304 × 224 = 304,320,224,0,0,0,0 <!-- Amiga --> | ||
Line 64: | Line 67: | ||
| 336 × 240 = 336,320,240,0,0,0,0 <!-- Atari 8-bit --> | | 336 × 240 = 336,320,240,0,0,0,0 <!-- Atari 8-bit --> | ||
| 352 × 184 = 352,320,240,0,0,0,0 <!-- VIC-20 --> | | 352 × 184 = 352,320,240,0,0,0,0 <!-- VIC-20 --> | ||
+ | | 360 × 230 = 360,320,240,0,0,0,0 <!-- PC-6001 --> | ||
| 360 × 240 = 360,320,240,0,0,0,0 <!-- VIC-20 --> | | 360 × 240 = 360,320,240,0,0,0,0 <!-- VIC-20 --> | ||
| 320 × 210 | | 320 × 210 | ||
Line 102: | Line 106: | ||
left:-{{#expr:{{#var:bsl}}*{{#var:scale}}}}px | left:-{{#expr:{{#var:bsl}}*{{#var:scale}}}}px | ||
"> | "> | ||
− | [[File:{{{1| | + | [[File:{{{1|}}}|{{#expr:trunc({{#var:thumbw}}*{{#var:scale}})}}px|link={{{link|File:{{{1|}}}}}}]] |
</div> | </div> | ||
</div> | </div> | ||
Line 110: | Line 114: | ||
==Usage== | ==Usage== | ||
− | <tt><nowiki>{{bobscreen| | + | <tt><nowiki>{{bobscreen|BariBariDensetsu PCE title.png}}</nowiki></tt> |
returns | returns | ||
Line 125: | Line 129: | ||
"width" also takes into account the adjusted aspect ratio, so the image appears 120 pixels wide even if the source image is not. | "width" also takes into account the adjusted aspect ratio, so the image appears 120 pixels wide even if the source image is not. | ||
+ | ==Examples== | ||
+ | {|class="prettytable" | ||
+ | ! Code || Raw image || Output | ||
+ | |- | ||
+ | |<nowiki>{{bobscreen|MagneticField PC6001 Title.png}}</nowiki> | ||
+ | |[[File:MagneticField PC6001 Title.png]] | ||
+ | |{{bobscreen|MagneticField PC6001 Title.png}} | ||
+ | |- | ||
+ | |<nowiki>{{bobscreen|MrHeli title.png}}</nowiki> | ||
+ | |[[File:MrHeli title.png]] | ||
+ | |{{bobscreen|MrHeli title.png}} | ||
+ | |- | ||
+ | |<nowiki>{{bobscreen|PuyoPuyoCDTsuu SCDROM2 SystemCardError.png}}</nowiki> | ||
+ | |[[File:PuyoPuyoCDTsuu SCDROM2 SystemCardError.png]] | ||
+ | |{{bobscreen|PuyoPuyoCDTsuu SCDROM2 SystemCardError.png}} | ||
+ | |- | ||
+ | |<nowiki>{{bobscreen|RabioLepus Arcade Title.png}}</nowiki> | ||
+ | |[[File:RabioLepus Arcade Title.png]] | ||
+ | |{{bobscreen|RabioLepus Arcade Title.png}} | ||
+ | |- | ||
+ | |<nowiki>{{bobscreen|Cannon Ball RX-78 Title.png}}</nowiki> | ||
+ | |[[File:Cannon Ball RX-78 Title.png]] | ||
+ | |{{bobscreen|Cannon Ball RX-78 Title.png}} | ||
+ | |- | ||
+ | |<nowiki>{{bobscreen|CannonBall Spectrum Title.png}}</nowiki> | ||
+ | |[[File:CannonBall Spectrum Title.png]] | ||
+ | |{{bobscreen|CannonBall Spectrum Title.png}} | ||
+ | |} | ||
[[Category:Breakout box templates]] | [[Category:Breakout box templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 05:47, 10 June 2024
This template sets the maximum width of a screenshot to 320 pixels, and corrects its aspect ratio.
Usage
{{bobscreen|BariBariDensetsu PCE title.png}}
returns
This is how the game appears on an actual PC Engine. The original image taken from an emulator is below:
Options
{{bobscreen|BariBariDensetsu PCE 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.