Difference between revisions of "ScanboxItem"

From Sega Retro

m (Protected "Template:ScanboxItem": High-traffic template ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
Line 1: Line 1:
<includeonly>{{#ifeq: {{#if: {{{1|}}} | {{{1}}} | no }} | no | | <div style="display:inline-block; vertical-align:top; text-align:center; padding:4px">{{#if: {{{top|}}} | <div style="text-align:right; line-height:0px">[[File:{{{top}}}{{!}}{{d2w|{{{1}}}|{{{width|{{#if:{{#var:scansizeoverride}}|{{#var:scansizeoverride}}|50}}}}}|{{{height|{{#if:{{#var:scansizeoverride}}|{{#var:scansizeoverride}}|50}}}}}}}px]]</div> | }}{{#if: {{{back|}}} | [[File:{{{back}}}{{!}}{{{width|{{#if:{{#var:scansizeoverride}}|{{#var:scansizeoverride}}|50}}}}}x{{{height|{{#if:{{#var:scansizeoverride}}|{{#var:scansizeoverride}}|50}}}}}px]] | }}[[File:{{{1}}}{{!}}{{{width|{{#if:{{#var:scansizeoverride}}|{{#var:scansizeoverride}}|50}}}}}x{{{height|{{#if:{{#var:scansizeoverride}}|{{#var:scansizeoverride}}|50}}}}}px]]<div>{{{2|?}}}</div></div>}}</includeonly><noinclude>
+
<includeonly>{{#ifeq: {{#if: {{{1|}}} | {{{1}}} | no }} | no | | <div style="display:inline-block; vertical-align:top; text-align:center; padding:4px; max-width:{{#if:{{#var:scansizeoverride}}|{{#expr:{{#var:scansizeoverride}}*3}}|150}}px;">{{#if: {{{top|}}} | <div style="text-align:right; line-height:0px">[[File:{{{top}}}{{!}}{{d2w|{{{1}}}|{{{width|{{#if:{{#var:scansizeoverride}}|{{#var:scansizeoverride}}|50}}}}}|{{{height|{{#if:{{#var:scansizeoverride}}|{{#var:scansizeoverride}}|50}}}}}}}px]]</div> | }}{{#if: {{{back|}}} | [[File:{{{back}}}{{!}}{{{width|{{#if:{{#var:scansizeoverride}}|{{#var:scansizeoverride}}|50}}}}}x{{{height|{{#if:{{#var:scansizeoverride}}|{{#var:scansizeoverride}}|50}}}}}px]] | }}[[File:{{{1}}}{{!}}{{{width|{{#if:{{#var:scansizeoverride}}|{{#var:scansizeoverride}}|50}}}}}x{{{height|{{#if:{{#var:scansizeoverride}}|{{#var:scansizeoverride}}|50}}}}}px]]<div>{{{2|?}}}</div></div>}}</includeonly><noinclude>
 
See [[Template:Scanbox]] for usage.
 
See [[Template:Scanbox]] for usage.
 
[[Category:Sega Retro templates]]</noinclude>
 
[[Category:Sega Retro templates]]</noinclude>

Revision as of 06:20, 24 May 2021

See Template:Scanbox for usage.