Difference between revisions of "Template:Release infobox"
From Worms Knowledge Base
Explorer09 (Talk | contribs) m |
Explorer09 (Talk | contribs) (removed "scans" parameter, code formatted) |
||
Line 1: | Line 1: | ||
− | <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|{{PAGENAME}}}}}</th>{{#if:{{{screenshot|}}}|<tr><td colspan="2" style="text-align: center;">[[Image:{{{screenshot}}}|{{{screensize|250px}}}|{{{caption|{{{name|{{PAGENAME}}}}}}}}]]{{#if:{{{caption|}}}|<br/>{{{caption}}}}}</td></tr>}}{{#if:{{{releasetype|}}}|<tr><td style="width: 40%;">Release type:</td><td>{{{releasetype}}}</td></tr>}}{{#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>}}{{#if:{{{barcode|}}}|<tr><td style="width: 40%;">Barcode numbers:</td><td>{{{barcode}}}</td></tr>}}{{#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>}}{{#if:{{{date|{{{dates|}}}}}}|<tr><td style="width: 40%;">Release date(s):</td><td>{{{date|{{{dates}}}}}}</td></tr>}} | + | <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|{{PAGENAME}}}}}</th><!-- | ||
+ | |||
+ | -->{{#if:{{{screenshot|}}}|<tr><td colspan="2" style="text-align: center;">[[Image:{{{screenshot}}}|{{{screensize|250px}}}|{{{caption|{{{name|{{PAGENAME}}}}}}}}]]{{#if:{{{caption|}}}|<br/>{{{caption}}}}}</td></tr>}}<!-- | ||
+ | |||
+ | -->{{#if:{{{releasetype|}}}|<tr><td style="width: 40%;">Release type:</td><td>{{{releasetype}}}</td></tr>}}<!-- | ||
+ | -->{{#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>}}<!-- | ||
+ | -->{{#if:{{{barcode|}}}|<tr><td style="width: 40%;">Barcode numbers:</td><td>{{{barcode}}}</td></tr>}}<!-- | ||
+ | -->{{#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>}}<!-- | ||
+ | -->{{#if:{{{date|{{{dates|}}}}}}|<tr><td style="width: 40%;">Release date(s):</td><td>{{{date|{{{dates}}}}}}</td></tr>}}<!-- | ||
+ | |||
+ | --></table></includeonly><noinclude>{{Release_infobox | ||
|name={{{name}}} | |name={{{name}}} | ||
|screenshot=Insert-screenshot-here.png | |screenshot=Insert-screenshot-here.png | ||
Line 10: | Line 24: | ||
|countries=''{{{countries}}}'' | |countries=''{{{countries}}}'' | ||
|date=''{{{date}}}'' | |date=''{{{date}}}'' | ||
− | |||
}} | }} | ||
An infobox for game releases and compilations. | An infobox for game releases and compilations. | ||
Line 27: | Line 40: | ||
| 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/> | ||
− | |||
<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> |
Revision as of 10:52, 19 December 2009
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: 250px 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.