Difference between revisions of "Template:Release infobox"
From Worms Knowledge Base
Explorer09 (Talk | contribs) (removed "scans" parameter, code formatted) |
Explorer09 (Talk | contribs) (optimized code (for screen readers)) |
||
Line 1: | Line 1: | ||
<includeonly><table 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) | |
− | --><tr><th colspan="2" style="font-size: larger; text-align: center">{{{name|{{PAGENAME}}}}}</th><!-- | + | --><tr><th colspan="2" style="font-size: larger; text-align: center">{{{name|{{PAGENAME}}}}}</th></tr><!-- |
− | + | (SCREENSHOT) | |
-->{{#if:{{{screenshot|}}}|<tr><td colspan="2" style="text-align: center;">[[Image:{{{screenshot}}}|{{{screensize|250px}}}|{{{caption|{{{name|{{PAGENAME}}}}}}}}]]{{#if:{{{caption|}}}|<br/>{{{caption}}}}}</td></tr>}}<!-- | -->{{#if:{{{screenshot|}}}|<tr><td colspan="2" style="text-align: center;">[[Image:{{{screenshot}}}|{{{screensize|250px}}}|{{{caption|{{{name|{{PAGENAME}}}}}}}}]]{{#if:{{{caption|}}}|<br/>{{{caption}}}}}</td></tr>}}<!-- | ||
− | + | (LABELS) | |
− | -->{{#if:{{{releasetype|}}}|<tr>< | + | -->{{#if:{{{releasetype|}}}|<tr><th style="width: 40%; font-weight: normal;">Release type:</th> |
− | -->{{#if:{{{games|}}}|<tr>< | + | <td>{{{releasetype}}}</td></tr>}}<!-- |
− | -->{{#if:{{{publisher|{{{publishers|}}}}}}|<tr>< | + | -->{{#if:{{{games|}}}|<tr><th style="width: 40%; font-weight: normal;">Included games:</th> |
− | -->{{#if:{{{barcode|}}}|<tr>< | + | <td>{{{games}}}</td></tr>}}<!-- |
− | -->{{#if:{{{format|}}}|<tr>< | + | -->{{#if:{{{publisher|{{{publishers|}}}}}}|<tr><th style="width: 40%; font-weight: normal;">Publisher(s):</th> |
− | -->{{#if:{{{countries|}}}|<tr>< | + | <td>{{{publisher|{{{publishers}}}}}}</td></tr>}}<!-- |
− | -->{{#if:{{{date|{{{dates|}}}}}}|<tr>< | + | -->{{#if:{{{barcode|}}}|<tr><th style="width: 40%; font-weight: normal;">Barcode numbers:</th> |
− | + | <td>{{{barcode}}}</td></tr>}}<!-- | |
+ | -->{{#if:{{{format|}}}|<tr><th style="width: 40%; font-weight: normal;">Format:</th> | ||
+ | <td>{{{format}}}</td></tr>}}<!-- | ||
+ | -->{{#if:{{{countries|}}}|<tr><th style="width: 40%; font-weight: normal;">Countries:</th> | ||
+ | <td>{{{countries}}}</td></tr>}}<!-- | ||
+ | -->{{#if:{{{date|{{{dates|}}}}}}|<tr><th style="width: 40%; font-weight: normal;">Release date(s):</th> | ||
+ | <td>{{{date|{{{dates}}}}}}</td></tr>}}<!-- | ||
+ | (END) | ||
--></table></includeonly><noinclude>{{Release_infobox | --></table></includeonly><noinclude>{{Release_infobox | ||
|name={{{name}}} | |name={{{name}}} | ||
Line 28: | Line 35: | ||
__NOEDITSECTION__ | __NOEDITSECTION__ | ||
== Usage == | == Usage == | ||
− | <nowiki>{{ | + | <nowiki>{{</nowiki>Release_infobox<br/> |
− | | name = ''name of release (defaults to "<nowiki>{{PAGENAME}}</nowiki>")'' | + | | name = ''name of release (defaults to "<nowiki>{{PAGENAME}}</nowiki>")'' |
+ | {{gap}} | ||
| screenshot = ''file.png''<br/> | | screenshot = ''file.png''<br/> | ||
| screensize = ''size of the screenshot (default: 250px width)''<br/> | | screensize = ''size of the screenshot (default: 250px width)''<br/> | ||
− | | caption = ''caption text of the screenshot (defaults to "{{{name}}}")'' | + | | caption = ''caption text of the screenshot (defaults to "{{{name}}}")'' |
+ | {{gap}} | ||
| 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/> |
Revision as of 15:17, 12 January 2010
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.