Template:VersionAndDate

From LXDE.org
Revision as of 21:42, 12 December 2016 by LStranger (talk | contribs)
Jump to: navigation, search

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