Difference between revisions of "Template:VersionAndDate"

From LXDE.org
Jump to: navigation, search
m
m (Use a less ambiguous date format.)
Line 1: Line 1:
 
{{#switch: {{{1}}}
 
{{#switch: {{{1}}}
  | gpicview                = {{#if: {{{2}}} | 0.2.4}}  {{#if: {{{3}}} | 2013-10-23}}
+
  | gpicview                = {{#if: {{{2}}} | 0.2.4}}  {{#if: {{{3}}} | 23 Oct. 2013}}
  | gtknetcat              = {{#if: {{{2}}} | 0.1}}    {{#if: {{{3}}} | 2008-07-07}}
+
  | gtknetcat              = {{#if: {{{2}}} | 0.1}}    {{#if: {{{3}}} | 7 July 2008}}
  | ldm-gtk-builder-greeter = {{#if: {{{2}}} | 0.2.0}}  {{#if: {{{3}}} | 2011-08-18}}
+
  | ldm-gtk-builder-greeter = {{#if: {{{2}}} | 0.2.0}}  {{#if: {{{3}}} | 18 Aug. 2011}}
  | libfm                  = {{#if: {{{2}}} | 1.2.3}}  {{#if: {{{3}}} | 2014-10-14}}
+
  | libfm                  = {{#if: {{{2}}} | 1.2.3}}  {{#if: {{{3}}} | 14 Oct. 2014}}
  | lxappearance            = {{#if: {{{2}}} | 0.6.1}}  {{#if: {{{3}}} | 2014-10-23}}
+
  | lxappearance            = {{#if: {{{2}}} | 0.6.1}}  {{#if: {{{3}}} | 23 Oct. 2014}}
  | lxappearance-obconf    = {{#if: {{{2}}} | 0.2.2}}  {{#if: {{{3}}} | 2014-09-16}}
+
  | lxappearance-obconf    = {{#if: {{{2}}} | 0.2.2}}  {{#if: {{{3}}} | 16 Sept. 2014}}
 
  | lxadmin                = {{#if: {{{2}}} | 0.0.1}}  {{#if: {{{3}}} | unknown}}
 
  | lxadmin                = {{#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}}} | 23 Oct. 2014}}
  | lxde-icon-theme        = {{#if: {{{2}}} | 0.5.1}}  {{#if: {{{3}}} | 2014-09-10}}
+
  | lxde-icon-theme        = {{#if: {{{2}}} | 0.5.1}}  {{#if: {{{3}}} | 10 Sept. 2014}}
  | lxdm                    = {{#if: {{{2}}} | 0.5.0}}  {{#if: {{{3}}} | 2014-05-11}}
+
  | lxdm                    = {{#if: {{{2}}} | 0.5.0}}  {{#if: {{{3}}} | 11 May 2014}}
 
  | 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}}} | 20 Oct. 2014}}
  | lxlauncher              = {{#if: {{{2}}} | 0.2.4}}  {{#if: {{{3}}} | 2014-10-20}}
+
  | lxlauncher              = {{#if: {{{2}}} | 0.2.4}}  {{#if: {{{3}}} | 20 Oct. 2014}}
  | lxmenu-data            = {{#if: {{{2}}} | 0.1.4}}  {{#if: {{{3}}} | 2014-09-12}}
+
  | lxmenu-data            = {{#if: {{{2}}} | 0.1.4}}  {{#if: {{{3}}} | 12 Sept. 2014}}
  | lxmusic                = {{#if: {{{2}}} | 0.4.6}}  {{#if: {{{3}}} | 2014-09-06}}
+
  | lxmusic                = {{#if: {{{2}}} | 0.4.6}}  {{#if: {{{3}}} | 6 Sept. 2014}}
  | lxnm                    = {{#if: {{{2}}} | 0.2.2}}  {{#if: {{{3}}} | 2008-09-07}}
+
  | lxnm                    = {{#if: {{{2}}} | 0.2.2}}  {{#if: {{{3}}} | 7 Sept. 2008}}
 
  | lxnm-applet            = {{#if: {{{2}}} | unknown}} {{#if: {{{3}}} | unknown}}
 
  | 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}}} | 23 Oct. 2014}}
 
  | lxpanel-plugins        = {{#if: {{{2}}} | unknown}} {{#if: {{{3}}} | unknown}}  
 
  | lxpanel-plugins        = {{#if: {{{2}}} | unknown}} {{#if: {{{3}}} | unknown}}  
 
  | lxpanel-xmms2          = {{#if: {{{2}}} | 0.1.2}}  {{#if: {{{3}}} | unknown}}
 
  | lxpanel-xmms2          = {{#if: {{{2}}} | 0.1.2}}  {{#if: {{{3}}} | unknown}}
  | lxpolkit                = {{#if: {{{2}}} | 0.1}}    {{#if: {{{3}}} | 2011-07-24}}
+
  | lxpolkit                = {{#if: {{{2}}} | 0.1}}    {{#if: {{{3}}} | 24 July 2011}}
  | lxrandr                = {{#if: {{{2}}} | 0.3.0}}  {{#if: {{{3}}} | 2014-09-19}}
+
  | lxrandr                = {{#if: {{{2}}} | 0.3.0}}  {{#if: {{{3}}} | 19 Sept. 2014}}
 
  | lxscreenshot            = {{#if: {{{2}}} | 0.0.1}}  {{#if: {{{3}}} | unknown}}  
 
  | lxscreenshot            = {{#if: {{{2}}} | 0.0.1}}  {{#if: {{{3}}} | unknown}}  
  | lxsession              = {{#if: {{{2}}} | 0.5.1}}  {{#if: {{{3}}} | 2014-10-17}}
+
  | lxsession              = {{#if: {{{2}}} | 0.5.1}}  {{#if: {{{3}}} | 17 Oct. 2014}}
  | lxsession edit          = {{#if: {{{2}}} | 0.2.0}}  {{#if: {{{3}}} | 2011-07-19}}
+
  | lxsession edit          = {{#if: {{{2}}} | 0.2.0}}  {{#if: {{{3}}} | 19 July 2011}}
  | lxshortcut              = {{#if: {{{2}}} | 0.1.2}}  {{#if: {{{3}}} | 2011-07-23}}
+
  | lxshortcut              = {{#if: {{{2}}} | 0.1.2}}  {{#if: {{{3}}} | 23 July 2011}}
 
  | lxsysmon                = {{#if: {{{2}}} | 0.1.0}}  {{#if: {{{3}}} | unknown}}
 
  | lxsysmon                = {{#if: {{{2}}} | 0.1.0}}  {{#if: {{{3}}} | unknown}}
  | lxtask                  = {{#if: {{{2}}} | 0.1.6}}  {{#if: {{{3}}} | 2014-10-20}}
+
  | lxtask                  = {{#if: {{{2}}} | 0.1.6}}  {{#if: {{{3}}} | 20 Oct. 2014}}
  | lxterminal              = {{#if: {{{2}}} | 0.2.0}}  {{#if: {{{3}}} | 2014-10-21}}
+
  | lxterminal              = {{#if: {{{2}}} | 0.2.0}}  {{#if: {{{3}}} | 21 Oct. 2014}}
  | menu-cache              = {{#if: {{{2}}} | 1.0.0}}  {{#if: {{{3}}} | 2014-10-23}}
+
  | menu-cache              = {{#if: {{{2}}} | 1.0.0}}  {{#if: {{{3}}} | 23 Oct. 2014}}
  | pcmanfm                = {{#if: {{{2}}} | 1.2.3}}  {{#if: {{{3}}} | 2014-10-14}}
+
  | pcmanfm                = {{#if: {{{2}}} | 1.2.3}}  {{#if: {{{3}}} | 14 Oct. 2014}}
  | pcmanfm legacy          = {{#if: {{{2}}} | 0.5.2}}  {{#if: {{{3}}} | 2009-10-25}}
+
  | pcmanfm legacy          = {{#if: {{{2}}} | 0.5.2}}  {{#if: {{{3}}} | 25 Oct. 2009}}
 
  | #default                = <span style="color:red">Invalid component name in template!</span>
 
  | #default                = <span style="color:red">Invalid component name in template!</span>
 
}}<!--
 
}}<!--
Line 37: Line 37:
 
== Description ==
 
== 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 [[:Template:Infobox component | Infobox component]] template. You can use any other format if you want, but, please, use the same format for all of the components in that case.
+
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 ''day abbreviated month name year'' format. Even though you could use any other format if you wanted, you shouldn't do so because this is probably the less ambiguous one.
  
 
  <nowiki>{{VersionAndDate | component-name | display-version | display-release-date }}</nowiki>
 
  <nowiki>{{VersionAndDate | component-name | display-version | display-release-date }}</nowiki>
Line 43: Line 43:
 
;component-name: Mandatory. The name of the component you want to display. '''component-name must be in lowercase'''.
 
;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-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.
+
;display-release-date: Optional. If non empty, it displays the release date of the component in ''day abbreviated month name year'' format. If used,  type 'y' for clarity, otherwise leave it empty, please.
  
Note that you can pass an empty <code>display-version</code> and <code>display-release-date</code>, in which case nothing is displayed.
+
Note that you can pass both an empty <code>display-version</code> and <code>display-release-date</code>, in which case nothing is displayed. In any case, this template is intended to display one of the components each time, not both.
[[Category:Templates]]
 
  
 
== Usage examples ==
 
== Usage examples ==
Line 56: Line 55:
 
|-
 
|-
 
| <code><nowiki>{{VersionAndDate | pcmanfm-legacy |  | y}}</nowiki></code>
 
| <code><nowiki>{{VersionAndDate | pcmanfm-legacy |  | y}}</nowiki></code>
| 2009-10-25
+
| 25 Oct. 2009
 
|-
 
|-
 
| <code><nowiki>{{VersionAndDate | pcmanfm-legacy | y | y}}</nowiki></code>
 
| <code><nowiki>{{VersionAndDate | pcmanfm-legacy | y | y}}</nowiki></code>
| 0.5.2 2009-10-25
+
| 0.5.2 25 Oct. 2009
|}</noinclude>
+
|}
 +
[[Category:Templates]]</noinclude>

Revision as of 13: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 day abbreviated month name year format. Even though you could use any other format if you wanted, you shouldn't do so because this is probably the less ambiguous one.

{{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 of the component in day abbreviated month name year format. If used, type 'y' for clarity, otherwise leave it empty, please.

Note that you can pass both an empty display-version and display-release-date, in which case nothing is displayed. In any case, this template is intended to display one of the components each time, not both.

Usage examples

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