Difference between revisions of "Template:Scanbox"

From TetrisWiki
Jump to navigation Jump to search
 
Line 4: Line 4:
 
</div></td>|<td align="center" style="text-align:center; padding: 0.5625em 0.625em;">
 
</div></td>|<td align="center" style="text-align:center; padding: 0.5625em 0.625em;">
 
<div style="margin:auto; max-width:181px"><span style="white-space:nowrap">{{#if: {{{back|}}} |[[image:{{{back}}}|x80px]]}}{{#if: {{{spine|}}} |[[image:{{{spine}}}|x80px]]}}[[image:{{{front}}}|x80px]]</span><div style="text-align:center">Cover</div>
 
<div style="margin:auto; max-width:181px"><span style="white-space:nowrap">{{#if: {{{back|}}} |[[image:{{{back}}}|x80px]]}}{{#if: {{{spine|}}} |[[image:{{{spine}}}|x80px]]}}[[image:{{{front}}}|x80px]]</span><div style="text-align:center">Cover</div>
</div></td>}}</tr>{{#if:{{{disc|}}}or{{{spinecard|}}}or{{{inlay|}}}|<tr style="background-color: #f4f4f6;"><td  align="center" style="text-align:center; padding: 0.5625em 0.625em;"><div style="max-width:320px" class="scanbox">{{#if: {{{spinecard|}}} |<div style="display:inline-block; vertical-align:top; text-align:center; padding:4px">[[image:{{{spinecard}}}|x50px]]<div>Spinecard</div></div>
+
</div></td>}}</tr>{{#if:{{#expr{{{disc|}}}or{{{spinecard|}}}or{{{inlay|}}}or false}}|<tr style="background-color: #f4f4f6;"><td  align="center" style="text-align:center; padding: 0.5625em 0.625em;"><div style="max-width:320px" class="scanbox">{{#if: {{{spinecard|}}} |<div style="display:inline-block; vertical-align:top; text-align:center; padding:4px">[[image:{{{spinecard}}}|x50px]]<div>Spinecard</div></div>
 
|}}{{#if: {{{disc|}}} |<div style="display:inline-block; vertical-align:top; text-align:center; padding:4px">[[image:{{{disc}}}|x50px]]<div>Disc</div></div>
 
|}}{{#if: {{{disc|}}} |<div style="display:inline-block; vertical-align:top; text-align:center; padding:4px">[[image:{{{disc}}}|x50px]]<div>Disc</div></div>
 
|}}{{#if: {{{inlay|}}} |<div style="display:inline-block; vertical-align:top; text-align:center; padding:4px">[[image:{{{inlay}}}|x50px]]<div>Inlay</div></div>
 
|}}{{#if: {{{inlay|}}} |<div style="display:inline-block; vertical-align:top; text-align:center; padding:4px">[[image:{{{inlay}}}|x50px]]<div>Inlay</div></div>

Latest revision as of 21:58, 15 September 2020


WIP

This template is WIP

TODO

  • Make non square scans bigger
{{Scanbox
|console = 
|region = 
|front = 
|back = 
|pcb = 
|square = 
|spinecard = 
|disc = 
|inlay = 
}}

Examples

CD-i, NA
Tetris CD-i boxart.jpg
Cover
CD-i, NA
Tetris CD-i boxart back.jpgTetris CD-i boxart.jpg
Cover
CD-i, NA
Tetris CD-i boxart back.jpgTetris CD-i boxart.jpg
Cover
Tetris CD-i disc.jpg
Disc
Xbox 360, JP
TGM ACE back scan.jpgTGM ACE boxart scan.jpg
Cover
TGM ACE disc scan.jpg
Disc
Sega Dreamcast, JP
Sega Tetris back cover.jpgSega Tetris boxart.jpg
Cover
Sega Tetris spine card.jpg
Spinecard
Sega Tetris disc.jpg
Disc
Sega Tetris inlay.jpg
Inlay
Sega Dreamcast, JP
Sega Tetris back cover.jpgSega Tetris boxart.jpg
Cover
Sega Tetris disc.jpg
Disc
Sega Tetris inlay.jpg
Inlay
Psikyo SH-2, JP
Tetris The Grand Master 2 The Absolute Plus arcade PCB.jpg
PCB, 310×230×33 mm