Difference between revisions of "Template:Release infobox"

From Worms Knowledge Base

Jump to: navigation, search
m (add the ability to change the screenshot size)
(now use the HTML table markup, because the wikicode may cause parsing errors when few parameters are used.)
Line 1: Line 1:
<includeonly>{| class="infobox" cellspacing="2" style="width: 21em; font-size: 90%; text-align: left;"
+
<includeonly><table class="infobox" cellspacing="2" style="width: 21em; font-size: 90%; text-align: left;"><tr><th colspan="2" style="font-size: larger; text-align: center">{{{name}}}</th>
|-
+
{{#if:{{{screenshot|}}}|<tr><td colspan="2" style="text-align: center;">[[Image:{{{screenshot}}}|{{{screensize|250px}}}|{{{name}}}]]</td></tr>}}
! colspan="2" style="font-size: larger; text-align: center" | {{{name}}}
+
{{#if:{{{releasetype|}}}|<tr><td style="width: 40%;">Release type:</td><td>{{{releasetype}}}</td></tr>}}
{{#if:{{{screenshot|}}}|
+
{{#if:{{{games|}}}|<tr><td style="width: 40%;">Included games:</td><td>{{{games}}}</td></tr>}}
{{!}}-
+
{{#if:{{{publisher|{{{publishers|}}}}}}|<tr><td style="width: 40%;">Publisher(s):</td><td>{{{publisher|{{{publishers}}}}}}</td></tr>}}
{{!}}colspan="2" style="text-align: center;"{{!}}[[Image:{{{screenshot}}}|{{{screensize|250px}}}|{{{name}}}]]}}
+
{{#if:{{{barcode|}}}|<tr><td style="width: 40%;">Barcode numbers:</td><td>{{{barcode}}}</td></tr>}}
{{#if:{{{releasetype|}}}|
+
{{#if:{{{format|}}}|<tr><td style="width: 40%;">Format:</td><td>{{{format}}}</td></tr>}}
{{!}}-
+
{{#if:{{{countries|}}}|<tr><td style="width: 40%;">Countries:</td><td>{{{countries}}}</td></tr>}}
{{!}} style="width: 40%;" {{!}}Release type:
+
{{#if:{{{date|{{{dates|}}}}}}|<tr><td style="width: 40%;">Release date(s):</td><td>{{{date|{{{dates}}}}}}</td></tr>}}
{{!}}{{{releasetype}}}}}
+
{{#if:{{{scans|}}}|<tr><td style="width: 40%;">Scans:</td><td>{{{scans}}}</td></tr>}}</table></includeonly><noinclude>{{Release_infobox
{{#if:{{{games|}}}|
+
|name={{{name}}}
{{!}}-
+
|screenshot=Insert-screenshot-here.png
{{!}} style="width: 40%;" {{!}}Included games:
+
|releasetype=''{{{releasetype}}}''
{{!}}{{{games}}}}}
+
|games=''{{{games}}}''
{{#if:{{{publisher|{{{publishers|}}}}}}|
+
|publisher=''{{{publisher}}}''
{{!}}-
+
|barcode=''{{{barcode}}}''
{{!}} style="width: 40%;" {{!}}Publisher(s):
+
|format=''{{{format}}}''
{{!}}{{{publisher|{{{publishers}}}}}}}}
+
|countries=''{{{countries}}}''
{{#if:{{{barcode|}}}|
+
|date=''{{{date}}}''
{{!}}-
+
|scans=''{{{scans}}}''
{{!}} style="width: 40%;" {{!}}Barcode numbers:
+
}}
{{!}}{{{barcode}}}}}
+
{{#if:{{{format|}}}|
+
{{!}}-
+
{{!}} style="width: 40%;" {{!}}Format:
+
{{!}}{{{format}}}}}
+
{{#if:{{{countries|}}}|
+
{{!}}-
+
{{!}} style="width: 40%;" {{!}}Countries:
+
{{!}}{{{countries}}}}}
+
{{#if:{{{date|{{{dates|}}}}}}|
+
{{!}}-
+
{{!}} style="width: 40%;" {{!}}Release date(s):
+
{{!}}{{{date|{{{dates}}}}}}}}
+
{{#if:{{{scans|}}}|
+
{{!}}-
+
{{!}} style="width: 40%;" {{!}}Scans:
+
{{!}}{{{scans}}}}}
+
|}</includeonly><noinclude>{{Release_infobox|name={{{name}}}|screenshot=Insert-screenshot-here.png|releasetype=''{{{releasetype}}}''|games=''{{{games}}}''|publisher=''{{{publisher}}}''|barcode=''{{{barcode}}}''|format=''{{{format}}}''|countries=''{{{countries}}}''|date=''{{{date}}}''|scans=''{{{scans}}}''}}
+
 
An infobox for game releases and compilations.
 
An infobox for game releases and compilations.
 
__NOEDITSECTION__
 
__NOEDITSECTION__

Revision as of 06:02, 23 August 2009

{{{name}}}
{{{name}}}
Release type: {{{releasetype}}}
Included games: {{{games}}}
Publisher(s): {{{publisher}}}
Barcode numbers: {{{barcode}}}
Format: {{{format}}}
Countries: {{{countries}}}
Release date(s): {{{date}}}

An infobox for game releases and compilations.

Usage

{{Release_infobox
| name = name of release
| screenshot = file.png
| screensize = size of the screenshot (default: 250px width)
| releasetype = release type (Retail or Compilation)
| games = games included in the compilation
| publisher = publisher
| barcode = barcode numbers
| format = number of CDs (or DVD?)
| countries = countries in which the product sold
| date = release date(s)
| scans = [[Image:file.png]] (if other scans are available)
}}

  • If a parameter is not used, the table row for it will not be included.
Personal tools