Actions

Template

Difference between revisions of "Scanbox"

From Sonic Retro

(Created page with "<includeonly><div style="display:inline-block; padding-right:8px; padding-bottom:8px; vertical-align:top"> {| class="breakout" style="text-align:center; max-width:200px; height:2…")
 
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly><div style="display:inline-block; padding-right:8px; padding-bottom:8px; vertical-align:top">
+
<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}}}}{{#vardefine:topwidth|{{#var:frontwidth}}}}{{#vardefine:bottomwidth|{{#var:frontwidth}}}}{{#vardefine:topalign|{{#var:spine2width}}}}{{#vardefine:bottomalign|{{#var:spine2width}}}}{{#if:{{{topright|}}}|{{#vardefine:topalign|0}}{{addvar|topwidth|{{#var:spine2width}}}}|}}{{#if:{{{bottomright|}}}|{{#vardefine:bottomalign|0}}{{addvar|bottomwidth|{{#var:spine2width}}}}|}}{{#if:{{{topleft|}}}|{{addvar|topwidth|{{#var:spinewidth}}}}|}}{{#if:{{{bottomleft|}}}|{{addvar|bottomwidth|{{#var:spinewidth}}}}|}}
{| class="breakout" style="text-align:center; max-width:200px; height:240px;">
+
{| class="breakout" style="text-align:center;"
! {{#if: {{{console|}}} | '''{{{console}}}, ''' | }} {{#if: {{{region|}}} | '''{{{region}}}''' | }}
+
! style="border: 0px;" | {{#if: {{{title|}}} | '''{{{title}}}''' | {{#if: {{{console|}}} | '''{{{console}}}, ''' | }} {{#if: {{{region|}}} | '''{{CountryCodeFormat|{{{region}}}}}''' | }}}}
 
|-
 
|-
|align="center"| {{#if: {{{back|}}} | [[File:{{{back}}}{{!}}{{#ifeq: {{{square}}} | yes | x80px | x120px }}]] | }}{{#if: {{{spine|}}} | [[File:{{{spine}}}{{!}}{{#ifeq: {{{square}}} | yes | x80px | x120px }}]] | }}{{#ifeq: {{{spinemissing}}} | yes | {{#ifeq: {{{square}}} | yes | [[File:Nospine-small.png]] | [[File:Nospine.png]] }} | }}{{#if: {{{front|}}} | [[File:{{{front}}}{{!}}{{#ifeq: {{{square}}} | yes | x80px | x120px }}]] | }}{{#if: {{{spine2|}}} | [[File:{{{spine2}}}{{!}}{{#ifeq: {{{square}}} | yes | x80px | x120px }}]] | }}<br>Cover
+
| 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"><!-- top of box start -->{{#if: {{{top|}}} | <div style="text-align:right; padding-right:{{#var:topalign}}px">{{rotate|[[File:{{{top}}}|{{#var:topwidth}}px]]|angle={{#if:{{{rotatetop|}}}|180|0}}}}</div> | }}<!-- top of box end -->
 +
{{nobr|{{#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]] | }}}}<!-- bottom of box start -->{{#if: {{{bottom|}}} | <div style="text-align:right; padding-right:{{#var:bottomalign}}px">{{rotate|[[File:{{{bottom}}}|{{#var:bottomwidth}}px]]|angle={{#if:{{{rotatebottom|}}}|180|0}}}}</div> | }}<!-- bottom of box end -->{{#if: {{{cover|}}}{{{front|}}} | <div style="text-align:center">Cover</div> | }}
 +
</div>
 
|-
 
|-
|align="center"| {{#if: {{{cart|}}} | <div style="display:inline-block; text-align:center; padding:4px">[[File:{{{cart}}}{{!}}50x50px]]<br>Cart</div> | }}{{
+
| 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|{{{cassette|no}}}|Cassette|back={{{cassetteback|}}}}}{{ScanboxItem|{{{disc|no}}}|Disc|back={{{discback|}}}}}{{ScanboxItem|{{{disc1|no}}}|Disc 1|back={{{disc1back|}}}}}{{ScanboxItem|{{{disc2|no}}}|Disc 2|back={{{disc2back|}}}}}{{ScanboxItem|{{{disc3|no}}}|Disc 3|back={{{disc3back|}}}}}{{ScanboxItem|{{{disc4|no}}}|Disc 4|back={{{disc4back|}}}}}{{ScanboxItem|{{{disk|no}}}|Disk|back={{{diskback|}}}}}{{ScanboxItem|{{{disk1|no}}}|Disk 1|back={{{disk1back|}}}}}{{ScanboxItem|{{{disk2|no}}}|Disk 2|back={{{disk2back|}}}}}{{ScanboxItem|{{{disk3|no}}}|Disk 3|back={{{disk3back|}}}}}{{ScanboxItem|{{{disk4|no}}}|Disk 4|back={{{disk4back|}}}}}{{ScanboxItem|{{{manual|no}}}|Manual}}{{ScanboxItem|{{{booklet|no}}}|Booklet}}{{ScanboxItem|{{{cards|no}}}|Cards}}{{ScanboxItem|{{{playersheets|no}}}|Player Sheets}}{{ScanboxItem|{{{boardmodules|no}}}|Board Modules}}{{ScanboxItem|{{{jewelcasefront|no}}}|Jewel Case|back={{{jewelcaseback|}}}|width=200}}{{ScanboxItem|{{{inlay|no}}}|Inlay|back={{{inlayfront|}}}|width=200}}{{ScanboxItem|{{{regcard|no}}}|Reg Card}}{{ScanboxItem|{{{poster|no}}}|Poster|back={{{posterback|}}}}}{{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: {{{disc|}}} | <div style="display:inline-block; text-align:center; padding:4px">[[File:{{{disc}}}{{!}}50x50px]]<br>Disc</div> | }}{{
 
#if: {{{manual|}}} | <div style="display:inline-block; text-align:center; padding:4px">[[File:{{{manual}}}{{!}}50x50px]]<br>Manual</div> | }}{{
 
#if: {{{item1|}}} | <div style="display:inline-block; text-align:center; padding:4px">[[File:{{{item1}}}{{!}}50x50px]]<br>{{{item1name}}}</div> | }}{{
 
#if: {{{item2|}}} | <div style="display:inline-block; text-align:center; padding:4px">[[File:{{{item2}}}{{!}}50x50px]]<br>{{{item2name}}}</div> | }}{{
 
#if: {{{item3|}}} | <div style="display:inline-block; text-align:center; padding:4px">[[File:{{{item3}}}{{!}}50x50px]]<br>{{{item3name}}}</div> | }}{{
 
#if: {{{item4|}}} | <div style="display:inline-block; text-align:center; padding:4px">[[File:{{{item4}}}{{!}}50x50px]]<br>{{{item4name}}}</div> | }}
 
 
|}
 
|}
 
</div></includeonly><noinclude>
 
</div></includeonly><noinclude>
Line 28: Line 24:
 
| disc=
 
| disc=
 
| manual=
 
| manual=
 +
| manuallink=
 
}}
 
}}
 
</pre>
 
</pre>
 
Use <tt>square=yes</tt> for games with square-shaped boxes, such as Dreamcast, Game Boy Advance or Nintendo DS games.
 
Use <tt>square=yes</tt> for games with square-shaped boxes, such as Dreamcast, Game Boy Advance or Nintendo DS games.
  
For additional items, use:
+
For item sets in tabletop games you can use:
 +
<pre>
 +
| cards=
 +
| playersheets=
 +
| boardmodules=
 +
</pre>
 +
All of these should be in PDF format.
 +
 
 +
For additional items (up to 8), use:
 
<pre>
 
<pre>
 
| item1=
 
| item1=

Latest revision as of 14:49, 20 August 2019


Usage

{{Scanbox
| console=
| region=
| front=
| back=
| spine=
| spinemissing=
| square=
| cart=
| disc=
| manual=
| manuallink=
}}

Use square=yes for games with square-shaped boxes, such as Dreamcast, Game Boy Advance or Nintendo DS games.

For item sets in tabletop games you can use:

| cards=
| playersheets=
| boardmodules=

All of these should be in PDF format.

For additional items (up to 8), use:

| item1=
| item1name=
| item2=
| item2name=
| item3=
| item3name=
| item4=
| item4name=

Example

Mega Drive, EU
Sonic1 box eu.jpg
Cover
S1-md-eu-cart.jpg
Cart
Game Gear, JP
Sandt jp back cover.jpgNospine.pngSchaosgg-box-jap.jpg
Cover
Snt gg jp cart.jpg
Cart
Dreamcast, US
Shuffle us back cover.jpgShuffle us boxart.jpg
Cover
Shuffle us cd.jpg
Disc
Shuffle us nfr cd.jpg
Not for Resale Disc