Difference between revisions of "Template:Infobox relax release"

From relax wiki
Jump to navigation Jump to search
(Improved formatting for the previous and next versions (if there is no previous, e.g. relax 1.0.0, nothing is shown).)
(Changed the manual parameter logic so that the PDF manual is always shown, unless the argument is set to 'no'.)
Line 26: Line 26:
 
| data5    = {{{date|Unknown release date}}}
 
| data5    = {{{date|Unknown release date}}}
  
| data6    = {{#if: {{{manual|}}} | ---- }}
+
| data6    = {{#ifeq: {{{manual|}}} | no | | ---- }}
  
| data7    = {{#if: {{{manual|}}} | [[File:Application-pdf.png|frameless|The PDF version of the relax {{{version}}} user manual]] [http://svn.gna.org/viewcvs/*checkout*/relax/tags/{{{version}}}/docs/relax.pdf The relax {{{version}}} user manual] }}
+
| data7    = {{#ifeq: {{{manual|}}} | no | | [[File:Application-pdf.png|frameless|The PDF version of the relax {{{version}}} user manual]] [http://svn.gna.org/viewcvs/*checkout*/relax/tags/{{{version}}}/docs/relax.pdf The relax {{{version}}} user manual] }}
  
 
}}<noinclude>
 
}}<noinclude>

Revision as of 10:50, 3 November 2015

Official relax releases
relax logo
relax version x.y.z

Release date Unknown release date

The PDF version of the relax {{{version}}} user manual The relax {{{version}}} user manual

Template documentation

Goal

To present an InfoBox to summarise the relax release, and provide links to previous and next versions.

Usage

{{infobox relax release
|version=
|prev=
|next=
|keywords=
|type=
|date=
|manual=
}}
version
The relax version number.
prev
The previous relax version number.
next
The next relax version number (optional).
keywords 
Any keywords to describe the release with (optional).
type
The release type, for example Major feature, Minor feature, Major bugfix, Minor bugfix, etc. (optional).
date
The release date.
manual
If this is set to 'yes', or anything for that matter, a link will be provided for the PDF copy of the manual saved in the /tags/<version>/docs/relax.pdf path of the SVN repository.

Example

{{infobox relax release
| version  = 3.3.0
| prev     = 3.2.3
| next     = 3.3.1
| keywords = Relaxation dispersion
| type     = Major feature
| date     = 3 September 2014
| manual   = yes
}}
Official relax releases
relax logo
relax version 3.3.0
Previous version Next version
← relax 3.2.3 relax 3.3.1 →

Keywords Relaxation dispersion
Release type Major feature
Release date 3 September 2014

The PDF version of the relax 3.3.0 user manual The relax 3.3.0 user manual