Difference between revisions of "Template:Software infobox"
From Worms Knowledge Base
Explorer09 (Talk | contribs) (The "name" parameter now defaults to PAGENAME. Also added the "caption" parameter) |
Explorer09 (Talk | contribs) m (formatted code for readability (no content was changed)) |
||
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">{{#if:{{{icon|}}}|[[Image:{{{icon}}}|{{{iconsize|32px}}}]] }} {{{name|{{PAGENAME}}}}}</th></tr>{{#if:{{{screenshot|}}}|<tr><td colspan="2" style="text-align: center;">[[Image:{{{screenshot}}}|250px|{{{caption|{{{name|{{PAGENAME}}}}} screenshot}}}]]{{#if:{{{caption|}}}|<br/>{{{caption}}}}}</td></tr>}}{{#if:{{{developer|}}}|<tr><td style="width: 40%;">Developer:</td><td>{{{developer}}}</td></tr>}}{{#if:{{{version|}}}|<tr><td style="width: 40%;">Latest version:</td><td>{{{version}}}</td></tr>}}{{#if:{{{games|}}}|<tr><td style="width: 40%;">Supported games:</td><td>{{{games}}}</td></tr>}}{{#if:{{{platforms|}}}|<tr><td style="width: 40%;">Platform(s):</td><td>{{{platforms}}}</td></tr>}}{{#if:{{{language|}}}|<tr><td style="width: 40%;">Language:</td><td>{{{language}}}</td></tr>}}{{#if:{{{license|}}}|<tr><td style="width: 40%;">License:</td><td>{{{license}}}</td></tr>}}{{#if:{{{website|}}}|<tr><td style="width: 40%;">Website:</td><td>{{{website}}}}}{{#if:{{{download|}}}|<tr><td style="width: 40%;">'''Download:'''</td><td>{{{download}}}</td></tr>}}</table></includeonly><noinclude>{{Software_infobox | + | <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">{{#if:{{{icon|}}}|[[Image:{{{icon}}}|{{{iconsize|32px}}}]] }} {{{name|{{PAGENAME}}}}}</th></tr><!-- | ||
+ | |||
+ | -->{{#if:{{{screenshot|}}}|<tr><td colspan="2" style="text-align: center;">[[Image:{{{screenshot}}}|250px|{{{caption|{{{name|{{PAGENAME}}}}} screenshot}}}]]{{#if:{{{caption|}}}|<br/>{{{caption}}}}}</td></tr>}}<!-- | ||
+ | |||
+ | -->{{#if:{{{developer|}}}|<tr><td style="width: 40%;">Developer:</td><td>{{{developer}}}</td></tr>}}<!-- | ||
+ | -->{{#if:{{{version|}}}|<tr><td style="width: 40%;">Latest version:</td><td>{{{version}}}</td></tr>}}<!-- | ||
+ | -->{{#if:{{{games|}}}|<tr><td style="width: 40%;">Supported games:</td><td>{{{games}}}</td></tr>}}<!-- | ||
+ | -->{{#if:{{{platforms|}}}|<tr><td style="width: 40%;">Platform(s):</td><td>{{{platforms}}}</td></tr>}}<!-- | ||
+ | -->{{#if:{{{language|}}}|<tr><td style="width: 40%;">Language:</td><td>{{{language}}}</td></tr>}}<!-- | ||
+ | -->{{#if:{{{license|}}}|<tr><td style="width: 40%;">License:</td><td>{{{license}}}</td></tr>}}<!-- | ||
+ | -->{{#if:{{{website|}}}|<tr><td style="width: 40%;">Website:</td><td>{{{website}}}}}<!-- | ||
+ | -->{{#if:{{{download|}}}|<tr><td style="width: 40%;">'''Download:'''</td><td>{{{download}}}</td></tr>}}<!-- | ||
+ | |||
+ | --></table></includeonly><noinclude>{{Software_infobox | ||
|icon=Software_Generic3.png | |icon=Software_Generic3.png | ||
|name={{{name}}} | |name={{{name}}} |
Revision as of 11:01, 19 December 2009
Usage
{{Software_infobox
| icon = file.png
| iconsize = size of the icon (default: 32px)
| name = name of program (default: {{PAGENAME}})
| screenshot = file.png
| caption = caption text of the screenshot (default: "{{{name}}} screenshot")
| developer = developer(s) with wikilinks
| version = version and date
| games = the games with which the program works
| platforms = the platforms with which the program works (if particularly notable)
| language = programming language
| license = source license
| website = website for the program
| download = download link
}}
- If a parameter is not used, the table row for it will not be included.