Difference between revisions of "Template:VersionAndDate"

From LXDE.org
Jump to: navigation, search
m (Fix component name.)
m (Add comment about date format.)
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.
+
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.
  
 
  <nowiki>{{VersionAndDate | component-name | display-version | display-release-date }}</nowiki>
 
  <nowiki>{{VersionAndDate | component-name | display-version | display-release-date }}</nowiki>

Revision as of 12:01, 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. You can use any other format if you want, but, please, use the same format for all of the components in that case.

{{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