Difference between revisions of "BobscreenTest"
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>{{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)--> |
| 256 × 192 = 256,256,192,0,0,0,0 <!--Master System--> | | 256 × 192 = 256,256,192,0,0,0,0 <!--Master System--> | ||
| 248 × 192 = 248,248,192,0,0,0,0 <!--Master System (cropped)--> | | 248 × 192 = 248,248,192,0,0,0,0 <!--Master System (cropped)--> | ||
Line 92: | Line 92: | ||
</div> | </div> | ||
</div></includeonly><noinclude> | </div></includeonly><noinclude> | ||
+ | {{BobTablePlus| | ||
+ | {{BobRowPlus | ||
+ | | if=yes | ||
+ | | align=center | ||
+ | | default= | ||
+ | | content={{BobscreenTest|sonic1 title.png}} | ||
+ | }} | ||
+ | {{BobRowPlus | ||
+ | | if=yes | ||
+ | | default= | ||
+ | | content=''<span itemprop="name">testing</span>'' | ||
+ | | headline=yes | ||
+ | | align=center | ||
+ | }} | ||
+ | }} | ||
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 14:16, 24 May 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.