Difference between revisions of "Template:Software infobox"

From Worms Knowledge Base

Jump to: navigation, search
m (fix a bug)
(now use the HTML table markup, because the wikicode may cause parsing errors when few parameters are used.)
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;"><tr><th colspan="2" style="font-size: larger; text-align: center">{{#if:{{{icon|}}}|[[Image:{{{icon}}}|{{{iconsize|32px}}}]]&nbsp;}} {{{name}}}</th></tr>
|-
+
{{#if:{{{screenshot|}}}|<tr><td colspan="2" style="text-align: center;">[[Image:{{{screenshot}}}|250px|{{{name}}}]]</td></tr>}}
! colspan="2" style="font-size: larger; text-align: center" | {{#if:{{{icon|}}}|[[Image:{{{icon}}}|{{{iconsize|32px}}}]]&nbsp;}} {{{name}}}
+
{{#if:{{{developer|}}}|<tr><td style="width: 40%;">Developer:</td><td>{{{developer}}}</td></tr>}}
{{#if:{{{screenshot|}}}|
+
{{#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>}}
{{!}}colspan="2" style="text-align: center;"{{!}}[[Image:{{{screenshot}}}|250px|{{{name}}}]]}}
+
{{#if:{{{platforms|}}}|<tr><td style="width: 40%;">Platform(s):</td><td>{{{platforms}}}</td></tr>}}
{{#if:{{{developer|}}}|
+
{{#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>}}
{{!}} style="width: 40%;" {{!}}Developer:
+
{{#if:{{{website|}}}|<tr><td style="width: 40%;">Website:</td><td>{{{website}}}}}
{{!}}{{{developer}}}}}
+
{{#if:{{{download|}}}|<tr><td style="width: 40%;">'''Download:'''</td><td>{{{download}}}</td></tr>}}
{{#if:{{{version|}}}|
+
</table></includeonly><noinclude>{{Software_infobox|icon=Software_Generic3.png|name={{{name}}}|screenshot=Insert-screenshot-here.png|developer=''{{{developer}}}''|version=''{{{version}}}''|games=''{{{games}}}''|platforms=''{{{platforms}}}''|language=''{{{language}}}''|license=''{{{license}}}''|website=''{{{website}}}''|download=''{{{download}}}''}}
{{!}}-
+
{{!}} style="width: 40%;" {{!}}Latest version:
+
{{!}}{{{version}}}}}
+
{{#if:{{{games|}}}|
+
{{!}}-
+
{{!}} style="width: 40%;" {{!}}Supported games:
+
{{!}}{{{games}}}}}
+
{{#if:{{{platforms|}}}|
+
{{!}}-
+
{{!}} style="width: 40%;" {{!}}Platform(s):
+
{{!}}{{{platforms}}}}}
+
{{#if:{{{language|}}}|
+
{{!}}-
+
{{!}} style="width: 40%;" {{!}}Language:
+
{{!}}{{{language}}}}}
+
{{#if:{{{license|}}}|
+
{{!}}-
+
{{!}} style="width: 40%;" {{!}}License:
+
{{!}}{{{license}}}}}
+
{{#if:{{{website|}}}|
+
{{!}}-
+
{{!}} style="width: 40%;" {{!}}Website:
+
{{!}}{{{website}}}}}
+
{{#if:{{{download|}}}|
+
{{!}}-
+
{{!}} style="width: 40%;" {{!}}'''Download:'''
+
{{!}}{{{download}}}
+
{{!}}}|{{!}}} }}
+
</includeonly><noinclude>{{Software_infobox|icon=Software_Generic3.png|name={{{name}}}|screenshot=Insert-screenshot-here.png|developer=''{{{developer}}}''|version=''{{{version}}}''|games=''{{{games}}}''|platforms=''{{{platforms}}}''|language=''{{{language}}}''|license=''{{{license}}}''|website=''{{{website}}}''|download=''{{{download}}}''}}
+
 
__NOEDITSECTION__
 
__NOEDITSECTION__
 
== Usage ==
 
== Usage ==

Revision as of 05:48, 23 August 2009

icon {{{name}}}
{{{name}}} screenshot
Developer: {{{developer}}}
Latest version: {{{version}}}
Supported games: {{{games}}}
Platform(s): {{{platforms}}}
Language: {{{language}}}
License: {{{license}}}
Website: {{{website}}}
Download: {{{download}}}

Usage

{{Software_infobox
| icon = file.png
| iconsize = 32px
| name = name of program
| screenshot = file.png
| 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.
Personal tools