Difference between revisions of "Template:Software"

From IRC Wiki
Jump to navigation Jump to search
(moving confusing html comments - due to the strange line breaks, this template really isn't that easy to read. I hope that helps a bit)
Line 34: Line 34:
{{!-}}
{{!-}}
! class="sw_tc1" {{!}} License:
! class="sw_tc1" {{!}} License:
{{!}} class="sw_tc2" {{!}} {{{license}}}| }}{{#if: {{{price|}}} |<!--price--><nowiki>
{{!}} class="sw_tc2" {{!}} {{{license}}}| }}<!--price-->{{#if: {{{price|}}} |<nowiki>
</nowiki>
</nowiki>
{{!-}}
{{!-}}
! class="sw_tc1" {{!}} Price:
! class="sw_tc1" {{!}} Price:
{{!}} class="sw_tc2" {{!}} {{{price}}}| }}{{#if: {{{release|}}} |<!--release--><nowiki>
{{!}} class="sw_tc2" {{!}} {{{price}}}| }}<!--release-->{{#if: {{{release|}}} |<nowiki>
</nowiki>
</nowiki>
{{!-}}
{{!-}}
! class="sw_tc1" {{!}} Latest release:
! class="sw_tc1" {{!}} Latest release:
{{!}} class="sw_tc2" {{!}} {{{release}}}| }}{{#if: {{{homepage|}}} |<!--homepage--><nowiki>
{{!}} class="sw_tc2" {{!}} {{{release}}}| }}<!--homepage-->{{#if: {{{homepage|}}} |<nowiki>
</nowiki>
</nowiki>
{{!-}}
{{!-}}

Revision as of 22:50, 31 July 2010

This is a template for software that can hold information like the name, a logo, the latest release and so on. Example:

{{Software
 |name=Example Preview
 |author=Eduard Example
 |logo=http://upload.wikimedia.org/wikipedia/commons/thumb/8/84/Example.svg/200px-Example.svg.png
 |release=0.5|homepage=http://example.com/
 |license={{Licenses/Shareware}}
 |price=$30}}

Result is visible on the right.

Example Preview
200px-Example.svg.png
Author(s): Eduard Example
License: Shareware
Price: $30
Latest release: 0.5
Homepage: http://example.com/

All the parameters except name are optional and will only be shown when a value is given.