Difference between revisions of "ScanboxTest"

From Sega Retro

Line 1: Line 1:
 
<includeonly><div align="center" style="display:inline-block; padding-right:8px; padding-bottom:8px; vertical-align:top; text-align:center; ">{{#ifeq: {{{square}}} | yes | {{#vardefine:coverheight|80}} | {{#vardefine:coverheight|120}} }}{{#vardefine:coverwidth|{{#if:{{{cover|}}}|{{h2w|{{{cover}}}|{{#var:coverheight}}}}|0}}}}{{#vardefine:frontwidth|{{#if:{{{front|}}}|{{h2w|{{{front}}}|{{#var:coverheight}}}}|0}}}}{{#vardefine:backwidth|{{#if:{{{back|}}}|{{h2w|{{{back}}}|{{#var:coverheight}}}}|0}}}}{{#vardefine:spinewidth|{{#if:{{{spine|}}}|{{h2w|{{{spine}}}|{{#var:coverheight}}}}|0}}}}{{#vardefine:spine2width|{{#if:{{{spine2|}}}|{{h2w|{{{spine2}}}|{{#var:coverheight}}}}|0}}}}{{#vardefine:nospinewidth|{{#if:{{{spinemissing|}}}|{{#if:{{{square|}}}|{{#mediawidth:Nospine-small.png}}|{{#mediawidth:Nospine.png}}}}|0}}}}
 
<includeonly><div align="center" style="display:inline-block; padding-right:8px; padding-bottom:8px; vertical-align:top; text-align:center; ">{{#ifeq: {{{square}}} | yes | {{#vardefine:coverheight|80}} | {{#vardefine:coverheight|120}} }}{{#vardefine:coverwidth|{{#if:{{{cover|}}}|{{h2w|{{{cover}}}|{{#var:coverheight}}}}|0}}}}{{#vardefine:frontwidth|{{#if:{{{front|}}}|{{h2w|{{{front}}}|{{#var:coverheight}}}}|0}}}}{{#vardefine:backwidth|{{#if:{{{back|}}}|{{h2w|{{{back}}}|{{#var:coverheight}}}}|0}}}}{{#vardefine:spinewidth|{{#if:{{{spine|}}}|{{h2w|{{{spine}}}|{{#var:coverheight}}}}|0}}}}{{#vardefine:spine2width|{{#if:{{{spine2|}}}|{{h2w|{{{spine2}}}|{{#var:coverheight}}}}|0}}}}{{#vardefine:nospinewidth|{{#if:{{{spinemissing|}}}|{{#if:{{{square|}}}|{{#mediawidth:Nospine-small.png}}|{{#mediawidth:Nospine.png}}}}|0}}}}
{| class="breakout" style="text-align:center; max-width:320px"
+
{| class="breakout" style="text-align:center;"
 
! style="border: 0px;" | {{#if: {{{title|}}} | '''{{{title}}}''' | {{#if: {{{console|}}} | '''{{{console}}}, ''' | }} {{#if: {{{region|}}} | '''{{{region}}}''' | }}}}
 
! style="border: 0px;" | {{#if: {{{title|}}} | '''{{{title}}}''' | {{#if: {{{console|}}} | '''{{{console}}}, ''' | }} {{#if: {{{region|}}} | '''{{{region}}}''' | }}}}
 
|-
 
|-
| align="center" style="text-align:center; | <div style="margin:auto; max-width:{{#expr:{{#var:coverwidth}}+{{#var:frontwidth}}+{{#var:backwidth}}+{{#var:spinewidth}}+{{#var:spine2width}}+{{#var:nospinewidth}}}}px">{{#if: {{{top|}}} | <div style="text-align:right; line-height:0px; padding-right:{{#var:spine2width}}px">[[File:{{{top}}}|{{#var:frontwidth}}px]]</div> | }}
+
| align="center" style="text-align:center;" | <div style="margin:auto; max-width:{{#expr:{{#var:coverwidth}}+{{#var:frontwidth}}+{{#var:backwidth}}+{{#var:spinewidth}}+{{#var:spine2width}}+{{#var:nospinewidth}}}}px">{{#if: {{{top|}}} | <div style="text-align:right; line-height:0px; padding-right:{{#var:spine2width}}px">[[File:{{{top}}}|{{#var:frontwidth}}px]]</div> | }}
 
{{#if: {{{cover|}}} | [[File:{{{cover}}}|320x{{#var:coverheight}}px]] | }}{{#if: {{{back|}}} | [[File:{{{back}}}|320x{{#var:coverheight}}px]] | }}{{#if: {{{spine|}}} | [[File:{{{spine}}}|320x{{#var:coverheight}}px]] | }}{{#if: {{{spinemissing|}}} | {{#if: {{{square|}}} | [[File:Nospine-small.png]] | [[File:Nospine.png]] }} | }}{{#if: {{{front|}}} | [[File:{{{front}}}|320x{{#var:coverheight}}px]] | }}{{#if: {{{spine2|}}} | [[File:{{{spine2}}}|320x{{#var:coverheight}}px]] | }}{{#if: {{{bottom|}}} | <div style="text-align:right; line-height:0px; padding-right:{{#var:spine2width}}px">[[File:{{{bottom}}}|{{#var:frontwidth}}px]]</div> | }}{{#if: {{{cover|}}}{{{front|}}} | <div style="text-align:center">Cover</div> | }}
 
{{#if: {{{cover|}}} | [[File:{{{cover}}}|320x{{#var:coverheight}}px]] | }}{{#if: {{{back|}}} | [[File:{{{back}}}|320x{{#var:coverheight}}px]] | }}{{#if: {{{spine|}}} | [[File:{{{spine}}}|320x{{#var:coverheight}}px]] | }}{{#if: {{{spinemissing|}}} | {{#if: {{{square|}}} | [[File:Nospine-small.png]] | [[File:Nospine.png]] }} | }}{{#if: {{{front|}}} | [[File:{{{front}}}|320x{{#var:coverheight}}px]] | }}{{#if: {{{spine2|}}} | [[File:{{{spine2}}}|320x{{#var:coverheight}}px]] | }}{{#if: {{{bottom|}}} | <div style="text-align:right; line-height:0px; padding-right:{{#var:spine2width}}px">[[File:{{{bottom}}}|{{#var:frontwidth}}px]]</div> | }}{{#if: {{{cover|}}}{{{front|}}} | <div style="text-align:center">Cover</div> | }}
 
</div>
 
</div>
 
|-
 
|-
| align="center" style="text-align:center" | {{ScanboxItem|{{{spinecard|no}}}|Spinecard}}{{ScanboxItem|{{{cart|no}}}|Cart|top={{{carttop|}}}|back={{{cartback|}}}}}{{ScanboxItem|{{{card|no}}}|Card|back={{{cardback|}}}}}{{ScanboxItem|{{{disc|no}}}|Disc|back={{{discback|}}}}}{{ScanboxItem|{{{disk|no}}}|Disk|back={{{diskback|}}}}}{{ScanboxItem|{{{manual|no}}}|Manual}}{{ScanboxItem|{{{booklet|no}}}|Booklet}}{{#if:{{{jewelcasefront|}}}{{{jewelcaseback|}}}|{{ScanboxItem|{{{jewelcasefront|no}}}|Jewel Case|back={{{jewelcaseback|}}}}}|}}{{ScanboxItem|{{{inlay|no}}}|Inlay|back={{{inlayfront|}}}}}{{ScanboxItem|{{{regcard|no}}}|Reg Card}}{{ScanboxItem|{{{item1|no}}}|{{{item1name|?}}}}}{{ScanboxItem|{{{item2|no}}}|{{{item2name|?}}}}}{{ScanboxItem|{{{item3|no}}}|{{{item3name|?}}}}}{{ScanboxItem|{{{item4|no}}}|{{{item4name|?}}}}}{{ScanboxItem|{{{item5|no}}}|{{{item5name|?}}}}}{{ScanboxItem|{{{item6|no}}}|{{{item6name|?}}}}}{{ScanboxItem|{{{item7|no}}}|{{{item7name|?}}}}}{{ScanboxItem|{{{item8|no}}}|{{{item8name|?}}}}}
+
| align="center" style="text-align:center;" | <div style="max-width:320px">{{ScanboxItem|{{{spinecard|no}}}|Spinecard}}{{ScanboxItem|{{{cart|no}}}|Cart|top={{{carttop|}}}|back={{{cartback|}}}}}{{ScanboxItem|{{{card|no}}}|Card|back={{{cardback|}}}}}{{ScanboxItem|{{{disc|no}}}|Disc|back={{{discback|}}}}}{{ScanboxItem|{{{disk|no}}}|Disk|back={{{diskback|}}}}}{{ScanboxItem|{{{manual|no}}}|Manual}}{{ScanboxItem|{{{booklet|no}}}|Booklet}}{{#if:{{{jewelcasefront|}}}{{{jewelcaseback|}}}|{{ScanboxItem|{{{jewelcasefront|no}}}|Jewel Case|back={{{jewelcaseback|}}}}}|}}{{ScanboxItem|{{{inlay|no}}}|Inlay|back={{{inlayfront|}}}}}{{ScanboxItem|{{{regcard|no}}}|Reg Card}}{{ScanboxItem|{{{item1|no}}}|{{{item1name|?}}}}}{{ScanboxItem|{{{item2|no}}}|{{{item2name|?}}}}}{{ScanboxItem|{{{item3|no}}}|{{{item3name|?}}}}}{{ScanboxItem|{{{item4|no}}}|{{{item4name|?}}}}}{{ScanboxItem|{{{item5|no}}}|{{{item5name|?}}}}}{{ScanboxItem|{{{item6|no}}}|{{{item6name|?}}}}}{{ScanboxItem|{{{item7|no}}}|{{{item7name|?}}}}}{{ScanboxItem|{{{item8|no}}}|{{{item8name|?}}}}}</div>
|}
+
|}{{#if: {{{item1|}}}{{{item2|}}} | [[Category:Games with extra scans]] | }}
 
</div></includeonly>
 
</div></includeonly>

Revision as of 14:51, 23 February 2015