Get simple version number

From WikiApiary, monitoring the MediaWiki universe

Revision as of 16:25, 31 December 2012 by Thingles (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This template accepts a version string that may contain additional information about packages and distributions, like 5.3.10-1ubuntu3.4 and returns just the version information to the left of the -, providing a simplified version number for better aggregation.

{{Get simple version number|5.3.10-1ubuntu3.4}}

The above example returns:


There are some tests that can be used to make sure this template is working right.