Difference between revisions of "Template:Release infobox"

From Worms Knowledge Base

Jump to: navigation, search
(New template: An infobox for game releases and compilations. (adapted from Template:Software_infobox))
 
m (screensize now defaults to 200px)
 
(9 intermediate revisions by the same user not shown)
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;"><!--
|-
+
(TITLE)
! colspan="2" style="font-size: larger; text-align: center" | {{{name}}}
+
--><tr><th colspan="2" style="font-size: larger; text-align: center">{{{name|{{PAGENAME}}}}}</th></tr><!--
{{#if:{{{screenshot|}}}|
+
(SCREENSHOT)
{{!}}-
+
-->{{#if:{{{screenshot|}}}|<tr><td colspan="2" style="text-align: center;">[[Image:{{{screenshot}}}|{{{screensize|200px}}}|{{{caption|{{{name|{{PAGENAME}}}}}}}}]]{{#if:{{{caption|}}}|<br/>{{{caption}}}}}</td></tr>}}<!--
{{!}}colspan="2" style="text-align: center;"{{!}}[[Image:{{{screenshot}}}|250px|{{{name}}}]]}}
+
(LABELS)
{{#if:{{{releasetype|}}}|
+
-->{{#if:{{{releasetype|}}}|<tr><th style="width: 40%; font-weight: normal;">Release type:</th>
{{!}}-
+
<td>{{{releasetype}}}</td></tr>}}<!--
{{!}} style="width: 40%;" {{!}}Release type:
+
-->{{#if:{{{games|}}}|<tr><th style="width: 40%; font-weight: normal;">Included games:</th>
{{!}}{{{releasetype}}}}}
+
<td>{{{games}}}</td></tr>}}<!--
{{#if:{{{games|}}}|
+
-->{{#if:{{{publisher|{{{publishers|}}}}}}|<tr><th style="width: 40%; font-weight: normal;">Publisher(s):</th>
{{!}}-
+
<td>{{{publisher|{{{publishers}}}}}}</td></tr>}}<!--
{{!}} style="width: 40%;" {{!}}Included games:
+
-->{{#if:{{{barcode|}}}|<tr><th style="width: 40%; font-weight: normal;">Barcode numbers:</th>
{{!}}{{{games}}}}}
+
<td>{{{barcode}}}</td></tr>}}<!--
{{#if:{{{publisher|{{{publishers|}}}}}}|
+
-->{{#if:{{{format|}}}|<tr><th style="width: 40%; font-weight: normal;">Format:</th>
{{!}}-
+
<td>{{{format}}}</td></tr>}}<!--
{{!}} style="width: 40%;" {{!}}Publisher(s):
+
-->{{#if:{{{countries|}}}|<tr><th style="width: 40%; font-weight: normal;">Countries:</th>
{{!}}{{{publisher|{{{publishers}}}}}}}}
+
<td>{{{countries}}}</td></tr>}}<!--
{{#if:{{{barcode|}}}|
+
-->{{#if:{{{date|{{{dates|}}}}}}|<tr><th style="width: 40%; font-weight: normal;">Release date(s):</th>
{{!}}-
+
<td>{{{date|{{{dates}}}}}}</td></tr>}}<!--
{{!}} style="width: 40%;" {{!}}Barcode numbers:
+
-->{{#if:{{{website|}}}|<tr><th style="width: 40%; font-weight: normal;">Website:</th>
{{!}}{{{barcode}}}}}
+
<td>{{{website}}}</td></tr>}}<!--
{{#if:{{{format|}}}|
+
(END)
{{!}}-
+
--></table></includeonly><noinclude>{{Release_infobox
{{!}} style="width: 40%;" {{!}}Format:
+
|name={{{name}}}
{{!}}{{{format}}}}}
+
|screenshot=Insert-screenshot-here.png
{{#if:{{{countries|}}}|
+
|caption={{{caption}}}
{{!}}-
+
|releasetype=''{{{releasetype}}}''
{{!}} style="width: 40%;" {{!}}Countries:
+
|games=''{{{games}}}''
{{!}}{{{countries}}}}}
+
|publisher=''{{{publisher}}}''
{{#if:{{{date|{{{dates|}}}}}}|
+
|barcode=''{{{barcode}}}''
{{!}}-
+
|format=''{{{format}}}''
{{!}} style="width: 40%;" {{!}}Release date(s):
+
|countries=''{{{countries}}}''
{{!}}{{{date|{{{dates}}}}}}}}
+
|date=''{{{date}}}''
{{#if:{{{scans|}}}|
+
|website=''{{{website}}}''
{{!}}-
+
}}
{{!}} 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__
 
== Usage ==
 
== Usage ==
<nowiki>{{Release_infobox</nowiki><br/>
+
<nowiki>{{</nowiki>Release_infobox<br/>
| name = ''name of release''<br/>
+
| name = ''name of release (defaults to "<nowiki>{{PAGENAME}}</nowiki>")''
 +
 
 
| screenshot = ''file.png''<br/>
 
| screenshot = ''file.png''<br/>
 +
| screensize = ''size of the screenshot (default: 200px width)''<br/>
 +
| caption = ''caption text of the screenshot (defaults to "{{{name}}}")''
 +
 
| releasetype = ''release type (Retail or Compilation)''<br/>
 
| releasetype = ''release type (Retail or Compilation)''<br/>
 
| games = ''games included in the compilation''<br/>
 
| games = ''games included in the compilation''<br/>
Line 51: Line 52:
 
| countries = ''countries in which the product sold''<br/>
 
| countries = ''countries in which the product sold''<br/>
 
| date = ''release date(s)''<br/>
 
| date = ''release date(s)''<br/>
| scans = ''<nowiki>[[</nowiki>Image:file.png<nowiki>]]</nowiki> (if other scans are available)''<br/>
 
 
<nowiki>}}</nowiki>
 
<nowiki>}}</nowiki>
  
If a parameter is not used, the table row for it will not be included.
+
* If a parameter is not used, the table row for it will not be included.
 
</noinclude>
 
</noinclude>

Latest revision as of 16:18, 14 May 2010

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

An infobox for game releases and compilations.

Usage

{{Release_infobox
| name = name of release (defaults to "{{PAGENAME}}")

| screenshot = file.png
| screensize = size of the screenshot (default: 200px width)
| caption = caption text of the screenshot (defaults to "{{{name}}}")

| 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)
}}

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