Difference between revisions of "Template:Software infobox"
From Worms Knowledge Base
Explorer09 (Talk | contribs) m (formatted code for readability (no content was changed)) |
Explorer09 (Talk | contribs) m (optimized code) |
||
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">{{#if:{{{icon|}}}|[[Image:{{{icon}}}|{{{iconsize|32px}}}]] }} {{{name|{{PAGENAME}}}}}</th></tr><!-- | + | --><tr><th colspan="2" style="font-size: larger; text-align: center">{{#if:{{{icon|}}}|[[Image:{{{icon}}}|{{{iconsize|32px}}}]] }}{{{name|{{PAGENAME}}}}}</th></tr><!-- |
− | + | (SCREENSHOT) | |
− | -->{{#if:{{{screenshot|}}}|<tr><td colspan="2" style="text-align: center;">[[Image:{{{screenshot}}}|250px|{{{caption|{{{name|{{PAGENAME}}}}} screenshot}}}]]{{#if:{{{caption|}}}|<br/>{{{caption}}}}}</td></tr>}}<!-- | + | -->{{#if:{{{screenshot|}}}|<tr><td colspan="2" style="text-align: center;">[[Image:{{{screenshot}}}|{{{screensize|250px}}}|{{{caption|{{{name|{{PAGENAME}}}}} screenshot}}}]]{{#if:{{{caption|}}}|<br/>{{{caption}}}}}</td></tr>}}<!-- |
− | + | (LABELS) | |
− | -->{{#if:{{{developer|}}}|<tr>< | + | -->{{#if:{{{developer|}}}|<tr><th style="width: 40%; font-weight: normal;">Developer:</th> |
− | -->{{#if:{{{version|}}}|<tr>< | + | <td>{{{developer}}}</td></tr>}}<!-- |
− | -->{{#if:{{{games|}}}|<tr>< | + | -->{{#if:{{{version|}}}|<tr><th style="width: 40%; font-weight: normal;">Latest version:</th> |
− | -->{{#if:{{{platforms|}}}|<tr>< | + | <td>{{{version}}}</td></tr>}}<!-- |
− | -->{{#if:{{{language|}}}|<tr>< | + | -->{{#if:{{{games|}}}|<tr><th style="width: 40%; font-weight: normal;">Supported games:</th> |
− | -->{{#if:{{{license|}}}|<tr>< | + | <td>{{{games}}}</td></tr>}}<!-- |
− | -->{{#if:{{{website|}}}|<tr>< | + | -->{{#if:{{{platforms|}}}|<tr><th style="width: 40%; font-weight: normal;">Platform(s):</th> |
− | -->{{#if:{{{download|}}}|<tr>< | + | <td>{{{platforms}}}</td></tr>}}<!-- |
− | + | -->{{#if:{{{language|}}}|<tr><th style="width: 40%; font-weight: normal;">Language:</th> | |
+ | <td>{{{language}}}</td></tr>}}<!-- | ||
+ | -->{{#if:{{{license|}}}|<tr><th style="width: 40%; font-weight: normal;">License:</th> | ||
+ | <td>{{{license}}}</td></tr>}}<!-- | ||
+ | -->{{#if:{{{website|}}}|<tr><th style="width: 40%; font-weight: normal;">Website:</th> | ||
+ | <td>{{{website}}}}}<!-- | ||
+ | -->{{#if:{{{download|}}}|<tr><th style="width: 40%; font-weight: bold;">Download:</th> | ||
+ | <td>{{{download}}}</td></tr>}}<!-- | ||
+ | (END) | ||
--></table></includeonly><noinclude>{{Software_infobox | --></table></includeonly><noinclude>{{Software_infobox | ||
|icon=Software_Generic3.png | |icon=Software_Generic3.png | ||
Line 30: | Line 38: | ||
__NOEDITSECTION__ | __NOEDITSECTION__ | ||
== Usage == | == Usage == | ||
− | <nowiki>{{ | + | <nowiki>{{</nowiki>Software_infobox<br/> |
| icon = ''file.png''<br/> | | icon = ''file.png''<br/> | ||
− | | iconsize = ''size of the icon (default: 32px)'' | + | | iconsize = ''size of the icon (default: 32px)'' |
− | | name = ''name of program (default: <nowiki>{{PAGENAME}}</nowiki>)'' | + | |
+ | | name = ''name of program (default: <nowiki>{{PAGENAME}}</nowiki>)'' | ||
+ | |||
| screenshot = ''file.png''<br/> | | screenshot = ''file.png''<br/> | ||
− | | caption = ''caption text of the screenshot (default: "{{{name}}} screenshot")'' | + | | screensize = size of the screenshot (default: 250px width)<br/> |
+ | | caption = ''caption text of the screenshot (default: "{{{name}}} screenshot")'' | ||
+ | |||
| developer = ''developer(s) with wikilinks''<br/> | | developer = ''developer(s) with wikilinks''<br/> | ||
| version = ''version and date''<br/> | | version = ''version and date''<br/> |
Revision as of 15:29, 12 January 2010
Usage
{{Software_infobox
| icon = file.png
| iconsize = size of the icon (default: 32px)
| name = name of program (default: {{PAGENAME}})
| screenshot = file.png
| screensize = size of the screenshot (default: 250px width)
| 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.