Difference between revisions of "Scanbox"

From Sega Retro

 
(108 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>{| class="breakout" style="display:inline; text-align:center">
+
<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}} | {{#ifeq: {{{long}}} | yes | {{#vardefine:coverheight|40}} | {{#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}}|{{#if:{{{long|}}}|{{#mediawidth:Nospine-smaller.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}}}}|}}
! {{#if: {{{console|}}} | '''''{{{console}}}, ''''' | }} {{#if: {{{region|}}} | '''''{{{region}}}''''' | }}
+
{| class="breakout" style="text-align:center;"
 +
! style="border: 0px;" | {{#if: {{{title|}}} | '''{{{title}}}''' | {{#if: {{{console|}}} | '''{{{console}}}, ''' | }} {{#if: {{{region|}}} | '''{{CountryCodeFormat|{{{region}}}}}''' | }}}}
 
|-
 
|-
| {{#if: {{{back|}}} | [[File:{{{back}}}{{!}}x120px]] | }}{{#if: {{{spine|}}} | [[File:{{{spine}}}{{!}}x120px]] | }}{{#ifeq: {{{spinemissing}}} | yes | [[File:Nospine.png]] | }}{{#if: {{{front|}}} | [[File:{{{front}}}{{!}}x120px]] | }}
+
| 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; line-height:0px; padding-right:{{#var:topalign}}px">{{rotate|[[File:{{{top}}}|{{#var:topwidth}}px]]|angle={{#if:{{{rotatetop|}}}|180|0}}}}</div> | }}<!-- top of box end -->
|}</includeonly><noinclude>
+
{{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]] | {{#if: {{{long|}}} | [[File:Nospine-smaller.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; line-height:0px; 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" style="text-align:center;" | <div style="max-width:320px" class="scanbox">{{
 +
ScanboxItem|{{{spinecard|no}}}|Spinecard|back={{{spinecardback|}}}}}{{
 +
ScanboxItem|{{{cart|no}}}|Cart|top={{{carttop|}}}|back={{{cartback|}}}}}{{
 +
ScanboxItem|{{{card|no}}}|Card|back={{{cardback|}}}}}{{
 +
ScanboxItem|{{{pcb|no}}}|PCB|back={{{pcbback|}}}}}{{
 +
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|{{{disc5|no}}}|Disc 5|back={{{disc5back|}}}}}{{
 +
ScanboxItem|{{{disc6|no}}}|Disc 6|back={{{disc6back|}}}}}{{
 +
ScanboxItem|{{{disc7|no}}}|Disc 7|back={{{disc7back|}}}}}{{
 +
ScanboxItem|{{{disc8|no}}}|Disc 8|back={{{disc8back|}}}}}{{
 +
ScanboxItem|{{{disk|no}}}|Disk|top={{{disktop|}}}|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|{{{disk5|no}}}|Disk 5|back={{{disk5back|}}}}}{{
 +
ScanboxItem|{{{disk6|no}}}|Disk 6|back={{{disk6back|}}}}}{{
 +
ScanboxItem|{{{disk7|no}}}|Disk 7|back={{{disk7back|}}}}}{{
 +
ScanboxItem|{{{disk8|no}}}|Disk 8|back={{{disk8back|}}}}}{{
 +
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|?}}}|back={{{item1back|}}}}}{{
 +
ScanboxItem|{{{item2|no}}}|{{{item2name|?}}}|back={{{item2back|}}}}}{{
 +
ScanboxItem|{{{item3|no}}}|{{{item3name|?}}}|back={{{item3back|}}}}}{{
 +
ScanboxItem|{{{item4|no}}}|{{{item4name|?}}}|back={{{item4back|}}}}}{{
 +
ScanboxItem|{{{item5|no}}}|{{{item5name|?}}}|back={{{item5back|}}}}}{{
 +
ScanboxItem|{{{item6|no}}}|{{{item6name|?}}}|back={{{item6back|}}}}}{{
 +
ScanboxItem|{{{item7|no}}}|{{{item7name|?}}}|back={{{item7back|}}}}}{{
 +
ScanboxItem|{{{item8|no}}}|{{{item8name|?}}}|back={{{item8back|}}}}}{{
 +
ScanboxItem|{{{item9|no}}}|{{{item9name|?}}}|back={{{item9back|}}}}}{{
 +
ScanboxItem|{{{item10|no}}}|{{{item10name|?}}}|back={{{item10back|}}}}}{{
 +
ScanboxItem|{{{item11|no}}}|{{{item11name|?}}}|back={{{item11back|}}}}}{{
 +
ScanboxItem|{{{item12|no}}}|{{{item12name|?}}}|back={{{item12back|}}}}}</div>
 +
|}
 +
</div>{{#if:{{{front|}}}||{{#if:{{{cover|}}}||{{#cargo_store:
 +
_table = missingscans_table
 +
|name = {{#titleparts:{{PAGENAME}}}}
 +
|console={{{console}}}
 +
|region={{{region}}}
 +
|type=box
 +
}}}}}}</includeonly><noinclude>
 +
{{#cargo_declare:
 +
_table = missingscans_table
 +
|name=Page
 +
|console=Text
 +
|region=Text
 +
|type=Text
 +
}}
 +
:'''Attention''': This template is now automatically feeding data into the MySQL database via [http://www.kwi.dk/projects/mediawiki/KwikiData/ KwikiData]. Please contact an administrator if you need to add/remove/rename/change any parameters. Changes to the appearance or documentation of the template should still be fine.
  
 
==Usage==
 
==Usage==
Line 10: Line 71:
 
| console=
 
| console=
 
| region=
 
| region=
| front=
+
| cover= (if the cover is one piece, like DVD and Mega Drive cases)
 +
| front= (otherwise)
 
| back=
 
| back=
 
| spine=
 
| spine=
 
| spinemissing=
 
| spinemissing=
 +
| square=
 +
| spinecard=
 +
| inlay=
 +
| cart=
 +
| disc=
 +
| manual=
 
}}
 
}}
 +
</pre>
 +
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:
 +
<pre>
 +
| item1=
 +
| item1name=
 +
| item2=
 +
| item2name=
 +
| item3=
 +
| item3name=
 +
| item4=
 +
| item4name=
 
</pre>
 
</pre>
  
 
==Example==
 
==Example==
 
{{Scanbox
 
{{Scanbox
 +
| console=Mega Drive
 +
| region=US
 +
| front=Columns md us cover.jpg
 +
| cart=Columns md us cart.jpg
 +
| manual=
 +
}}{{Scanbox
 
| console=Game Gear
 
| console=Game Gear
 
| region=US
 
| region=US
Line 25: Line 112:
 
| spine=
 
| spine=
 
| spinemissing=yes
 
| spinemissing=yes
 +
| cart=TLDC GG EU Cart.jpg
 +
| item1=TLDC GG EU Cart.jpg
 +
| item1name=Cart
 +
}}{{Scanbox
 +
| console=Xbox
 +
| region=US
 +
| front=PanzerDragoonOrta Xbox US Box.jpg
 +
| back=
 +
| spine=
 +
| spinemissing=
 +
| cart=
 +
| disc=PanzerDragoonOrta Xbox US Disc.jpg
 +
}}{{Scanbox
 +
| console=Dreamcast
 +
| region=US
 +
| front=EtDDotF DC US Box Front.jpg
 +
| back=EtDDotF DC US Box Back.jpg
 +
| spine=
 +
| spinemissing=
 +
| square=yes
 +
| cart=
 +
| disc=EtDDotF DC US disc.jpg
 
}}
 
}}
</noinclude>
+
[[Category:Templates]]</noinclude>

Latest revision as of 20:53, 11 November 2022

This template defines the table "missingscans_table". View table.

Attention: This template is now automatically feeding data into the MySQL database via KwikiData. Please contact an administrator if you need to add/remove/rename/change any parameters. Changes to the appearance or documentation of the template should still be fine.

Usage

{{Scanbox
| console=
| region=
| cover= (if the cover is one piece, like DVD and Mega Drive cases)
| front= (otherwise)
| back=
| spine=
| spinemissing=
| square=
| spinecard=
| inlay=
| cart=
| disc=
| manual=
}}

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

For additional items, use:

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

Example

Mega Drive, US
Columns md us cover.jpg
Cover
Columns md us cart.jpg
Cart
Game Gear, US
TLDC GG US Box Back.jpgNospine.pngTLDC GG US Box Front.jpg
Cover
TLDC GG EU Cart.jpg
Cart
TLDC GG EU Cart.jpg
Cart
Xbox, US
PanzerDragoonOrta Xbox US Box.jpg
Cover
PanzerDragoonOrta Xbox US Disc.jpg
Disc
Dreamcast, US
EtDDotF DC US Box Back.jpgEtDDotF DC US Box Front.jpg
Cover
EtDDotF DC US disc.jpg
Disc