Difference between revisions of "Template:VersionAndDate"

From LXDE.org
Jump to: navigation, search
(Create template to easy wiki maintenance.)
 
m (Fix component names.)
Line 6: Line 6:
 
  | lxappearance            = {{#if: {{{2}}} | 0.6.1}}  {{#if: {{{3}}} | 2014-10-23}}
 
  | lxappearance            = {{#if: {{{2}}} | 0.6.1}}  {{#if: {{{3}}} | 2014-10-23}}
 
  | lxappearance-obconf    = {{#if: {{{2}}} | 0.2.2}}  {{#if: {{{3}}} | 2014-09-16}}
 
  | lxappearance-obconf    = {{#if: {{{2}}} | 0.2.2}}  {{#if: {{{3}}} | 2014-09-16}}
  | lxdamin                = {{#if: {{{2}}} | 0.0.1}}  {{#if: {{{3}}} | unknown}}
+
  | lxamin                  = {{#if: {{{2}}} | 0.0.1}}  {{#if: {{{3}}} | unknown}}
 
  | lxde-common            = {{#if: {{{2}}} | 0.99.0}}  {{#if: {{{3}}} | 2014-10-23}}
 
  | lxde-common            = {{#if: {{{2}}} | 0.99.0}}  {{#if: {{{3}}} | 2014-10-23}}
 
  | lxde-icon-theme        = {{#if: {{{2}}} | 0.5.1}}  {{#if: {{{3}}} | 2014-09-10}}
 
  | lxde-icon-theme        = {{#if: {{{2}}} | 0.5.1}}  {{#if: {{{3}}} | 2014-09-10}}
 
  | lxdm                    = {{#if: {{{2}}} | 0.5.0}}  {{#if: {{{3}}} | 2014-05-11}}
 
  | lxdm                    = {{#if: {{{2}}} | 0.5.0}}  {{#if: {{{3}}} | 2014-05-11}}
| lxdm-applet            = {{#if: {{{2}}} | unknown}} {{#if: {{{3}}} | unknown}}
 
 
  | lxine                  = {{#if: {{{2}}} | unknown}} {{#if: {{{3}}} | unknown}}
 
  | lxine                  = {{#if: {{{2}}} | unknown}} {{#if: {{{3}}} | unknown}}
 
  | lxinput                = {{#if: {{{2}}} | 0.3.4}}  {{#if: {{{3}}} | 2014-10-20}}
 
  | lxinput                = {{#if: {{{2}}} | 0.3.4}}  {{#if: {{{3}}} | 2014-10-20}}
Line 17: Line 16:
 
  | lxmusic                = {{#if: {{{2}}} | 0.4.6}}  {{#if: {{{3}}} | 2014-09-06}}
 
  | lxmusic                = {{#if: {{{2}}} | 0.4.6}}  {{#if: {{{3}}} | 2014-09-06}}
 
  | lxnm                    = {{#if: {{{2}}} | 0.2.2}}  {{#if: {{{3}}} | 2008-09-07}}
 
  | lxnm                    = {{#if: {{{2}}} | 0.2.2}}  {{#if: {{{3}}} | 2008-09-07}}
 +
| lxnm-applet            = {{#if: {{{2}}} | unknown}} {{#if: {{{3}}} | unknown}}
 
  | lxpanel                = {{#if: {{{2}}} | 0.7.2}}  {{#if: {{{3}}} | 2014-10-23}}
 
  | lxpanel                = {{#if: {{{2}}} | 0.7.2}}  {{#if: {{{3}}} | 2014-10-23}}
 
  | lxpanel-plugins        = {{#if: {{{2}}} | unknown}} {{#if: {{{3}}} | unknown}}  
 
  | lxpanel-plugins        = {{#if: {{{2}}} | unknown}} {{#if: {{{3}}} | unknown}}  
Line 31: Line 31:
 
  | menu-cache              = {{#if: {{{2}}} | 1.0.0}}  {{#if: {{{3}}} | 2014-10-23}}
 
  | menu-cache              = {{#if: {{{2}}} | 1.0.0}}  {{#if: {{{3}}} | 2014-10-23}}
 
  | pcmanfm                = {{#if: {{{2}}} | 1.2.3}}  {{#if: {{{3}}} | 2014-10-14}}
 
  | pcmanfm                = {{#if: {{{2}}} | 1.2.3}}  {{#if: {{{3}}} | 2014-10-14}}
  | pcmanfm-legacy          = {{#if: {{{2}}} | 0.5.2}}  {{#if: {{{3}}} | 2009-10-25}}
+
  | pcmanfm legacy          = {{#if: {{{2}}} | 0.5.2}}  {{#if: {{{3}}} | 2009-10-25}}
 
  | #default                = <span style="color:red">Invalid component name in template!</span>
 
  | #default                = <span style="color:red">Invalid component name in template!</span>
 
}}
 
}}

Revision as of 11:09, 25 October 2014

Invalid component name in template!

Description

This template collects the version and release date of all of the LXDE components in one place to ease maintenance burden. Release date is in YYYY-MM-DD format as expected by Infobox component template.

{{VersionAndDate | component-name | display-version | display-release-date }}
component-name
Mandatory. The name of the component you want to display. component-name must be in lowercase.
display-version
Optional. If non empty, it displays the version number of the component. If used, type 'y' for clarity, otherwise leave it empty, please.
display-release-date
Optional. If non empty, it displays the release date in format YYYY-MM-DD of the component. If used, type 'y' for clarity, otherwise leave it empty, please.

Note that you can pass an empty display-version and display-release-date, in which case nothing is displayed.

Usage examples

Code Result
{{VersionAndDate | pcmanfm-legacy | y |}} 0.5.2
{{VersionAndDate | pcmanfm-legacy | | y}} 2009-10-25
{{VersionAndDate | pcmanfm-legacy | y | y}} 0.5.2 2009-10-25