Actions

Template

Difference between revisions of "Scanbox"

From Sonic Retro

 
(3 intermediate revisions by 3 users not shown)
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}}}}{{#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}}}}|}}
 
<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;"
 
{| 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|}}} | '''{{CountryCodeFormat|{{{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"><!-- 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 -->
 
| 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 -->
Line 7: Line 7:
 
</div>
 
</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}}{{#if:{{{jewelcasefront|}}}{{{jewelcaseback|}}}|{{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>
+
| 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>
 
|}
 
|}
 
</div></includeonly><noinclude>
 
</div></includeonly><noinclude>
Line 28: Line 28:
 
</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 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:
 
For additional items (up to 8), use:

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